Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-94942

Large numbers of scheduled instant updates crashes the game

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 1.16.100.50 Beta, 1.16.10, 1.16.20
    • Fix Version/s: 1.16.200.52 Beta, 1.16.200
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Platform:
      Multiple
    • ADO:
      400860

      Description

      Large numbers of scheduled instant updates crash the game. There are multiple ways to reproduce this, however doing /fill is the easiest.

      Steps to reproduce:

      • do /fill ~~~ ~15 ~15 ~15 flower_pot (or any other block that uses instant updates)
      • make sure the fill command doesn't cross a chunk border, since instant updates from commands ignore other chunks
      • the game will crash

      Explanation:

      /fill commands place the blocks first and then processes the updates later.
      This means that the instant updates are chained and this chain results in lots of instant updates being scheduled and the game crashing, probably because of a stack overflow error.

      This is similar to what happens in java.

      It can result in lots of unnecessary crashes when using commands and could be used to crash a server in survival as well.

      This cannot simply be fixed by making everything use pendingTicks, since that is simply not possible for blocks like doors, beds and portal tiles without adding some dupe glitches or wierd behaviour.

        Attachments

          Issue Links

            Activity

              People

              Reporter:
              77Tigers 77Tigers
              Votes:
              15 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                CHK: