Insufficient memory crash with 10gb allocated
Game crashes around 30 seconds after creating a new world and gives me an error of "not enough memory", even though i have allocated 10016m. Game runs fine without DH
https://mclo.gs/cGrmwUV latest.log
https://mclo.gs/9OSvVgo hs_err_pid.log

Solution:Jump to solution
Try using the default JVM args, delete your DH config, and see if that resolves the problem.
19 Replies
does it still crash if you turn off distant generation in DH's settings?
does it still crash if DH is the only mod?
yes and yes
https://mclo.gs/UJJeqga latest.log dh only
oh wait thats not a ram error, but a vram one
your gpu has 8 gb of vram though, which should be plenty
if you have task manager open, go to the gpu usage, and look at vram usage, is it maxxed out when recreating the crash?
not really, barely used 1gb
.
No idea sorry. Maybe someone else knows
What JVM args are you using?
What world gen mode do you have set? (Please send your DH config)
-XX:+UseZGC -XX:+ZGenerational

the config file
!config
To edit the config, press the button next to the FOV slider.
The config file found in .minecraft/config/DistantHorizons.toml
oh my bad, here it is
Solution
Try using the default JVM args, delete your DH config, and see if that resolves the problem.
reverting to the default JVM args worked, thank you so much
Glad to hear it worked.
One other question: were these the only JVM args you had or did you have others?
-XX:+UseZGC -XX:+ZGenerational -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xms8m -Xmx10016m -Duser.language=en -Djava.library.path=C:/Users/<redacted>/AppData/Roaming/PrismLauncher/instances/1.21.1/natives
maybe setting the xms that low is related? im not sure
I don’t think so… but I’ll have to take a closer look another time.
What Java are you running by the way? (Java version and JRE vendor)
java version is 21.0.1 and vendor is Eclipse Adoptium (i got this by running
java -XshowSettings:properties -version
on cmd, i'm not sure if that's how i should check)That’s perfect thanks!
I tried to reproduce the issue and so far have been unsuccessful with the args:
"-XX:+UseZGC", "-XX:+ZGenerational", "-Xmx4G"on fabric (neoforge is crashing in my dev environment right now so I'll have to try it again later)
