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
mclo.gs
NeoForge 1.21.1 Client Log [#cGrmwUV]
769 lines | 54 errors
mclo.gs
Unknown Log [#9OSvVgo]
5199 lines
No description
Solution:
Try using the default JVM args, delete your DH config, and see if that resolves the problem.
Jump to solution
19 Replies
Puhpine
Puhpine2w ago
does it still crash if you turn off distant generation in DH's settings? does it still crash if DH is the only mod?
doppelgänger
doppelgängerOP2w ago
yes and yes
doppelgänger
doppelgängerOP2w ago
https://mclo.gs/UJJeqga latest.log dh only
mclo.gs
NeoForge 1.21.1 Client Log [#UJJeqga]
430 lines | 2 errors
Puhpine
Puhpine2w ago
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?
doppelgänger
doppelgängerOP2w ago
not really, barely used 1gb .
Puhpine
Puhpine2w ago
No idea sorry. Maybe someone else knows
BackSun
BackSun2w ago
What JVM args are you using? What world gen mode do you have set? (Please send your DH config)
doppelgänger
doppelgängerOP2w ago
-XX:+UseZGC -XX:+ZGenerational
No description
Skillnoob_
Skillnoob_2w ago
the config file !config
YAGPDB.xyz
YAGPDB.xyz2w ago
To edit the config, press the button next to the FOV slider. The config file found in .minecraft/config/DistantHorizons.toml
doppelgänger
doppelgängerOP2w ago
oh my bad, here it is
Solution
BackSun
BackSun2w ago
Try using the default JVM args, delete your DH config, and see if that resolves the problem.
doppelgänger
doppelgängerOP2w ago
reverting to the default JVM args worked, thank you so much
BackSun
BackSun2w ago
Glad to hear it worked. One other question: were these the only JVM args you had or did you have others?
doppelgänger
doppelgängerOP2w ago
-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
BackSun
BackSun2w ago
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)
doppelgänger
doppelgängerOP2w ago
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)
BackSun
BackSun2w ago
That’s perfect thanks!
BackSun
BackSun2w ago
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)
No description

Did you find this page helpful?