mojira.dev
MC-248637

Crash when opening singleplayer screen due to StackOverflowError in net.minecraft.nbt.CompoundTag$1.skip

Every time I open Minecraft 1.18.2 and I click Singleplayer, it says Saving World and crashes. The error code is:

Description: mouseClicked event handler

java.lang.StackOverflowError: mouseClicked event handler
	at og$1.a(SourceFile:134)
	at og$1.a(SourceFile:136)
	at og$1.a(SourceFile:136)
	at og$1.a(SourceFile:136)
	at og$1.a(SourceFile:136)
	at og$1.a(SourceFile:136)
	at og$1.a(SourceFile:136)
	at og$1.a(SourceFile:136)
	at og$1.a(SourceFile:136)
	at og$1.a(SourceFile:136)
	at og$1.a(SourceFile:136)
	at og$1.a(SourceFile:136)
	at og$1.a(SourceFile:136)
	at og$1.a(SourceFile:136)
	at og$1.a(SourceFile:136)
	at og$1.a(SourceFile:136)
	...

Linked issues

Attachments

Comments 8

Please attach the crash report not just a screenshot of it

now the deep dark experimental snapshot causes the same issue

In the prerelease it should log which world folder is causing the issue before the crash.
Can you please attach the level.dat from that folder to the report?

I don't know what world is causing the issue.

Ahh ok.
To find out which world is causing is:
1. Reproduce the crash in the prerelease.
2. Check the file %APPDATA%\.minecraft\logs\latest.log. It should contain a line like Ran out of stack trying to read summary of <folder of level that caused the crash> (pretty much the last non-indented line towards the end of the file).

The file you provided was very insightful. It is broken in an interesting way.
The next prerelease (1.18.2-pre3) will try to restore the world if possible. It will still crash once, but shouldn't when starting it a second time.

Thank you for your help! 🙂

I moved it out of the saves folder and I could play, I might move it back though I don't use that world anymore. I also was hesitant to report it, I'm glad I did.

Nope

Panda4994

Plausible

Very Important

Crash

StackOverflowError

22w07a, 1.18.2 Pre-release 1, 1.18.2 Pre-release 2

1.18.2 Pre-release 3

Retrieved