mojira.dev
MC-30646

Hardcore game is not deleted

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.

Related issues

MC-25664 Hardcore world not deleted when I died MC-32310 Hardcore asks if your sure you want to respawn. MC-40262 Singleplayer hardcore - world deletion button broken MC-69711 Hardcore Mode attempted respawn bug MC-78528 HC: "Delete World" button not working MC-78740 Hardcore death glitch MC-81154 Hardcore world won't stay deleted. MC-83700 /kill in hardcore mode doesn't delete world MC-84161 Died in Hardcore mode. Go to create new world and see my old death screen behind GUI MC-84663 Glitching "Create New World" I think MC-84929 Worlds aren't deleted after dying in Hardcore mode MC-88050 1.8 hardcore on death world not deleted bug MC-89198 Press E to open inventory shows on title screen MC-92576 Hardcore worlds not deleting MC-97773 1.9 Hardcore cant Delete world after death MC-100359 Hardcore world does not delete itself after death. MC-108941 Dying in Hardcore Mode Affects Other Menu Options MC-113183 Upon dying and deleting flatcore world, death frame replaces world selection GUI MC-119568 GUI Bug with Hardcore MC-120501 delete my world MC-126735 Hardcore Death Screen persistance after world file delete MC-133595 Clicking "Delete world" after dying on Hardcore mode doesn't delete the world MC-146669 Hardcore mode bug MC-148565 Hardcore mode breaks minecraft upon the player's death MC-151051 Hardcore "Delete world" dont work MC-153258 Choosing "Delete World" option in hardcore mode doesn't delete nor exit the world MC-153450 Clicking "Delete World" right after dying in Hardcore Mode doesn't delete that world. MC-161010 Bugs Hardcore Survival MC-167262 When I die in a Hardcore world, and click 'delete world', I get taken to the main screen, except it's a white screen, instead of the minecraft world for the background, and the world doesn't get deleted.

Attachments

Comments

migrated
[media][media][media][media][media][media]
migrated

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.

migrated

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.

migrated

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.

migrated

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.

migrated

Video Proof: http://youtu.be/2jLoZtpa2PA
OS: Windows 7
Java: 7u40
Snapshot:13w39b

ZaCloud

Confirmed for 1.7.2 and 1.7.4, please add to the list. Since I'm doing rapid successions of Hardcore Speed-Runs, my poor world list is getting FULL of "New World---------------" etc when this used to not be a problem!

Before, it was bad enough that clicking to return to the Main Menu instead brought you to a server list... but now, you either save and quit, or save and go to the server list! The "Delete World" button needs to do just that, then take us back to the main menu (not server list).

I sincerely hope this is fixed soon, it's getting super annoying having to go through and delete all these Hardcore Game Over worlds over and over and over and over...

Ezekiel

Is this still a concern in the latest Minecraft version 14w30c? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

migrated

Just encountered this bug in 14w31a.
Though the respawn option lead to a crash (minecraft not responding).

migrated

Same here. There's a reddit post that just came out today (aug 5th 2014) that has people trying an extreme lava world on hardcore. I crashed my game trying the respawn button.

migrated

Confirmed for 14w32a

galaxy_2alex

Please attach the complete output of the "Game Output" which can be found on the last tab of the launcher.
If the launcher closes after game start, please edit your profile and select "Launcher visibility" then, "Keep the launcher open"

Please also copy it after you pressed the "Delete" Button.

migrated

14w32b:

Clicking "Delete world" Button

[07:49:05] [Server thread/INFO]: user drowned
[07:49:05] [Client thread/INFO]: [CHAT] user drowned
[07:49:31] [Server thread/INFO]: Saving and pausing game...
[07:49:31] [Server thread/INFO]: Saving chunks for level 'B30646'/Overworld
[07:49:31] [Server thread/INFO]: Saving chunks for level 'B30646'/Nether
[07:49:31] [Server thread/INFO]: Saving chunks for level 'B30646'/The End

Then there are 2 options:

Clicking "Respawn" Button

[07:42:44] [Server thread/INFO]: user drowned
[07:42:44] [Client thread/INFO]: [CHAT] user drowned
[07:42:50] [Server thread/INFO]: Saving and pausing game...
[07:42:50] [Server thread/INFO]: Saving chunks for level 'B30646'/Overworld
[07:42:50] [Server thread/INFO]: Saving chunks for level 'B30646'/Nether
[07:42:50] [Server thread/INFO]: Saving chunks for level 'B30646'/The End
[07:42:52] [Server thread/INFO]: user lost connection: TextComponent{text='You have died. Game over, man, it's game over!', siblings=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}
[07:42:52] [Server thread/INFO]: user left the game
[07:42:52] [Server thread/INFO]: Stopping singleplayer server as player logged out
[07:42:52] [Server thread/INFO]: Deleting level B30646
[07:42:52] [Server thread/INFO]: Attempt 1...

After this, minecraft is not responding.

Clicking "Title Screen" button: This "works", you get to the title screen, but the world is not deleted:

[07:49:05] [Server thread/INFO]: user drowned
[07:49:05] [Client thread/INFO]: [CHAT] user drowned
[07:49:31] [Server thread/INFO]: Saving and pausing game...
[07:49:31] [Server thread/INFO]: Saving chunks for level 'B30646'/Overworld
[07:49:31] [Server thread/INFO]: Saving chunks for level 'B30646'/Nether
[07:49:31] [Server thread/INFO]: Saving chunks for level 'B30646'/The End
[07:51:15] [Server thread/INFO]: Stopping server
[07:51:15] [Server thread/INFO]: Saving players
[07:51:15] [Server thread/INFO]: Saving worlds
[07:51:15] [Server thread/INFO]: Saving chunks for level 'B30646'/Overworld
[07:51:15] [Server thread/INFO]: Saving chunks for level 'B30646'/Nether
[07:51:15] [Server thread/INFO]: Saving chunks for level 'B30646'/The End

If you press the "Title Screen" button and then re-enter the not-deleted hardcore-world, you are presented with your dead character and the "Delete world" Button (after wich you can again -> back to title screen -> world not deleted - or respawn -> crash).

migrated

I get a rather strange rather long winded message that I'm not seeing on other people's logs:

[18:08:17] [Server thread/ERROR]: Couldn't save chunk; already in use by another instance of Minecraft?
aqs: Failed to check session lock, aborting
at bqf.c(SourceFile:71) ~[14w32d.jar:?]
at aqn.I(SourceFile:2565) ~[14w32d.jar:?]
at bfr.a(SourceFile:107) ~[14w32d.jar:?]
at qq.b(SourceFile:160) [14w32d.jar:?]
at qq.d(SourceFile:231) [14w32d.jar:?]
at qr.c(SourceFile:185) [14w32d.jar:?]
at net.minecraft.server.MinecraftServer.y(SourceFile:598) [14w32d.jar:?]

...and so on. It actually has about 1000 entries, I'm assuming 1 for each chunk in a 16 chunk view radius (1089 chunks). This is after actually attempting to click on the blacked out "delete world" button the second time through. I have to actually click on the red x in the corner and tell windows "crash program rather than wait" before it will close, and no error report is generated (I got this from the log instead). As far as I can see it actually attempts to start the deletion but since I'm still using the chunks to exist in it counts it as 2 attempts to access it and the session lock is triggered.

galaxy_2alex

Is this still a concern in the current Minecraft version 1.8.1 Prerelease 3 / Launcher version 1.5.3 or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Bentroen

I can confirm this for 1.8.1 and 1.8.1-pre2.

migrated

Oddly it seems to work with the beta Launcher 1.6.5 sort of. Clicking Respawn deletes the world but clicking back to title screen locks up the game. Will do more testing later.

marcono1234

Confirmed for

  • 1.8.4 Now there is only the option "Delete world", however click this button only opens the main menu without you leaving the world (and doesn't even delete the world). You can see that when you try to create a new world, in the background there is still the hardcore world.

marcono1234

Confirmed for

  • 1.8.5

  • 1.8.6

Might relate to MC-78113

Bugs

World doesn't get deleted

  1. Die in Hardcore mode

  2. Click "Delete world"

  3. Click "Singleplayer"
    The world is still in the list

World stays open

  1. Die in Hardcore mode

  2. Click "Delete world"

  3. Click "Singleplayer"

  4. Click "Create New World"
    You will see the Hardcore world in the background

Here are ramifications of that:

1. Entering another or the same world causes

[16:36:46] [Client thread/FATAL]: Error executing task
java.util.concurrent.ExecutionException: java.lang.NullPointerException
	at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_25]
	at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_25]
	at g.a(SourceFile:61) [1.8.5.jar:?]
	at ave.av(SourceFile:880) [1.8.5.jar:?]
	at ave.a(SourceFile:325) [1.8.5.jar:?]
	at net.minecraft.client.main.Main.main(SourceFile:124) [1.8.5.jar:?]
Caused by: java.lang.NullPointerException
	at bcy.a(SourceFile:455) ~[1.8.5.jar:?]
	at go.a(SourceFile:54) ~[1.8.5.jar:?]
	at go.a(SourceFile:12) ~[1.8.5.jar:?]
	at fh$1.run(SourceFile:13) ~[1.8.5.jar:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_25]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_25]
	at g.a(SourceFile:60) ~[1.8.5.jar:?]
	... 3 more

2. Deleting the world leads to
either a bunch of error messages in the launcher that it couldn't delete the world or when you delete it directly after pressing "Delete World", it says it deleted it but it will recreate it again as soon as you enter another world and creates some folders like the "region" and the "stats" folder

3. LAN mode
I am not sure if LAN mode even makes sense for Hardcore, because you still have the "Delete World" button then which seems to act differently because again the game doesn't delete the world but also after entering the world again there are the same circumstances like they were when the world was saved last

Leave this report open

I know you tend to close every single report which doesn't get confirmed every single version, but please can you let this report here open until the developers officially state that these bugs are fixed.
It really starts becoming embarrassing that one of the gamemodes is really bugged and the main functions aren't working and that for over 2 years already!

migrated

Confirmed in 1.9 snapshot 15w31c

migrated

Clicking the "Delete World" button fast enough in 15w31c allows the user to completely rejoin the world as if nothing had happened (per MC-83700).

migrated

Confirmed in 1.9 snapshot 15w33c

migrated

Confirmed in 1.9 snapshot 15w35e

migrated

Closing as invalid since players in hardcore are now put in spectator mode on death.

migrated

Turns out players still have the option to delete world. Reopening.

marcono1234

Confirmed for

  • 15w41b It is still not closing the world properly

migrated

Gave the ticket to Marcono1234.

ziggurism

Confirmed for 15w47a

clamlol

Confirmed for 15w49a. Attached another file to more clearly show how the menu screen backgrounds can be affected by this.

migrated

Does it affect 15w49b as well?

ziggurism

Confirm for 15w50a

migrated

u meant 15w50a

ziggurism

Yes, 15w50a, thanks.

ziggurism

Confirmed for 16w02a.

ziggurism

Confirmed for 16w03a.

ziggurism

Confirmed for 16w04a.

ziggurism

Confirmed for 16w05a.

ziggurism

Confirmed 16w05b.

ziggurism

Confirmed 16w07a.

ziggurism

Confirm for 1.9-pre1

ziggurism

Confirm for 1.9-pre2

ziggurism

Confirm for 1.9-pre3

ziggurism

Confirm for 1.9-pre4

ziggurism

Confirm for 1.9

migrated

Confirmed for 1.9.1-pre3.

ziggurism

Confirm for 16w14a

ziggurism

Confirm for 16w15a

migrated

Confirmed for 1.9.3-pre3.

ziggurism

Confirm for 1.9.4

migrated

Confirmed for 1.9.4.

migrated

Confirmed for 16w20a.

migrated

Confirmed for 16w21a.

migrated

Confirmed for 16w21b.

migrated

Confirmed for 1.10-pre1.

migrated

Confirmed for 1.10-pre2.

migrated

Confirmed for 1.10.

migrated

Confirmed for 1.10.1.

migrated

Confirmed for 1.11.2

migrated

Is it possible to move in this state? While on the title screen, it may be possible to get a game crash by getting memory to create chunks without a directory to save to.

migrated

@Th3F4114n0n3 I think it's either tick perfect or cpu clock perfect, which is why this is so rare

migrated

Can confirm for 1.12

ziggurism

Confirm for 17w50a

migrated

Affects 18w21a

migrated

Affects 1.13-pre1

ziggurism

1.13pre2

migrated

Affects 1.13-pre5

migrated

Affects 1.13-pre6

ziggurism

affects 18w31a

migrated

Confirmed for 1.13.1.

migrated

Confirmed for 1.13.2-pre2.

migrated

Still happening in 19w11b

migrated

As of 1.14, when you click delete world, the title background turns white.

migrated

Still an issue in 1.14.1

migrated

This bug still exists in 1.14.2 Pre-release 1

migrated

Confirmed for 1.14.4 pre4. Normal main menu  though

migrated

Have this issue in Java 1.14.4 as well.

violine1101

This issue will be fixed in 1.15. The fix is already available in the 1.15 development snapshots.

boq

Note: This was fixed as part of MC-148865 and MC-96521, which made that button do what it actually did (return to menu) correctly. Label was updated to match that functionality. Worlds will have to be deleted manually from world list.

ZaCloud

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? 😞

ziggurism

in Minecraft 1.6, clicking delete world after dying in a hardcore world actually deleted the world from disk. So to say that "return to the title menu" is always what the actual functionality of that button was, is wrong. In my opinion this should be marked "won't fix" instead of "fixed".

marcono1234

boq

Confirmed

(Unassigned)

GUI, death, delete, hardcore, screen, world

Minecraft 13w36b, Minecraft 13w38a, Minecraft 13w38b, Minecraft 13w38c, Minecraft 1.7.1, ..., 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

19w35a

Retrieved