Crashes with :
Client> Error occurred during initialization of VM
Client> Incompatible minimum and maximum heap sizes specified
Client> Picked up _JAVA_OPTIONS: -Xmx512M
Game ended with bad state (exit code 1)
Ignoring visibility rule and showing launcher due to a game crash
Seems to appear that the Xms tag is read but the Xmx tag is ignored, meaning that Xms > Xmx, which results in the crash.
Reasons to believe this:
"Client> Picked up _JAVA_OPTIONS: -Xmx512M" in log suggests that it is forced to run with 512 MB of RAM.
Running with JVM args "-Xmx2048M -Xms512M" works fine but with "-Xmx2048M -Xms513M" still crashes.
Linked issues
is duplicated by 4
Attachments
Comments 25
There is no "Crash Report". Minecraft does not launch - initialization fails in the construction of the VM. I've posted everything that there is to know - filtered out the noise from the regular log.
Then I misunderstood what you originally posted...
Please attach the complete output of the "Development console" tab of the launcher.
Click the text, press CTRL-A, then CTRL-C, and paste with CTRL-V in the ticket.
If the launcher closes after game start, please edit your profile and select "Launcher visibility" then, "Hide launcher and reopen" or "Keep the launcher open"
Attached log as file. Also, very strangely, if I restart, it sometimes works on the first try (not always). But even if it works on the first run, it never works again.
You set the maximum mem size to 512M via _JAVA_OPTIONS
and the minimum mem size to 1024M via command line. That's conflicting.
Simply remove _JAVA_OPTIONS
from your environment or set it appropriately.
http://javahowto.blogspot.de/2006/06/6-common-errors-in-setting-java-heap.html
@unknown wrote in MCL-2629:
It looks like the _JAVA_OPTIONS setting might be causing problems. To resolve, you need to remove this setting:
Press the Windows key (between Ctrl and Alt) and the Pause/Break key (at the top of the keyboard, above the arrow keys) at the same time.
A window should popup, click on 'Advanced system settings'.
Click on 'Environment Variables'.
Delete the _JAVA_OPTIONS entry.
For further assistance, please refer to the technical support resources.
If you have Razer Synapse installed for a Razer mouse and/or Keyboard,it will add a invisible _JAVA_OPTIONS variable to your environment variables. (It's a bug in the Razer Synapse.)
This was the problem for me.
If you have that software either uninstall it or add _JAVA_OPTIONS with the -Xmx flag you want.
This is a technical support issue; this site is for bug reports only. For technical support please use the Mojang Support Center.
Please attach the complete output of the "Crash Report" tab of the launcher.