Error During Launcher, Initial Heap Size??

veronicaoftarth

Mummer
Guest
Hi, I have never played WesterosCraft before and I downloaded it today. Installation for your launcher was fine, I just can't seem to get into the program. Every time I click 'Launch Minecraft' and check the log, it says:

Error occurred during initialization of VM
Initial heap size set to a larger value than the maximum heap size

OR

Error occurred during initialization of VM
Could not reserve enough space for 3145728KB object heap


I researched it a bit and changed something in my settings of my computer to _JAVA_OPTIONS: -Xmx512M. This didn't help. I also attempted to change my maximum memory in the Launcher from 2 to 3G. This also didn't work.

I have a TOSHIBA Satellite with 4GB of Ram (3.89 usable), with a 64-bit operating system and x64-based processor. I'm running on Windows 8.

Please let me know what I can do to fix this! Been trying for 2 hours..Also really sorry if I put this in the wrong place for help threads..? Not sure. Just hope you can solve my problem!
 
  • Like
Reactions: _Benja

geeberry

Alchemist
Staff member
Admin
Did you try setting it to 4GB? the line "Could not reserve enough space for 3145728KB object heap" is more than 3gb - minecraft is a ram heavy game unfortunately
 

veronicaoftarth

Mummer
Guest
Did you try setting it to 4GB? the line "Could not reserve enough space for 3145728KB object heap" is more than 3gb - minecraft is a ram heavy game unfortunately

Yup, it gave me something different than I had gotten, a little pop up:

Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.


Also, in the log it says:

Invalid maximum heap size: -Xmx4G
The specified size exceeds the maximum representable size.
 

shlibshlob

Mummer
Guest
Has anyone found a fix to this yet? I'm having the same problem. It's coming from a fresh install of the Westeroscraft files for me. Everything is updated.

Changing the settings to 4gb maximum doesn't work.
All it results in is:

"Invalid maximum heap size: -Xmx4G
The specified size exceeds the maximum representable size.
[18:20:01.894] Minecraft process terminated"

Any help is appreciated~
 

shlibshlob

Mummer
Guest
Just in case, I'd like to note I also tried updating Java to the latest version and redirected the Java home path in the settings menu. Still the same problem.

Edit: Found a solution
 
Last edited:
  • Like
Reactions: _Benja

shlibshlob

Mummer
Guest
Just wanted to update, I found a solution!

I'm not super tech savvy so I may be incorrect about some things and I'm not entirely sure why this worked, but from what I understand, because I am running windows 8.1, when I updated Java through the Java website it automatically gave me the 32bit version during setup. I bypassed this by specifically downloading the 64bit windows version from Oracle.com. (Link below)

So I did a complete fresh install of Java AND the WesterosCraft launcher.
Here are the steps:

1)Under 'Programs & Features', uninstall all versions of Java
2)Delete the Westeroscraft folder in AppData>Roaming
3)Download the 64bit version of Java from Oracle.com
4)Install Java
5)Open the Westeroscraft launcher and let it set itself up, login, etc etc.
6)Update and launch the game
7)Celebrate!

It worked for me, anyway.
I hope this helps.

Java version labeled "Windowsx64 offline":
(http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html)
 
Last edited:
  • Like
Reactions: Iwan and CashBanks

RockAriese

Mummer
Guest
hey!
Still not working for me, even with your answer shlibshlob.
I don't understand.
I hope an answer to help me please :D
 

dstarr86

Mummer
Guest
Also not working. Same issue.

"Error occurred during initialization of VM\
Could not reserve enough space for 2097152KB object heap"

If I change it to 3G it'll just say
"Could not reserve enough space for 3145728KB".

If I change it to 4G:
"Invalid maximum heap size: -Xmx4G
The specified size exceeds the maximum representable size."

Have the newest version of Java on a Windows 10 system. 8 GB RAM, 3 GB VRAM. Fully updated launcher. Can't figure this out. And the troubleshooting forum is a dead end link, so there's that...
 

sdtpilote

Mummer
Guest
Note that java 64 bits installation folder is not the same than the 32 bits so you can have both version at the same time
From configuration in the launcher use the java folder in "C:\Program Files" reserved for 64bits programs and not in "C:\Program Files (x86)" (for 32bits programs)
 

wterving

Mummer
Guest
Wanted to say I was getting the same issue:

Error occurred during initialization of VM
Could not reserve enough space for 3145728KB object heap


I tried what you recommended and it's working fine, thanks.

Just wanted to update, I found a solution!

I'm not super tech savvy so I may be incorrect about some things and I'm not entirely sure why this worked, but from what I understand, because I am running windows 8.1, when I updated Java through the Java website it automatically gave me the 32bit version during setup. I bypassed this by specifically downloading the 64bit windows version from Oracle.com. (Link below)

So I did a complete fresh install of Java AND the WesterosCraft launcher.
Here are the steps:

1)Under 'Programs & Features', uninstall all versions of Java
2)Delete the Westeroscraft folder in AppData>Roaming
3)Download the 64bit version of Java from Oracle.com
4)Install Java
5)Open the Westeroscraft launcher and let it set itself up, login, etc etc.
6)Update and launch the game
7)Celebrate!

It worked for me, anyway.
I hope this helps.

Java version labeled "Windowsx64 offline":
(http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html)