Memory Leak on 2.2.1-a-1.21.1

Distant Horizons will crash the game when trying to build a LOD on a world https://mclo.gs/dd6ivXN
12 Replies
notnotsoup
notnotsoupOP3mo ago
Steps to recreate error: 1. Pre-generate a single player world using Chunky and Big Globe. 2. Join the world with Distant Horizons. 3. To save LOD data from the pregenerate chunks, turn distant generator on and set it to PRE-EXISTING ONLY. 4. Java will run out of memory. I'm using a world generation mod called Big Globe but the big world size still shouldn't mean java crashes because of inadequate memory im using the garbage collection flags
--add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20
--add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20
The reason I don't use distant generation to pre-generate the world in the first place is because Big Globe has it's own world-building engine built in that doesn't work well with DH
Puhpine
Puhpine3mo ago
Can you replicate this with just dh nightly and big globe?
notnotsoup
notnotsoupOP3mo ago
I am using a full release from modrinth but are you saying I should try using a nightly build?
Puhpine
Puhpine3mo ago
Yes
notnotsoup
notnotsoupOP3mo ago
is there any steps on the git on how to compile the jar?
Puhpine
Puhpine3mo ago
See #links-n-downloads
notnotsoup
notnotsoupOP3mo ago
ok ive got the 2.3.0dev ill test now and get back in a few hours cuz i gtg also reading the logs before the crashes the world would slow down a lot and keep getting laggier until it would crash
Puhpine
Puhpine3mo ago
Alright!
notnotsoup
notnotsoupOP3mo ago
do you think the problem would be that i set the cpu load to “i paid for the full cpu”? i think the lod builder was over scheduling tasks and the cpu couldn’t keep up. I am going to rq change the cpu load to moderate
Puhpine
Puhpine3mo ago
It's still a bug even if "I paid for the whole cpu" is active.
notnotsoup
notnotsoupOP3mo ago
cpu load is actually set to custom on the dev build so idk using dev version fixed the issue it seem,s
Puhpine
Puhpine3mo ago
Nice! That means the next full release will fix the leak
Want results from more Discord servers?
Add your server