Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-264414

Moving Piston Triggers Stack Overflow

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.1, 1.21.3
    • None
    • Any OS and properly set-up environment is susceptible to this bug.
    • Community Consensus
    • Crash
    • Normal
    • Platform

      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.

            Unassigned Unassigned
            Kedit2007 Kedit2007
            Votes:
            6 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              CHK: