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

Game crashes on loading world with a java.lang.StackOverflowError after using structure blocks due to multiple block entities in the same location

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 17w47a
    • Minecraft 1.10.2, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 17w43b, Minecraft 17w45a
    • Community Consensus
    • Creative

      Workaround

      I (pokechu22) have written a tool that can recover your world by removing the duplicated block entities:

      1. For safety, make a complete backup of your world (this tool modifies files in-place).
      2. Download this program (source code). Make sure your browser saves it as a .jar file, not a .zip file.
      3. Run it. A window should open.
      4. Select "add files", and then find your world, enter the region folder, and select the mca file with the duplicate block entity. If you don't know which file that is, just select them all.
      5. Wait while the tool runs. Any duplicate block entities will be output in the log (full NBT); other chunks will just have counts.
      6. The world should now load ingame.

      If you have any further information about this bug, please comment.

      I thought that using structure blocks would allow me to copy-paste buildings, and it did. However, now that I've done it, opening the map crashes the game. There was another folder created (that wasn't there before) that had a weird symbol in front of the name, and I deleted that after it started crashing.

      I honestly don't know if it can be reproduced, and I just want this world back. I hadn't backed it up in a while, and it was really important to me.


      Code analysis

        1. structures.zip
          41 kB
        2. RepairTool.zip
          47 kB
        3. r.0.0.mca
          4.55 MB
        4. MC-109348_mintest.zip
          149 kB
        5. crash-2017-08-30_12.52.48-server.txt
          28 kB
        6. crash-2016-10-28_15.00.45-server.txt
          27 kB

            Unassigned Unassigned
            Ranger_Garrick Hunter Morrison
            Votes:
            5 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: