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

Minecraft resaves all maps with every autosave

XMLWordPrintable

    • Plausible
    • Maps, Performance, Save Data
    • Normal
    • Platform

      Steps to reproduce

      1. Open a world with many locked maps, or create one with an empty map and a glass pane in a cartography table, and duplicate it in the data folder to have a good quantity of locked maps. You can check that they are with tools like nbtexplorer.
      2. Place a map in an item frame to force game to load it
      3. Wait auto-saving

      Observed behaviour

      The game slows down a lot, freezes and eventually crashes. This is because it tries to resave all the maps that have been loaded, even though they are locked and therefore unable to change. Some map.dat file is also corrupted during an unsuccessful backup.

      Expected behaviour

      The game shouldn't try to re-save locked maps.

      Notes

      This has a particular impact on data pack creations, especially those that use maps to display videos in-game.

      For example, with datapack(BA.zip) and maps(data.zip) generated using McMovieMaker to display a video in the game, causes a freeze of over 20 minutes (at least with my configuration and 8GB RAM) as soon as the game tries to autosave. Logs in the pinned comment

        1. map_97993(before playing).dat
          0.2 kB
        2. map_97993(after playing).dat
          0.0 kB
        3. latest.log
          16 kB
        4. data.zip
          1.58 MB
        5. BA.zip
          84 kB

            gegy1000 [Mojang] Gegy
            nathanael.buendi nathanael.buendi
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: