mojira.dev
MC-231185

Server crash while loading Superflat world based on Rails // java.lang.StackOverflowError: Exception while updating neighbours

 Steps to reproduce

  1. Create new world

  2. More world options

  3. Worldtype: Superflat

  4. Customize

  5. Presets

  6. Enter preset - minecraft:rail

  7. Server will crash while loading the world

Same crash occurs when using the minecraft:repeater preset, just after first player interaction with one of the repeaters.

Stacktrace

Encountered an unexpected exception
z: Exception while updating neighbours
	at net.minecraft.server.MinecraftServer.b(SourceFile:886)
	at net.minecraft.server.MinecraftServer.a(SourceFile:822)
	at faq.a(SourceFile:96)
	at net.minecraft.server.MinecraftServer.x(SourceFile:688)
	at net.minecraft.server.MinecraftServer.a(SourceFile:270)
	at java.base/java.lang.Thread.run(Thread.java:831)
Caused by: java.lang.StackOverflowError
	at java.base/java.lang.ClassLoader.defineClass1(Native Method)
	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1010)
	at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
	at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:855)
	at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:753)
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:676)
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:634)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:182)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:519)
	at bwq.a(SourceFile:361)
[...]

Server crash log has been included as attachment.

Attachments

Comments 3

Also happens with redstone dust/wire and comparators (might not be the exact same issue). But isn't this a duplicate of MC-1510?

Even if this bug is fixed, the rails will drop as items (assuming the gamerule doTileDrops is set to true) and the resulting item entities will crash the game anyway.

This is a duplicate of MC-93162, but it has an assigned Mojang Priority?

SimekOne

(Unassigned)

Confirmed

Very Important

Crash

1.17.1 Release Candidate 1, 1.17.1, 1.18, 1.18.1

22w11a

Retrieved