mojira.dev
MC-264414

Moving Piston Triggers Stack Overflow

When a piston with its "blockState" set to {"Name": "minecraft:moving_piston"}, the game seems to be stuck in an infinite recursion, which crashes the game due to a stack overflow error.

This infinite recursion continues when the world is loaded after restarting the game, which holds the level unplayable. The log says the crash takes place when it's "Ticking block entity".

This is easily reproducible by the following command:

data merge block <moving_piston's position> {blockState: {Name: "minecraft:moving_piston"}}

Edit: Only non-source moving pistons can trigger this glitch.

The log of the crash is attached in the Attachment.

Environment

Any OS and properly set-up environment is susceptible to this bug.

Attachments

Comments 3

Still happens in 26.2 Pre-Release 2, the bug was introduced in 14w25a (1.8) and b1.7/b1.7_01 if you’re extra

migrated

(Unassigned)

Community Consensus

Platform

Normal

Crash

1.20.1, 1.21.3

Retrieved