The bug
Worlds aren't deleted after dying in hardcore mode.
How to reproduce
Die in hardcore mode
Click "Delete world"
→ This returns you instantly to the title screenClick "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.
Linked issues
is duplicated by 29
relates to 2
Attachments
Comments 79
I did not get the same error as you, yet I agree the hardcore delete world screen is very glitchy. I died in hardcore and tried to see if I could respawn by pressing the respawn button. When I did however it said that it was game over and I was kicked from the server. (I was playing single-player offline) and put me on the multiplayer server screen.
Edit: I tried this a few times on a modified superflat world (1 block of grass so i can break through and die 😛) Got the same result. Title screen and respawn should be changed to title and delete, the actual bug IMO is that the options were copied over from single player survival and that when you are playing single player offline it still sends you to the server select screen.
The basically just need to not have it come up. Its just cause they added the "are you sure" screen to the death screen so people wouldn't acidently hit main menu when they die.
I don't think the "Are you sure" screen should be removed because I think its a useful feature. (with the new "rebuild world" feature I can get the same world) I have accidentally deleted a world I wanted to rebuild or at least get the seed for the world a few times. (just cuz im used to pressing the respawn button in survival) It just needs to be tailored to fit hardcore mode too.
Video Proof: http://youtu.be/2jLoZtpa2PA
OS: Windows 7
Java: 7u40
Snapshot:13w39b
Aww, that's not really resolving it though, that's putting a band-aid on it. Having to manually delete the worlds is needlessly cumbersome. Why couldn't the button instead do what it said it would do, instead of being re-labeled to leave us with additional inconvenience? 😞
Can not reporduce. The delete world button does go to the "are you sure you want to quit" screen with the main menu and respawn buttons, but when I click respawn it says "you died. game over" and kicked me to the muliplayer screen. when I go back to the single player world options the world has been deleted.