I've had no memory issues in the past 2+ years of playing and then about a month ago I started getting a memory error when trying to start a singleplayer game. Multiplayer works perfectly fine. Nothing changed in the hardware on my computer. I have 16GB of RAM. I have tried the Xmx and Xms arguments with varying quantities all the way up to allocating 8GB of RAM and I still get the error. It happens nearly instantly after I click Singleplayer button. Below is the crash report from when I allocated 8GB of RAM. I have also checked to make sure I have the latest version of Java. I just find it really odd that Multiplayer works fine but Singleplayer throws the error immediately.
---- Minecraft Crash Report ----
// Oh - I know what I did wrong!
java.lang.OutOfMemoryError: Java heap space
at java.util.ArrayList.(ArrayList.java:152)
at com.google.common.collect.Lists.newArrayListWithCapacity(Lists.java:175)
at dx.a(SourceFile:63)
at dr.a(SourceFile:414)
at dr.a(SourceFile:71)
at dx.a(SourceFile:66)
at dr.a(SourceFile:414)
at dr.a(SourceFile:71)
at dr.a(SourceFile:414)
at dr.a(SourceFile:71)
at dr.a(SourceFile:414)
at dr.a(SourceFile:71)
at dr.a(SourceFile:414)
at dr.a(SourceFile:71)
at ea.a(SourceFile:117)
at ea.a(SourceFile:82)
at ea.a(SourceFile:26)
at azz.a(SourceFile:82)
at azz.c(SourceFile:66)
at azw.b(SourceFile:57)
at big.e(SourceFile:35)
at big.(SourceFile:28)
at bie.b(SourceFile:43)
at bft.a(SourceFile:372)
at bcx.a(SourceFile:900)
at bga.a(SourceFile:237)
at bft.a(SourceFile:346)
at bga.a(SourceFile:498)
at bft.k(SourceFile:409)
at bft.p(SourceFile:386)
at bcx.t(SourceFile:1586)
at bcx.av(SourceFile:968)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Client thread
Stacktrace:
at java.util.ArrayList.(ArrayList.java:152)
at com.google.common.collect.Lists.newArrayListWithCapacity(Lists.java:175)
at dx.a(SourceFile:63)
at dr.a(SourceFile:414)
at dr.a(SourceFile:71)
at dx.a(SourceFile:66)
at dr.a(SourceFile:414)
at dr.a(SourceFile:71)
at dr.a(SourceFile:414)
at dr.a(SourceFile:71)
at dr.a(SourceFile:414)
at dr.a(SourceFile:71)
at dr.a(SourceFile:414)
at dr.a(SourceFile:71)
at ea.a(SourceFile:117)
at ea.a(SourceFile:82)
at ea.a(SourceFile:26)
at azz.a(SourceFile:82)
at azz.c(SourceFile:66)
at azw.b(SourceFile:57)
at big.e(SourceFile:35)
at big.(SourceFile:28)
at bie.b(SourceFile:43)
at bft.a(SourceFile:372)
at bcx.a(SourceFile:900)
at bga.a(SourceFile:237)
at bft.a(SourceFile:346)
at bga.a(SourceFile:498)
-- Affected screen --
Details:
Screen name: bie
Stacktrace:
at bcx.t(SourceFile:1589)
at bcx.av(SourceFile:968)
at bcx.a(SourceFile:396)
at net.minecraft.client.main.Main.main(SourceFile:124)
-- System Details --
Details:
Minecraft Version: 1.10.2
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_25, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 8032654064 bytes (7660 MB) / 8232370176 bytes (7851 MB) up to 8232370176 bytes (7851 MB)
JVM Flags: 3 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx8G -Xms8G
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
Launched Version: 1.10.2
LWJGL: 2.9.4
OpenGL: GeForce GTX 560 Ti/PCIe/SSE2 GL version 4.5.0 NVIDIA 368.81, NVIDIA Corporation
GL Caps: Using GL 1.3 multitexturing.
Using GL 1.3 texture combiners.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Shaders are available because OpenGL 2.1 is supported.
VBOs are available because OpenGL 1.5 is supported.
Using VBOs: Yes
Is Modded: Probably not. Jar signature remains and client brand is untouched.
Type: Client (map_client.txt)
Resource Packs:
Current Language: English (United Kingdom)
Profiler Position: N/A (disabled)
CPU: 8x Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
I can't even get to where I can choose a world. As soon as I click the Singleplayer button on the main screen I get the error. For anti-virus, I'm just running Windows Defender that is built into Windows 10.
Originally, the Xmx and Xms were set to just 2GB of RAM and that has been working fine until a month or so ago. I tried 1GB, 2GB, 4GB, 6GB, and 8GB and all produced the same error.
As for the default JVM arguments, I dug around online and found the below but I still get the same crash. If there are different default arguments, can you point me to them.
I have set the JVM arguments back to the below which is what another post on this forum said they were. It puts the memory back at 4GB. The same error still happens though.
... the simplest way to get the default arguments is to simply UNCHECK THE BOX.
Now.. that's unlikely to help you though. This crash seems to be unique, and because it happens before you get to the world selection screen has to be related to something about your installation / configuration.
Configure your profile to use a new (empty but existing) game directory.
Does it work then? If yes, it's something about stuff inside your game directory.
You could try incrementally copying stuff from the old to the new game directory until you find out what triggers this issue.
It might be something about one save in particular that MC touches in order to bring up the world selector screen.
Thanks Gerbil for answering my question on how to get the defaults back instead of just repeatedly telling me to put them in there. :-) While that still didn't work, creating an empty game directory made it work. I'll start eliminating stuff in the original directory to determine the culprit. That at least gives me something to go with. I appreciate the help.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I've had no memory issues in the past 2+ years of playing and then about a month ago I started getting a memory error when trying to start a singleplayer game. Multiplayer works perfectly fine. Nothing changed in the hardware on my computer. I have 16GB of RAM. I have tried the Xmx and Xms arguments with varying quantities all the way up to allocating 8GB of RAM and I still get the error. It happens nearly instantly after I click Singleplayer button. Below is the crash report from when I allocated 8GB of RAM. I have also checked to make sure I have the latest version of Java. I just find it really odd that Multiplayer works fine but Singleplayer throws the error immediately.
---- Minecraft Crash Report ----
// Oh - I know what I did wrong!
Time: 9/13/16 7:49 PM
Description: Updating screen events
java.lang.OutOfMemoryError: Java heap space
at java.util.ArrayList.(ArrayList.java:152)
at com.google.common.collect.Lists.newArrayListWithCapacity(Lists.java:175)
at dx.a(SourceFile:63)
at dr.a(SourceFile:414)
at dr.a(SourceFile:71)
at dx.a(SourceFile:66)
at dr.a(SourceFile:414)
at dr.a(SourceFile:71)
at dr.a(SourceFile:414)
at dr.a(SourceFile:71)
at dr.a(SourceFile:414)
at dr.a(SourceFile:71)
at dr.a(SourceFile:414)
at dr.a(SourceFile:71)
at ea.a(SourceFile:117)
at ea.a(SourceFile:82)
at ea.a(SourceFile:26)
at azz.a(SourceFile:82)
at azz.c(SourceFile:66)
at azw.b(SourceFile:57)
at big.e(SourceFile:35)
at big.(SourceFile:28)
at bie.b(SourceFile:43)
at bft.a(SourceFile:372)
at bcx.a(SourceFile:900)
at bga.a(SourceFile:237)
at bft.a(SourceFile:346)
at bga.a(SourceFile:498)
at bft.k(SourceFile:409)
at bft.p(SourceFile:386)
at bcx.t(SourceFile:1586)
at bcx.av(SourceFile:968)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Client thread
Stacktrace:
at java.util.ArrayList.(ArrayList.java:152)
at com.google.common.collect.Lists.newArrayListWithCapacity(Lists.java:175)
at dx.a(SourceFile:63)
at dr.a(SourceFile:414)
at dr.a(SourceFile:71)
at dx.a(SourceFile:66)
at dr.a(SourceFile:414)
at dr.a(SourceFile:71)
at dr.a(SourceFile:414)
at dr.a(SourceFile:71)
at dr.a(SourceFile:414)
at dr.a(SourceFile:71)
at dr.a(SourceFile:414)
at dr.a(SourceFile:71)
at ea.a(SourceFile:117)
at ea.a(SourceFile:82)
at ea.a(SourceFile:26)
at azz.a(SourceFile:82)
at azz.c(SourceFile:66)
at azw.b(SourceFile:57)
at big.e(SourceFile:35)
at big.(SourceFile:28)
at bie.b(SourceFile:43)
at bft.a(SourceFile:372)
at bcx.a(SourceFile:900)
at bga.a(SourceFile:237)
at bft.a(SourceFile:346)
at bga.a(SourceFile:498)
-- Affected screen --
Details:
Screen name: bie
Stacktrace:
at bcx.t(SourceFile:1589)
at bcx.av(SourceFile:968)
at bcx.a(SourceFile:396)
at net.minecraft.client.main.Main.main(SourceFile:124)
-- System Details --
Details:
Minecraft Version: 1.10.2
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_25, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 8032654064 bytes (7660 MB) / 8232370176 bytes (7851 MB) up to 8232370176 bytes (7851 MB)
JVM Flags: 3 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx8G -Xms8G
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
Launched Version: 1.10.2
LWJGL: 2.9.4
OpenGL: GeForce GTX 560 Ti/PCIe/SSE2 GL version 4.5.0 NVIDIA 368.81, NVIDIA Corporation
GL Caps: Using GL 1.3 multitexturing.
Using GL 1.3 texture combiners.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Shaders are available because OpenGL 2.1 is supported.
VBOs are available because OpenGL 1.5 is supported.
Using VBOs: Yes
Is Modded: Probably not. Jar signature remains and client brand is untouched.
Type: Client (map_client.txt)
Resource Packs:
Current Language: English (United Kingdom)
Profiler Position: N/A (disabled)
CPU: 8x Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
This doesn't look normal. Does it happen on every singleplayer world, or it happens just on one? And have you checked your antivirus software?
I can't even get to where I can choose a world. As soon as I click the Singleplayer button on the main screen I get the error. For anti-virus, I'm just running Windows Defender that is built into Windows 10.
Originally, the Xmx and Xms were set to just 2GB of RAM and that has been working fine until a month or so ago. I tried 1GB, 2GB, 4GB, 6GB, and 8GB and all produced the same error.
As for the default JVM arguments, I dug around online and found the below but I still get the same crash. If there are different default arguments, can you point me to them.
-Xmx4G -Xms4G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -client -d64
Thanks
I have set the JVM arguments back to the below which is what another post on this forum said they were. It puts the memory back at 4GB. The same error still happens though.
-Xmx4G -Xms4G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -client -d64
Thanks
... the simplest way to get the default arguments is to simply UNCHECK THE BOX.
Now.. that's unlikely to help you though. This crash seems to be unique, and because it happens before you get to the world selection screen has to be related to something about your installation / configuration.
Configure your profile to use a new (empty but existing) game directory.
Does it work then? If yes, it's something about stuff inside your game directory.
You could try incrementally copying stuff from the old to the new game directory until you find out what triggers this issue.
It might be something about one save in particular that MC touches in order to bring up the world selector screen.
It might be a bad option in options.txt
maybe something else.
Thanks Gerbil for answering my question on how to get the defaults back instead of just repeatedly telling me to put them in there. :-) While that still didn't work, creating an empty game directory made it work. I'll start eliminating stuff in the original directory to determine the culprit. That at least gives me something to go with. I appreciate the help.