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

World and/or player data gets corrupted if a server is suddenly shut down

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 1.11.2, Minecraft 17w06a, Minecraft 17w13a, Minecraft 17w13b, Minecraft 1.12.2, Minecraft 18w14a, Minecraft 18w14b, Minecraft 18w19b, Minecraft 1.13-pre3, Minecraft 1.13-pre6, Minecraft 1.13, Minecraft 18w31a, Minecraft 18w32a, Minecraft 1.13.1-pre1, Minecraft 1.13.1-pre2, Minecraft 1.13.1, Minecraft 1.13.2-pre1, Minecraft 1.13.2-pre2, Minecraft 1.13.2, Minecraft 18w43a, Minecraft 18w43b, Minecraft 18w43c, Minecraft 18w44a, Minecraft 18w45a, Minecraft 18w46a, Minecraft 18w47a, Minecraft 18w47b, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, Minecraft 19w02a, Minecraft 19w03a, Minecraft 19w03b, Minecraft 19w03c, Minecraft 19w04a, Minecraft 19w04b, Minecraft 19w05a, Minecraft 19w06a, Minecraft 19w07a, Minecraft 19w08a, Minecraft 19w08b, Minecraft 19w09a, Minecraft 19w11a, Minecraft 19w11b, Minecraft 19w12a, Minecraft 19w12b, Minecraft 19w13a, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, Minecraft 1.14 Pre-Release 1, Minecraft 1.14 Pre-Release 2, Minecraft 1.14 Pre-Release 3, Minecraft 1.14 Pre-Release 4, Minecraft 1.14 Pre-Release 5, Minecraft 1.14, Minecraft 1.14.1 Pre-Release 1, Minecraft 1.14.1 Pre-Release 2, Minecraft 1.14.1, Minecraft 1.14.2 Pre-Release 1, Minecraft 1.14.2 Pre-Release 2, Minecraft 1.14.2 Pre-Release 3, Minecraft 1.14.2 Pre-Release 4, Minecraft 1.14.2, Minecraft 1.14.3 Pre-Release 2, Minecraft 1.14.3 Pre-Release 3, Minecraft 1.14.3 Pre-Release 4, Minecraft 1.14.3, Minecraft 1.14.4 Pre-Release 2, Minecraft 1.14.4 Pre-Release 3, Minecraft 1.14.4 Pre-Release 4, Minecraft 1.14.4 Pre-Release 5, Minecraft 1.14.4 Pre-Release 6, 1.14.4, 19w45b, 1.15 Pre-release 1, 1.15 Pre-release 4, 1.15 Pre-release 6, 1.15 Pre-release 7, 1.15, 1.15.1, 1.15.1 Pre-release 1, 1.15.2 Pre-release 2, 1.15.2, 20w06a, 20w07a, 20w08a, 20w09a, 20w10a, 20w11a, 20w12a, 20w13b, 20w15a, 20w16a, 20w17a, 20w18a, 20w19a, 20w20b, 20w21a, 1.16 Pre-release 1, 1.16 Pre-release 2, 1.16 Pre-release 3, 1.16 Pre-release 4, 1.16 Pre-release 5, 1.16 Pre-release 8, 1.16 Release Candidate 1, 1.16, 1.16.1, 20w29a, 1.16.2 Pre-release 1, 1.16.2 Release Candidate 1, 1.16.2 Release Candidate 2, 1.16.2, 1.16.3, 1.16.4, 20w45a, 20w46a, 1.16.5, 1.17.1, 1.18, 1.19, 1.19.2, 1.19.3, 1.20, 1.20.1, 1.20.4
    • None
    • Confirmed
    • Save Data
    • Important
    • Platform

      The bug

      If an integrated / multiplayer server gets forcibly or unexpectedly closed (due to a crash / PC shutdown / OS update - Windows in particular) the world data gets corrupted.

      Potential corruptions / damage:

      • Unreadable region files (chunk, block, entity data)
      • Level.dat (general data about the world and player data in singleplayer)
      • Unrecoverable player data in multiplayer (resulting in complete overwrite of the files at the next start)
      • Chunk saving errors when the server tries to save the world after the corruption

       

      [14:06:37] [Server thread/WARN]: Failed to load player data for VideoklipBG
      [14:06:37] [Server thread/INFO]: VideoklipBG[/192.168.0.180:50321] logged in with entity id 196 at (101.5, 67.0, -117.5)
      [14:06:37] [Server thread/INFO]: VideoklipBG joined the game
      
      [14:06:54] [File IO Thread/ERROR]: Failed to save chunk
      java.lang.IndexOutOfBoundsException: Index: 811, Size: 805
              at java.util.ArrayList.rangeCheck(Unknown Source) ~[?:1.8.0_181]
              at java.util.ArrayList.set(Unknown Source) ~[?:1.8.0_181]
              at bnw.a(SourceFile:304) ~[server_18w31a.jar:?]
              at bnw$a.close(SourceFile:279) ~[server_18w31a.jar:?]
              at java.util.zip.DeflaterOutputStream.close(Unknown Source) ~[?:1.8.0_181]
              at java.io.FilterOutputStream.close(Unknown Source) ~[?:1.8.0_181]
              at java.io.FilterOutputStream.close(Unknown Source) ~[?:1.8.0_181]
              at bns.a(SourceFile:270) [server_18w31a.jar:?]
              at cdt.c(SourceFile:44) [server_18w31a.jar:?]
              at cdt.run(SourceFile:35) [server_18w31a.jar:?]
              at java.lang.Thread.run(Unknown Source) [?:1.8.0_181]
      [14:07:25] [Server thread/INFO]: [VideoklipBG: Saved the game]
      [14:07:28] [Server thread/ERROR]: Failed to save chunk
      java.lang.IndexOutOfBoundsException: Index: 807, Size: 805
              at java.util.ArrayList.rangeCheck(Unknown Source) ~[?:1.8.0_181]
              at java.util.ArrayList.set(Unknown Source) ~[?:1.8.0_181]
              at bnw.a(SourceFile:304) ~[server_18w31a.jar:?]
              at bnw$a.close(SourceFile:279) ~[server_18w31a.jar:?]
              at java.util.zip.DeflaterOutputStream.close(Unknown Source) ~[?:1.8.0_181]
              at java.io.FilterOutputStream.close(Unknown Source) ~[?:1.8.0_181]
              at java.io.FilterOutputStream.close(Unknown Source) ~[?:1.8.0_181]
              at bns.a(SourceFile:270) ~[server_18w31a.jar:?]
              at bns.b(SourceFile:296) ~[server_18w31a.jar:?]
              at td.c(SourceFile:235) ~[server_18w31a.jar:?]
              at te.u(SourceFile:746) ~[server_18w31a.jar:?]
              at rk.a(SourceFile:60) ~[server_18w31a.jar:?]
              at rk.a(SourceFile:39) ~[server_18w31a.jar:?]
              at rk.a(SourceFile:25) ~[server_18w31a.jar:?]
              at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:132) ~[server_18w31a.jar:?]
              at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:72) ~[server_18w31a.jar:?]
              at bv.a(SourceFile:205) ~[server_18w31a.jar:?]
              at ud.c(SourceFile:1075) ~[server_18w31a.jar:?]
              at ud.a(SourceFile:1062) ~[server_18w31a.jar:?]
              at mi.a(SourceFile:37) ~[server_18w31a.jar:?]
              at mi.a(SourceFile:9) ~[server_18w31a.jar:?]
              at iy.a(SourceFile:10) ~[server_18w31a.jar:?]
              at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_181]
              at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_181]
              at k.a(SourceFile:199) [server_18w31a.jar:?]
              at net.minecraft.server.MinecraftServer.b(SourceFile:726) [server_18w31a.jar:?]
              at sp.b(SourceFile:360) [server_18w31a.jar:?]
              at net.minecraft.server.MinecraftServer.a(SourceFile:681) [server_18w31a.jar:?]
              at net.minecraft.server.MinecraftServer.run(SourceFile:584) [server_18w31a.jar:?]
              at java.lang.Thread.run(Unknown Source) [?:1.8.0_181]
      [14:07:28] [Server thread/ERROR]: Failed to save chunk
      java.lang.IndexOutOfBoundsException: Index: 811, Size: 805
              at java.util.ArrayList.rangeCheck(Unknown Source) ~[?:1.8.0_181]
              at java.util.ArrayList.set(Unknown Source) ~[?:1.8.0_181]
              at bnw.a(SourceFile:304) ~[server_18w31a.jar:?]
              at bnw$a.close(SourceFile:279) ~[server_18w31a.jar:?]
              at java.util.zip.DeflaterOutputStream.close(Unknown Source) ~[?:1.8.0_181]
              at java.io.FilterOutputStream.close(Unknown Source) ~[?:1.8.0_181]
              at java.io.FilterOutputStream.close(Unknown Source) ~[?:1.8.0_181]
              at bns.a(SourceFile:270) ~[server_18w31a.jar:?]
              at bns.b(SourceFile:296) ~[server_18w31a.jar:?]
              at td.c(SourceFile:235) ~[server_18w31a.jar:?]
              at te.u(SourceFile:746) ~[server_18w31a.jar:?]
              at rk.a(SourceFile:60) ~[server_18w31a.jar:?]
              at rk.a(SourceFile:39) ~[server_18w31a.jar:?]
              at rk.a(SourceFile:25) ~[server_18w31a.jar:?]
              at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:132) ~[server_18w31a.jar:?]
              at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:72) ~[server_18w31a.jar:?]
              at bv.a(SourceFile:205) ~[server_18w31a.jar:?]
              at ud.c(SourceFile:1075) ~[server_18w31a.jar:?]
              at ud.a(SourceFile:1062) ~[server_18w31a.jar:?]
              at mi.a(SourceFile:37) ~[server_18w31a.jar:?]
              at mi.a(SourceFile:9) ~[server_18w31a.jar:?]
              at iy.a(SourceFile:10) ~[server_18w31a.jar:?]
              at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_181]
              at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_181]
              at k.a(SourceFile:199) [server_18w31a.jar:?]
              at net.minecraft.server.MinecraftServer.b(SourceFile:726) [server_18w31a.jar:?]
              at sp.b(SourceFile:360) [server_18w31a.jar:?]
              at net.minecraft.server.MinecraftServer.a(SourceFile:681) [server_18w31a.jar:?]
              at net.minecraft.server.MinecraftServer.run(SourceFile:584) [server_18w31a.jar:?]
              at java.lang.Thread.run(Unknown Source) [?:1.8.0_181]

       

            Unassigned Unassigned
            VideoklipBG VideoklipBG
            Votes:
            31 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              CHK: