mojira.dev
MC-93162

Exception while updating neighbours java.lang.StackOverflowError (blocks needing a support block)

Mod note

This issue is about crashing in crashing in superflat worlds / filling large areas with blocks needing a support layer
Issues about crashing in normal / amplified / customized worlds when updating water and/or lava is MC-32168

What I expected to happen was...:
A piston would not have activated when pushing cake, due to over 16 blocks being pushed.

What actually happened was...:
Game-crashing results

Steps to Reproduce:
1. Create a superflat world with only 1 layer of cake
2. Place a sticky piston with slime block (does work without slime block) into the cake
3. Power the piston and watch game crash

Also, this actually happened in 15w45a, but that version is not an option.

---- Minecraft Crash Report ----
// Ooh. Shiny.

Time: 11/21/15 8:05 PM
Description: Exception while updating neighbours

java.lang.StackOverflowError: Exception while updating neighbours
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(Unknown Source)
	at java.security.SecureClassLoader.defineClass(Unknown Source)
	at java.net.URLClassLoader.defineClass(Unknown Source)
	at java.net.URLClassLoader.access$100(Unknown Source)
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at ahn.e(SourceFile:449)
	at ahn.d(SourceFile:412)
	at ahn.c(SourceFile:382)
	at ahn.a(SourceFile:326)
	at ahn.g(SourceFile:345)
	at aju.a(SourceFile:104)
...
	at ahn.d(SourceFile:412)
	at ahn.c(SourceFile:382)
	at ahn.a(SourceFile:326)
	at ahn.g(SourceFile:345)
	at aju.a(SourceFile:104)
	at ahn.e(SourceFile:447)
	at ahn.d(SourceFile:412)
	at ahn.c(SourceFile:382)
	at ahn.a(SourceFile:326)
	at ahn.g(SourceFile:345)
	at aju.a(SourceFile:104)
	at ahn.e(SourceFile:447)
	at ahn.d(SourceFile:412)
	at ahn.c(SourceFile:382)
	at ahn.a(SourceFile:326)


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

-- Head --
Stacktrace:
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(Unknown Source)
	at java.security.SecureClassLoader.defineClass(Unknown Source)
	at java.net.URLClassLoader.defineClass(Unknown Source)

-- Block being updated --
Details:
	Source block type: ID #92 (tile.cake // aju)
	Block: minecraft:cake[bites=0]
	Block location: World: (-719,0,943), Chunk: (at 1,0,15 in -45,58; contains blocks -720,0,928 to -705,255,943), Region: (-2,1; contains chunks -64,32 to -33,63, blocks -1024,0,512 to -513,255,1023)
Stacktrace:
	at ahn.e(SourceFile:450)
	at ahn.d(SourceFile:412)
	at ahn.c(SourceFile:382)
	at ahn.a(SourceFile:326)
	at ahn.g(SourceFile:345)
	at aju.a(SourceFile:104)
	at ahn.e(SourceFile:447)
...
	at ahn.c(SourceFile:382)
	at ahn.a(SourceFile:326)
	at ahn.g(SourceFile:345)
	at aju.a(SourceFile:104)

-- Block being updated --
Details:
	Source block type: ID #92 (tile.cake // aju)
	Block: minecraft:cake[bites=0]
	Block location: World: (-720,0,943), Chunk: (at 0,0,15 in -45,58; contains blocks -720,0,928 to -705,255,943), Region: (-2,1; contains chunks -64,32 to -33,63, blocks -1024,0,512 to -513,255,1023)

-- Block being updated --
Details:
	Source block type: ID #92 (tile.cake // aju)
	Block: minecraft:cake[bites=0]
	Block location: World: (-721,0,943), Chunk: (at 15,0,15 in -46,58; contains blocks -736,0,928 to -721,255,943), Region: (-2,1; contains chunks -64,32 to -33,63, blocks -1024,0,512 to -513,255,1023)

...

-- Block being updated --
Details:
	Source block type: ID #92 (tile.cake // aju)
	Block: minecraft:cake[bites=0]
	Block location: World: (-1514,0,943), Chunk: (at 6,0,15 in -95,58; contains blocks -1520,0,928 to -1505,255,943), Region: (-3,1; contains chunks -96,32 to -65,63, blocks -1536,0,512 to -1025,255,1023)

-- Block being updated --
Details:
	Source block type: ID #36 (tile.null // aqo)
	Block: minecraft:cake[bites=0]
	Block location: World: (-1515,0,943), Chunk: (at 5,0,15 in -95,58; contains blocks -1520,0,928 to -1505,255,943), Region: (-3,1; contains chunks -96,32 to -65,63, blocks -1536,0,512 to -1025,255,1023)

-- Block entity being ticked --
Details:
	Name: Piston // aqp
	Block type: ID #165 (tile.slime // aod)
	Block data value: 0 / 0x0 / 0b0000
	Block location: World: (-1516,0,943), Chunk: (at 4,0,15 in -95,58; contains blocks -1520,0,928 to -1505,255,943), Region: (-3,1; contains chunks -96,32 to -65,63, blocks -1536,0,512 to -1025,255,1023)
	Actual block type: ID #165 (tile.slime // aod)
	Actual block data value: 0 / 0x0 / 0b0000

-- Affected level --
Details:
	Level name: Super Mario Maker
	All players: 1 total; [ls['Snikerop'/0, l='Super Mario Maker', x=-1515.57, y=2.99, z=941.90]]
	Chunk stats: ServerChunkCache: 481 Drop: 0
	Level seed: 3884665546513655187
	Level generator: ID 01 - flat, ver 0. Features enabled: false
	Level generator options: 3;minecraft:cake;1;
	Level spawn location: World: (-1531,4,976), Chunk: (at 5,0,0 in -96,61; contains blocks -1536,0,976 to -1521,255,991), Region: (-3,1; contains chunks -96,32 to -65,63, blocks -1536,0,512 to -1025,255,1023)
	Level time: 5588 game time, 5588 day time
	Level dimension: 0
	Level storage version: 0x04ABD - Anvil
	Level weather: Rain time: 141852 (now: false), thunder time: 93113 (now: false)
	Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true

-- System Details --
Details:
	Minecraft Version: 15w45a
	Operating System: Windows 7 (x86) version 6.1
	Java Version: 1.8.0_60, Oracle Corporation
	Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
	Memory: 154666456 bytes (147 MB) / 253124608 bytes (241 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
	Profiler Position: N/A (disabled)
	Player Count: 1 / 8; [ls['Snikerop'/0, l='Super Mario Maker', x=-1515.57, y=2.99, z=941.90]]
	Type: Integrated Server (map_client.txt)
	Is Modded: Probably not. Jar signature remains and both client + server brands are untouched.

Linked issues

MC-29854 Hopper: java.lang.StackOverflowError Resolved MC-30224 Hopper: java.lang.StackOverflowError Resolved MC-31268 Hopper: java.lang.StackOverflowError Resolved MC-31277 Hopper: java.lang.StackOverflowError Resolved MC-35136 Hopper: java.lang.StackOverflowError: Exception while updating neighbours Resolved

Attachments

Comments 2

Tan Chin Cheern

I think the game deletes the cake blocks so rapidly/unable to remove the data/unable to change to an air block fast enough so it crashes.

Each cake gets an update, realizes that it cannot exist, deletes itself and then updates the neighbours. Since they can all not exist it breaks, nothing that can happen naturally in the game though.

Sam Love

Erik Broes

Unconfirmed

Minecraft 15w46a

Retrieved