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

Hardcore game is not deleted

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 13w36b, Minecraft 13w38a, Minecraft 13w38b, Minecraft 13w38c, Minecraft 1.7.1, Minecraft 1.7.2, Minecraft 13w48a, Minecraft 13w48b, Minecraft 13w49a, Minecraft 1.7.3, Minecraft 1.7.4, Minecraft 14w32a, Minecraft 14w32b, Minecraft 1.8, Minecraft 1.8.1, Minecraft 1.8.2-pre2, Minecraft 1.8.3, Minecraft 1.8.4, Minecraft 1.8.5, Minecraft 1.8.6, Minecraft 1.8.7, Minecraft 1.8.8, Minecraft 15w31c, Minecraft 15w33c, Minecraft 15w34a, Minecraft 15w34b, Minecraft 15w34c, Minecraft 15w34d, Minecraft 15w35e, Minecraft 15w41b, Minecraft 15w46a, Minecraft 15w47a, Minecraft 15w47c, Minecraft 15w49a, Minecraft 15w49b, Minecraft 15w50a, Minecraft 16w02a, Minecraft 16w03a, Minecraft 16w04a, Minecraft 16w05a, Minecraft 16w05b, Minecraft 16w07a, Minecraft 1.9 Pre-Release 1, Minecraft 1.9 Pre-Release 2, Minecraft 1.9 Pre-Release 3, Minecraft 1.9 Pre-Release 4, Minecraft 1.9, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.9.1, Minecraft 1.9.2, Minecraft 16w14a, Minecraft 16w15a, Minecraft 1.9.3 Pre-Release 3, Minecraft 1.9.4, Minecraft 16w20a, Minecraft 16w21a, Minecraft 16w21b, Minecraft 1.10 Pre-Release 1, Minecraft 1.10 Pre-Release 2, Minecraft 1.10, Minecraft 1.10.1, Minecraft 1.10.2, Minecraft 16w35a, Minecraft 1.11.2, Minecraft 1.12, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 17w50a, Minecraft 18w06a, Minecraft 18w09a, Minecraft 18w20c, Minecraft 18w21a, Minecraft 1.13-pre1, Minecraft 1.13-pre2, Minecraft 1.13-pre5, Minecraft 1.13-pre6, Minecraft 1.13, Minecraft 18w31a, Minecraft 1.13.1, Minecraft 1.13.2-pre2, Minecraft 1.13.2, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 19w11b, 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.1, Minecraft 1.14.2 Pre-Release 2, Minecraft 1.14.2, Minecraft 1.14.3 Pre-Release 3, Minecraft 1.14.3 Pre-Release 4
    • Fix Version/s: 19w35a
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      The bug

      Worlds aren't deleted after dying in hardcore mode.

      How to reproduce

      1. Die in hardcore mode
      2. Click "Delete world"
        → This returns you instantly to the title screen
      3. Click "Singleplayer"
        → The world is still in the list

      Opening the world will bring you back to the death screen, and produce a long list of the same error, repeated many times, in the Game Output tab in the launcher:

      [06:05:34] [Client thread/FATAL]: Error executing task
      java.util.concurrent.ExecutionException: java.lang.NullPointerException
      	at java.util.concurrent.FutureTask.report(Unknown Source) ~[?:1.8.0_45]
      	at java.util.concurrent.FutureTask.get(Unknown Source) ~[?:1.8.0_45]
      	at g.a(SourceFile:61) [1.8.7.jar:?]
      	at ave.av(SourceFile:880) [1.8.7.jar:?]
      	at ave.a(SourceFile:325) [1.8.7.jar:?]
      	at net.minecraft.client.main.Main.main(SourceFile:124) [1.8.7.jar:?]
      Caused by: java.lang.NullPointerException
      	at bcy.a(SourceFile:455) ~[1.8.7.jar:?]
      	at go.a(SourceFile:54) ~[1.8.7.jar:?]
      	at go.a(SourceFile:12) ~[1.8.7.jar:?]
      	at fh$1.run(SourceFile:13) ~[1.8.7.jar:?]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[?:1.8.0_45]
      	at java.util.concurrent.FutureTask.run(Unknown Source) ~[?:1.8.0_45]
      	at g.a(SourceFile:60) ~[1.8.7.jar:?]
      	... 3 more
      

      This may happen because the world still appears to be loaded, even after returning to the title screen. Clicking the Options button will show the hardcore world in the background.
      Also in the Game Output you can see that the server was not stopped:

      Game Output (15w47c)
      ## Deletion dialog ##
      [22:36:35] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
      [22:36:35] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
      [22:36:35] [Server thread/INFO]: Saving chunks for level 'New World'/The End
      [22:37:24] [Client thread/ERROR]: Realms module missing
      ## Clicking on "Singleplayer" ##
      [22:37:37] [Server thread/INFO]: Saving and pausing game...
      [22:37:37] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
      [22:37:37] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
      [22:37:37] [Server thread/INFO]: Saving chunks for level 'New World'/The End
      ## Entering world ##
      [22:38:13] [Server thread/INFO]: Stopping server
      [22:38:13] [Server thread/INFO]: Saving players
      [22:38:13] [Server thread/INFO]: Saving worlds
      [22:38:13] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
      [22:38:13] [Server thread/WARN]: The save is being accessed from another location, aborting
      [22:38:13] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
      [22:38:13] [Server thread/INFO]: Saving chunks for level 'New World'/The End
      [22:38:13] [Server thread/INFO]: Starting integrated minecraft server version 15w47c
      [22:38:13] [Server thread/INFO]: Generating keypair
      [22:38:13] [Server thread/INFO]: Preparing start region for level 0
      [22:38:14] [Server thread/INFO]: Preparing spawn area: 90%
      [22:38:14] [Server thread/INFO]: Changing view distance to 8, from 10
      [22:38:14] [Client thread/FATAL]: Error executing task
      ...
      

      As you can see the "Delete" button does not cause the stopping of the server but instead the reopening of the world. Clicking the "Delete" button does not seem to do anything at all.

      The reason

      The following is based on decompiled version of Minecraft 1.8 using MCP. All method and class names are the names used in the decompiled version.

      The reason why this happens is very likely that the client thread tries to save the world after the client was kicked, while the server tries to delete it at the same time.

        Attachments

        1. 1.txt
          54 kB
        2. 2.txt
          4 kB
        3. 2015-06-26_05.53.41.png
          2015-06-26_05.53.41.png
          339 kB
        4. 2015-06-26_06.11.30.png
          2015-06-26_06.11.30.png
          104 kB
        5. background glitch.png
          background glitch.png
          399 kB
        6. titlebug.png
          titlebug.png
          54 kB

          Issue Links

            Activity

              People

              • Assignee:
                boq [Mojang] Bartosz Bok
                Reporter:
                marcono1234 [Mod] Marcono1234
              • Votes:
                49 Vote for this issue
                Watchers:
                38 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: