mojira.dev
MC-202568

Minecraft crashes when pressing the 'Singleplayer' button

Minecraft starts normally - but the second I hit the "Singleplayer" button to select my world the game freezes and crashes and gives me this large crash screen.

Stack trace

---- Minecraft Crash Report ----
// I bet Cylons wouldn't have this problem.

Time: 10/22/20 5:51 AM
Description: mouseClicked event handler

java.lang.OutOfMemoryError: Java heap space
 at java.util.ArrayList.<init>(ArrayList.java:152)
 at com.google.common.collect.Lists.newArrayListWithCapacity(Lists.java:190)
 at mj$1.a(SourceFile:47)
 at mj$1.b(SourceFile:32)
 at md.b(SourceFile:471)
 at md.a(SourceFile:32)
 at md$1.a(SourceFile:83)
 at md$1.b(SourceFile:69)
 at md.b(SourceFile:471)
 at md.a(SourceFile:32)
 at md$1.a(SourceFile:83)
 at md$1.b(SourceFile:69)
 at md.b(SourceFile:471)
 at md.a(SourceFile:32)
 at md$1.a(SourceFile:83)
 at md$1.b(SourceFile:69)
 at mn.a(SourceFile:108)
 at mn.a(SourceFile:75)
 at mn.a(SourceFile:32)
 at mn.a(SourceFile:26)
 at cyd.a(SourceFile:229)
 at cyd$$Lambda$3002/978203459.apply(Unknown Source)
 at cyd.a(SourceFile:186)
 at cyd.b(SourceFile:157)
 at dse.a(SourceFile:91)
 at dse.<init>(SourceFile:83)
 at dsb.b(SourceFile:48)
 at doq.b(SourceFile:325)
 at djw.a(SourceFile:897)
 at dov.d(SourceFile:141)
 at dov$$Lambda$2677/1432747042.onPress(Unknown Source)
 at dlg.b(SourceFile:33)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Render thread
Stacktrace:
 at java.util.ArrayList.<init>(ArrayList.java:152)
 at com.google.common.collect.Lists.newArrayListWithCapacity(Lists.java:190)
 at mj$1.a(SourceFile:47)
 at mj$1.b(SourceFile:32)
 at md.b(SourceFile:471)
 at md.a(SourceFile:32)
 at md$1.a(SourceFile:83)
 at md$1.b(SourceFile:69)
 at md.b(SourceFile:471)
 at md.a(SourceFile:32)
 at md$1.a(SourceFile:83)
 at md$1.b(SourceFile:69)
 at md.b(SourceFile:471)
 at md.a(SourceFile:32)
 at md$1.a(SourceFile:83)
 at md$1.b(SourceFile:69)
 at mn.a(SourceFile:108)

-- Affected screen --
Details:
 Screen name: dov
Stacktrace:
 at doq.a(SourceFile:438)
 at djx.a(SourceFile:92)
 at djx.c(SourceFile:162)
 at djx$$Lambda$2987/808782963.run(Unknown Source)
 at any.execute(SourceFile:94)
 at djx.b(SourceFile:162)
 at djx$$Lambda$2343/271633972.invoke(Unknown Source)
 at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:36)
 at org.lwjgl.system.JNI.invokeV(Native Method)
 at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3101)
 at com.mojang.blaze3d.systems.RenderSystem.flipFrame(SourceFile:102)
 at dew.e(SourceFile:308)
 at djw.e(SourceFile:1043)
 at djw.e(SourceFile:656)
 at net.minecraft.client.main.Main.main(SourceFile:215)

Linked issues

Comments 7

It seems like Minecraft may be out of memory for you, you can allocate more with tutorials online.

But according to their System Details, they are already using 5GB (-Xmx5G), which should be more than enough.

Deobfuscated stack trace

java.lang.OutOfMemoryError: Java heap space
at java.util.ArrayList.<init>(ArrayList.java:152)
at com.google.common.collect.Lists.newArrayListWithCapacity(Lists.java:190)
at net.minecraft.nbt.ListTag$1.load(ListTag.java:47)
at net.minecraft.nbt.ListTag$1.load(ListTag.java:32)
at net.minecraft.nbt.CompoundTag.readNamedTagData(CompoundTag.java:471)
at net.minecraft.nbt.CompoundTag.access$000(CompoundTag.java:32)
at net.minecraft.nbt.CompoundTag.access$200(CompoundTag.java:32)
at net.minecraft.nbt.CompoundTag$1.load(CompoundTag.java:83)
at net.minecraft.nbt.CompoundTag$1.load(CompoundTag.java:69)
at net.minecraft.nbt.CompoundTag.readNamedTagData(CompoundTag.java:471)
at net.minecraft.nbt.CompoundTag.access$000(CompoundTag.java:32)
at net.minecraft.nbt.CompoundTag.access$200(CompoundTag.java:32)
at net.minecraft.nbt.CompoundTag$1.load(CompoundTag.java:83)
at net.minecraft.nbt.CompoundTag$1.load(CompoundTag.java:69)
at net.minecraft.nbt.CompoundTag.readNamedTagData(CompoundTag.java:471)
at net.minecraft.nbt.CompoundTag.access$000(CompoundTag.java:32)
at net.minecraft.nbt.CompoundTag.access$200(CompoundTag.java:32)
at net.minecraft.nbt.CompoundTag$1.load(CompoundTag.java:83)
at net.minecraft.nbt.CompoundTag$1.load(CompoundTag.java:69)
at net.minecraft.nbt.NbtIo.readUnnamedTag(NbtIo.java:108)
at net.minecraft.nbt.NbtIo.read(NbtIo.java:75)
at net.minecraft.nbt.NbtIo.readCompressed(NbtIo.java:32)
at net.minecraft.nbt.NbtIo.readCompressed(NbtIo.java:26)
at net.minecraft.world.level.storage.LevelStorageSource.lambda$levelSummaryReader$5(LevelStorageSource.java:229)
at cyd$$Lambda$3002/978203459.apply(Unknown Source)
at net.minecraft.world.level.storage.LevelStorageSource.readLevelData(LevelStorageSource.java:186)
at net.minecraft.world.level.storage.LevelStorageSource.getLevelList(LevelStorageSource.java:157)
at net.minecraft.client.gui.screens.worldselection.WorldSelectionList.refreshList(WorldSelectionList.java:91)
at net.minecraft.client.gui.screens.worldselection.WorldSelectionList.<init>(WorldSelectionList.java:83)
at net.minecraft.client.gui.screens.worldselection.SelectWorldScreen.init(SelectWorldScreen.java:48)
at net.minecraft.client.gui.screens.Screen.init(Screen.java:325)
at net.minecraft.client.Minecraft.setScreen(Minecraft.java:897)
at net.minecraft.client.gui.screens.TitleScreen.lambda$createNormalMenuOptions$4(TitleScreen.java:141)
at dov$$Lambda$2677/1432747042.onPress(Unknown Source)
at net.minecraft.client.gui.components.Button.onPress(Button.java:33)

@@unknown it looks like one of your worlds might be corrupted (or is for some reason extremely large). Could you please one by one move the world folders to a separate folder and check if the issue still occurs? (And afterwards move all world folders back)

Margaret Harper

@marcano134 I did what you specified and when I removed one of my worlds I was able to log in - but I only had two worlds. I put the old world back and the game was back to crashing. This is kind of upsetting because I spent a lot of time working on this world. Is there a way I can save it?

Yes, I know that I'm not a moderator, I understand that, but here's a suggestion: Use a third-party Minecraft region fixer. Note that this isn't monitored by Mojang and be sure to make a backup of the world!
 
 

Please attach the affected (zipped) world file. If the file size is too large, please upload it somewhere else and then link to it here.

Quick Links:
📓 Issue Guidelines – 🛠 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
💬 Mojira Subreddit – 💬 Mojira Discord

Reopened due to a lot of other bug reports about this existing.

I'm assuming that the issue here might be that there are too many files in the save folder, so that Minecraft takes ages to load all the worlds into memory? Not quite sure. Might be related to MC-189897.

We need additional information to fix this issue. Please attach the world file causing the problem as per this comment.

Margaret Harper

(Unassigned)

Community Consensus

Very Important

Crash

1.16.3, 1.16.5

Retrieved