More Info: How to Fix java.lang.OutOfMemoryError in Minecraft
Need Help? Click here for more information on How to Fix java.lang.OutOfMemoryError in Minecraft.
Need Help? Click here for more information on How to Fix java.lang.OutOfMemoryError in Minecraft.
I was trying to play Minecraft with the Pixelmon mod with these sidemods:
Evs and Ivs
Gameshark
PixelExtras
Pixelmon Friends
Wondertrade
And it resulted in this crash message:
---- Minecraft Crash Report ----
WARNING: coremods are present:
Java8CheckerCoremod (Pixelmon-1.8.9-4.2.6-universal.jar)
Contact their authors BEFORE contacting forge
// Why did you do that?
Time: 6/12/16 11:45 AM
Description: There was a severe problem during mod loading that has caused the game to fail
net.minecraftforge.fml.common.LoaderException: java.lang.OutOfMemoryError: Java heap space
at net.minecraftforge.fml.common.LoadController.transition(LoadController.java:162)
at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:739)
at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:310)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:495)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:329)
at net.minecraft.client.main.Main.main(SourceFile:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOfRange(Unknown Source)
at java.lang.String.<init>(Unknown Source)
at java.lang.String.substring(Unknown Source)
at java.lang.String.subSequence(Unknown Source)
at java.util.regex.Pattern.split(Unknown Source)
at java.util.regex.Pattern.split(Unknown Source)
at com.pixelmonmod.pixelmon.client.models.smd.SmdAnimation.startParsingAnimation(SmdAnimation.java:90)
at com.pixelmonmod.pixelmon.client.models.smd.SmdAnimation.loadSmdAnim(SmdAnimation.java:61)
at com.pixelmonmod.pixelmon.client.models.smd.SmdAnimation.<init>(SmdAnimation.java:29)
at com.pixelmonmod.pixelmon.client.models.smd.ValveStudioModel.loadQC(ValveStudioModel.java:90)
at com.pixelmonmod.pixelmon.client.models.smd.ValveStudioModel.<init>(ValveStudioModel.java:53)
at com.pixelmonmod.pixelmon.client.models.smd.ValveStudioModelLoader.loadModel(ValveStudioModelLoader.java:70)
at com.pixelmonmod.pixelmon.enums.EnumCustomModel.preloadModels(EnumCustomModel.java:304)
at com.pixelmonmod.pixelmon.client.ClientProxy.registerRenderers(ClientProxy.java:209)
at com.pixelmonmod.pixelmon.Pixelmon.init(Pixelmon.java:132)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:560)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:211)
at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:189)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.8.9
Operating System: Windows 7 (x86) version 6.1
Java Version: 1.8.0_65, Oracle Corporation
Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
Memory: 997072 bytes (0 MB) / 523501568 bytes (499 MB) up to 523501568 bytes (499 MB)
JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx512M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP 9.19 Powered by Forge 11.15.1.1722 9 mods loaded, 9 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCHI mcp{9.19} [Minecraft Coder Pack] (minecraft.jar)
UCHI FML{8.0.99.99} [Forge Mod Loader] (forge-1.8.9-11.15.1.1722.jar)
UCHI Forge{11.15.1.1722} [Minecraft Forge] (forge-1.8.9-11.15.1.1722.jar)
UCHE pixelmon{4.2.6} [Pixelmon] (Pixelmon-1.8.9-4.2.6-universal.jar)
UCHE ivsevs{4.1.0} [IVsEVs] (Evs-Ivs-1.8.9-4.1.0-universal.jar)
UCHE gameshark{4.1.1} [Gameshark (Pixelmon)] (Gameshark-1.8.9-4.1.1-universal.jar)
UCHE pixelextras{2.1.3} [Pixel Extras] (PixelExtras-1.8.9-2.1.3-universal.jar)
UCHE pixelmonfriends{1.0} [Pixelmon Friends] (pixelmonfriends-1.8.9-1.3.1-universal.jar)
UCHE wondertrade{4.1.1} [Wonder Trade] (WonderTrade-1.8.9-4.2.0-universal.jar)
Loaded coremods (and transformers):
Java8CheckerCoremod (Pixelmon-1.8.9-4.2.6-universal.jar)
I tried again without the sidemods, and it resulted in this crash message:
---- Minecraft Crash Report ----
WARNING: coremods are present:
Java8CheckerCoremod (Pixelmon-1.8.9-4.2.6-universal.jar)
Contact their authors BEFORE contacting forge
// My bad.
Time: 6/12/16 11:52 AM
Description: There was a severe problem during mod loading that has caused the game to fail
net.minecraftforge.fml.common.LoaderException: java.lang.OutOfMemoryError: Java heap space
at net.minecraftforge.fml.common.LoadController.transition(LoadController.java:162)
at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:739)
at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:310)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:495)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:329)
at net.minecraft.client.main.Main.main(SourceFile:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOfRange(Unknown Source)
at java.lang.String.<init>(Unknown Source)
at java.lang.String.substring(Unknown Source)
at java.lang.String.subSequence(Unknown Source)
at java.util.regex.Pattern.split(Unknown Source)
at java.util.regex.Pattern.split(Unknown Source)
at com.pixelmonmod.pixelmon.client.models.smd.SmdAnimation.startParsingAnimation(SmdAnimation.java:90)
at com.pixelmonmod.pixelmon.client.models.smd.SmdAnimation.loadSmdAnim(SmdAnimation.java:61)
at com.pixelmonmod.pixelmon.client.models.smd.SmdAnimation.<init>(SmdAnimation.java:29)
at com.pixelmonmod.pixelmon.client.models.smd.ValveStudioModel.loadQC(ValveStudioModel.java:90)
at com.pixelmonmod.pixelmon.client.models.smd.ValveStudioModel.<init>(ValveStudioModel.java:53)
at com.pixelmonmod.pixelmon.client.models.smd.ValveStudioModelLoader.loadModel(ValveStudioModelLoader.java:70)
at com.pixelmonmod.pixelmon.enums.EnumCustomModel.preloadModels(EnumCustomModel.java:304)
at com.pixelmonmod.pixelmon.client.ClientProxy.registerRenderers(ClientProxy.java:209)
at com.pixelmonmod.pixelmon.Pixelmon.init(Pixelmon.java:132)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:560)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:211)
at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:189)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.8.9
Operating System: Windows 7 (x86) version 6.1
Java Version: 1.8.0_65, Oracle Corporation
Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
Memory: 1233128 bytes (1 MB) / 523501568 bytes (499 MB) up to 523501568 bytes (499 MB)
JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx512M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP 9.19 Powered by Forge 11.15.1.1722 4 mods loaded, 4 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCHI mcp{9.19} [Minecraft Coder Pack] (minecraft.jar)
UCHI FML{8.0.99.99} [Forge Mod Loader] (forge-1.8.9-11.15.1.1722.jar)
UCHI Forge{11.15.1.1722} [Minecraft Forge] (forge-1.8.9-11.15.1.1722.jar)
UCHE pixelmon{4.2.6} [Pixelmon] (Pixelmon-1.8.9-4.2.6-universal.jar)
Loaded coremods (and transformers):
Java8CheckerCoremod (Pixelmon-1.8.9-4.2.6-universal.jar)
Can someone help me with this so that I can play Minecraft with that version of Pixelmon?
Current avatar: Ralsei from Deltarune.
Okay, first, Java seems to think you have a 32-bit operating system (although it might just be that you have 32-bit Java installed). If that's the case, you won't be able to allocate the 4GB to Minecraft that Pixelmon for 1.8.9 tends to need from other posts I've seen (I haven't even played Pixelmon myself). To check, please open the start menu, right click where it says "Computer" in the right column, and click "Properties" in the menu that appears. Look for where it says "System Type".
I right-clicked where it said "Computer." I clicked "Properties." I could not find "System Type."
Current avatar: Ralsei from Deltarune.
And how do I do THAT?
Current avatar: Ralsei from Deltarune.
On desktop keyboards at least (not sure about laptop keyboards, those might vary), the button is near the upper right (and technically mine abbreviates it as "PrtScn" instead of just "PrtSc", but w/e).
Anyway, in the hope of saving some time, I took a shot of my own system properties and added a red rounded rectangle to show TheEpicNeocreep where to look for the system type.
That's a bit better to understand from text. Anyway it says that it is a 64-bit operating system.
Current avatar: Ralsei from Deltarune.
That's a good start. The next thing to check is how much installed memory you have (it's just above the system type, so I hope you don't need me to make a separate image to show you where to look).
It says it has 6.00 gigabytes.
Current avatar: Ralsei from Deltarune.
That's a little tight, but hopefully it will be enough, as long as you don't have much else running while you're playing Minecraft (if you have the budget for it, you might consider upgrading your computer's memory). Here are the next steps:
1. Download the 64-bit JRE (or JDK if you want) - here's a link to the JRE download: http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html (and I've attached an image to clarify which file there is the 64-bit Windows download)
2. Edit your profile options to allocate 4 gigabytes of ram to Minecraft (the second attachment shows how)
Edit: I searched earlier, and didn't find a clear indication of Pixelmon's true memory requirements, so I did some experimentation, and it looks like changing the -Xmx parameter to -Xmx2000M is sufficient (that's 2 thousand megabytes, or about 2 gigabytes). However, I only got as far as starting a new world with Pixelmon installed and walking around a little bit, so it could turn out to need more once you really get into the mod, or if you decide to use those sidemods.
Well, I turned on my JMV arguments, and it seems it did the trick. Thanks for helping me, though!
Current avatar: Ralsei from Deltarune.
[Redacted]
Current avatar: Ralsei from Deltarune.