Earthcomputer / EnchantmentCracker

Cracking the XP seed in Minecraft and choosing your enchantments
MIT License
1.04k stars 91 forks source link

"Not enough RAM" Error #119

Closed silentstormm closed 5 years ago

silentstormm commented 5 years ago

When i try to run the program i get an error saying "Could not reserve enough space for 2097152KB object heap" even though I'm using only about 60% of my 8GB RAM.

MCRcortex commented 5 years ago

The cracker requires 2GB of ram to be available for the program to launch. Yes ik 40% of 8GB is 3.2GB. but try closing some applications then try again.

silentstormm commented 5 years ago

I did close everything (including Minecraft), the usage feel down to about 30%, and it still threw the error.

hube12 commented 5 years ago

EnchantmentCracker/64-bit Java Please ensure you have 64-bit Java. You can check by typing java -version in cmd. You can use this link to install 64-bit Java 8 without having to login to java.com.

silentstormm commented 5 years ago

Yup, I have the latest version of 64-bit Java. Besides, the second latest version of the app works perfectly.

Earthcomputer commented 5 years ago

The second-latest version of the app asked for less memory and then sometimes crashed while it was running because it ran out of memory.

silentstormm commented 5 years ago

Yeah, I know, but it works on my computer and the latest version doesn't (also I haven't encountered a crash yet).

Earthcomputer commented 5 years ago

This error is thrown by the JVM itself. There are two possible reasons that the error can be thrown. Firstly (and most obviously) you physically don't have enough RAM, or that RAM is being taken up by other programs. But another common reason is that your JVM doesn't support allocating 2GB, and you need to upgrade. This happens, for example, in 32-bit JVMs, so please paste here the output of java -version so we can rule that out completely.

silentstormm commented 5 years ago

So apparently i somehow had 32-bit Java installed and that caused the issue. Thanks for help!

silentstormm commented 5 years ago

By the way, can you log out of the server in between cracking the seed?

Earthcomputer commented 5 years ago

No

silentstormm commented 5 years ago

and can you pick up the bulk items and redtop them? I got over 28 stacks and don't have that much

silentstormm commented 5 years ago

dammit I took damage, that resets everything too?

Earthcomputer commented 5 years ago

Picking up items and re-dropping them is allowed, taking damage resets.