Errors showing up when pregenerating, generation hangs

I am pregenerating chunks on a server using dh pregen. Settings: - generation.mode is INTERNAL_SERVER - common.threadPreset: I tried I_PAID_FOR_THE_WHOLE_CPU and AGGRESSIVE - Everything else is set to default JVM Args:
-Xms12G
-Xmx16G
-XX:+UseG1GC
-XX:+ParallelRefProcEnabled
-XX:MaxGCPauseMillis=200
-XX:+UnlockExperimentalVMOptions
-XX:+DisableExplicitGC
-XX:+AlwaysPreTouch
-XX:G1NewSizePercent=30
-XX:G1MaxNewSizePercent=40
-XX:G1HeapRegionSize=8M
-XX:G1ReservePercent=20
-XX:G1HeapWastePercent=5
-XX:G1MixedGCCountTarget=4
-XX:InitiatingHeapOccupancyPercent=15
-XX:G1MixedGCLiveThresholdPercent=90
-XX:G1RSetUpdatingPauseTimePercent=5
-XX:SurvivorRatio=32
-XX:+PerfDisableSharedMem
-XX:MaxTenuringThreshold=1
-Xms12G
-Xmx16G
-XX:+UseG1GC
-XX:+ParallelRefProcEnabled
-XX:MaxGCPauseMillis=200
-XX:+UnlockExperimentalVMOptions
-XX:+DisableExplicitGC
-XX:+AlwaysPreTouch
-XX:G1NewSizePercent=30
-XX:G1MaxNewSizePercent=40
-XX:G1HeapRegionSize=8M
-XX:G1ReservePercent=20
-XX:G1HeapWastePercent=5
-XX:G1MixedGCCountTarget=4
-XX:InitiatingHeapOccupancyPercent=15
-XX:G1MixedGCLiveThresholdPercent=90
-XX:G1RSetUpdatingPauseTimePercent=5
-XX:SurvivorRatio=32
-XX:+PerfDisableSharedMem
-XX:MaxTenuringThreshold=1
Mod list (same on client and server): c2me-fabric-mc1.21.1-0.3.0+alpha.0.315.jar DistantHorizons-fabric-neoforge-2.3.0-b-1.21.1.jar fabric-api-0.115.2+1.21.1.jar fabric-carpet-1.21-1.4.147+v240613.jar itemscroller-fabric-1.21-0.24.57.jar journeymap-fabric-1.21.1-6.0.0-beta.40.jar malilib-fabric-1.21-0.21.7.jar minihud-fabric-1.21-0.32.57.jar noisium-fabric-2.3.0+mc1.21-1.21.1.jar servux-fabric-1.21-0.3.13.jar sodium-fabric-0.6.9+mc1.21.1.jar spark-1.10.109-fabric.jar tweakeroo-fabric-1.21.1-0.21.50.jar Datapacks: JJThunder_To_The_Max_1.21.0-1.21.1_v0.5.0.zip What happens: I get a lot of errors like this:
[13:17:24] [c2me-worker-2/ERROR]: Detected setBlock in a far chunk [112, 78], pos: class_2338{x=1807, y=470, z=1248}, status: minecraft:features, currently generating: ResourceKey[minecraft:worldgen/placed_feature / minecraft:large_dripstone]
[13:17:24] [c2me-worker-2/ERROR]: Detected setBlock in a far chunk [112, 78], pos: class_2338{x=1807, y=470, z=1248}, status: minecraft:features, currently generating: ResourceKey[minecraft:worldgen/placed_feature / minecraft:large_dripstone]
These show up every few minutes and at some point the generation starts hanging (i.e. multiple hours with zero progress). I also found a few messages like this:
[12:52:11] [DH-PriorityTaskPicker Thread[0]/WARN]: Generation for section 6*24,14 has expired!
[12:52:11] [DH-PriorityTaskPicker Thread[0]/WARN]: Generation for section 6*24,14 has expired!
If you need anything from me, I am happy to help debugging this further.
1 Reply
puchm
puchmOP3mo ago
My suspicion after researching this (as a Software Engineer with no modding experience) is that Distant Horizons may need to load chunks around the ones being generated to ensure things overlapping chunk borders can generate properly. I could be completely wrong though.

Did you find this page helpful?