mojira.dev
MC-156976

Countinuos crashing when starting (java.lang.OutOfMemoryError: Java heap space)

When I open MC Launcher and click "Play", Java window opens and closes immediately. 

This is the error: "The game crashed whilst initializing game
Error: java.lang.OutOfMemoryError: Java heap space".

It's been happening for a couple days. It had never happened to me before, but now it comes up every single time I try to play. I just managed to go on once, and the result was not very good (Esc menu was too laggy, it felt like it would crash every time I clicked on something).

 

I thought I wasn't allowing much memory, but I think 2GB is enough (I've always had the same for Minecraft, and I'm using no mods or resource packs). These are my JVM arguments: 

-Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M

 

I'm also attaching the crash report.

 

Thank you!

Related issues

Attachments

Comments

migrated
[media]
migrated

Duplicate of MC-12949 – If you have not, please use the search function in the future, to see if your bug has already been submitted.
For technical support, please use the Mojang Support Center.

-- I am a bot. This action was performed automagically!

migrated

I had seed MC-12949. And tried. I went up to 3GB and the problem is still there.

migrated

(Unassigned)

Unconfirmed

(Unassigned)

Minecraft 1.14.3

Retrieved