mojira.dev
MC-5352

Minecraft has crashed - ran out of memory

Initially the game crashed 2 times.
I have tried to create a minecraft.bat file with the following:
javaw -Xmx512m -Xms512m -jar minecraft.exe -> as found in one of the blogs, but then the program still runs out of memory.
I've attached 3 files. the first 2 are generated crash reports, the third one is copied and saved from the screen report.

Attachments

Comments 12

When you start it with -Xmx512m , you assign even less memory than the default 1024M.

Start it with

java -Xmx2G -Xms512M -cp Minecraft.exe net.minecraft.LauncherFrame

BTW: Your Java is way outdated (Java 6U27), you should update to the latest version (Java 7U10), go to http://java.com for an update.

Hi,
I've upgraded to Java 7U10.
The command prompt:
-------------------------------------------------------------------
java -Xmx2G -Xms512M -cp Minecraft.exe net.minecraft.LauncherFrame
-------------------------------------------------------------------
doesn't run however.
Running minecraft.exe still amounts to out of memory, but it doesn't crash any more, instead it displays the message that it was running out of memory and stopped the program to allow changes to be made.(Something like that).
Please advise ...

Does this occur with all worlds you're playing or only with the "Tutorial World" ?
If so, please attach that world here.

Yes it occurs with all worlds.
We've now moved on to Windows 7 Ultimate 64 bit though, and there minecraft runs stable (so far).
The problem occurred on Windows XP SP3 (32 bit).

Should I now download a 64 bit version? If so what link?

Thanks

There is no 64bit version of Minecraft - it's written in Java, that's independent of the CPU.

2 more comments

Kude k , Wilson Wampers: Please attach a crash report of Minecraft crashing when allocating more than 1GB to the JVM

Hi Kumasasa,

We're not using Windows XP SP3 anymore, and hence don't have the problem.

Kind regards,

Wilson Wampers

Ok, thanks.
Still leaving this ticket open for Kude k

@Kude k: please attach the newest crash report.

Finally resolved, since no new crash reports.

Wilson Wampers

(Unassigned)

Unconfirmed

crash

Minecraft 1.4.6

Retrieved