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

Player data and region files not written to disk simultaneously causing item duplication

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.4.1, Snapshot 13w19a, Snapshot 13w21a, Minecraft 1.8.8, Minecraft 16w02a, Minecraft 1.9, Minecraft 1.9.1 Pre-Release 1, Minecraft 1.9.4, Minecraft 16w20a, Minecraft 1.11, Minecraft 16w50a, Minecraft 1.11.2, Minecraft 17w17a, Minecraft 17w17b, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 18w15a, Minecraft 1.13-pre1, Minecraft 1.13-pre2, Minecraft 1.13.2, 1.14.4, 1.15.2, 1.16.1
    • Fix Version/s: Minecraft 1.4.5
    • Confirmation Status:
      Confirmed
    • Category:
      Player
    • Mojang Priority:
      Normal

      Description

      The bug

      Due to player data and region files not written to disk simultaneously, items can be duplicated quite easy under certain conditions. As of 1.16, Minecraft can be configured to run in synchronous disk i/o mode, making this issue more obvious and easier to reproduce.

      How to reproduce

      1. Make sure syncChunkWrites in options.txt is set to true
      2. Create a world and fill your inventory with things
      3. Leave the world to make sure player data gets written to disk
      4. Rejoin the world
      5. Die
      6. Forcefully terminate minecraft's java process (Taskmanager, /taskkill, ...)
      7. Rejoin the world
        Notice things you've collected now appear on the ground and in your inventory

      Video demonstrating the issue (potentially outdated regarding reproduction): https://youtu.be/0RYRj5XN8vk?t=25s

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              marshallguy Marshall Bolwes
              Votes:
              57 Vote for this issue
              Watchers:
              34 Start watching this issue

                Dates

                Created:
                Updated:
                CHK: