Topic category: Help with Minecraft modding (Java Edition)
Hi,
I am having issues when I test my modification. It gets as far as "Player### has joined the game" on the MCreator console, but Minecraft stops responding on the loading screen. And it doesn't respond again.
Meanwhile, an error with something to do with memory comes up in the console "java.lang.OutOfMemoryError: GC overhead limit exceeded".
When I force close Minecraft, it comes up with "BUILD FAILED".
A moment later, a box pops up:" JAVA JVM used by gradle ran out available RAM!".
So I changed the Initial memory to 1000, and the Maximum memory to 3000, no different.
I don't really know what to do here! Do I need to increase my memory more, or is this a bug, or am I missing something?
Thanks.
Are you using 32-bit version by any chance?
No, quite sure I installed the 64-bit version, as I think that is what my computer supports.
Just tested my mod with 4000 Max memory, no different... and that's my maximumcomputer RAM as well!
The error was a little different as well, mainly focused on a server stopping.
Yes, this is normal. Setting 4GB of RAM won't work as you need some RAM for the OS too. You need more RAM and 64-bit OS most likely.
I do have 64-bit OS, so I guess I need a new computer, or just more RAM - Is there no other fix, or should I learn Java Eclipse early?
The backend for compiling is the same as in Eclipse so I am not sure if that would be any better. Try a value like 2GB to see if this would work. How many mod elements do you have in the workspace? And do you have any heavy structures or world generators (ores, plants) that could eat too much RAM?
Hi Klemen, I will test with 2GB when I get a chance, I have only 28 mod elements, mostly procedures or recipes/items, and have no structures or plants, the only thing editing world gen is a block.
Do you want to take a look at the mod, if it would be useful to you?
Also, can procedures use lots of memory? I need plenty of them for the mod I’m testing, and I had planned to add many more.
No, they don't use a lot of RAM. You can open a support ticket and attach the workspace .mcr file and I can check if there is anything suspicious.
On the side note, MCreator 1.8.2 will most likely consume a bit less RAM due to some optimizations.
Glad to hear they don't use much, I look forward to 1.8.2 all the same.
2GB failed as well... I will make a support ticket, not sure how to make one though!
Thanks for all the help and quick responses!