mojira.dev
MC-526

Worlds will not delete

The bug

When trying to delete a world, the world would still show up in the single player world selection screen. I was expecting the world to delete, but instead it just stayed in the world selection screen. To trigger this, create a world, (I just did creative, I don't know about survival) and attempt to delete it.

Code analysis / reason

See the following comments

Solution ideas

See the following comments

Linked issues

MC-1041 You can't delete worlds in Minecraft 1.4.2! Resolved MC-2406 Not being able to delete world properly after defeating The Ender Dragon Resolved MC-33400 Unable to Delete Worlds Named "Dinnerbone" Resolved MC-47384 Flatland Bug Resolved MC-54540 14w18b customized world terrain errors Resolved

Attachments

Comments 41

Selbram (Tory Clement)

Could not duplicate in 1.4.2 client single player.

Mortvert (Mort Imert)

I had the same thing happen.
Restarting minecraft and trying to delete the world did work.

We need some more information on how to reproduce this error. I'm unable to reproduce it myself 😞

This happens if you have the world open in a different Minecraft instance, with no visible error message.

How are you deleting the world (are you deleting it in-game or through file deletion)? If you are deleting the file itself and not through the Delete button in-game, the world will still be listed until you reload the world list. This is possibly because the list is not live; it fetches the files when it is loaded and then is static.

31 more comments

I can not test this on my current setup as easily any more, as I now have quite a bit faster SSD than few years ago, so any saving will happen in a blink (thus preventing this bug to appear). Also, the user interface was slooow this time, giving more time for the saving to finish (as if it even needed it); no idea if that was due to my setup or changes in the game.

That is, whether the bug is fixed or not, I would not be able to get this bug to happen at current setup. I would either need to change things so that saves go to a slower device (HDD), or spend lots of time to decompile etc. and tweak the saving process to be artificially slower.  Not going to waste my time with the latter any more, so have to try by changing the save directory to a HDD... some day Soon(tm).

confirmed 19w13b. Created a world, joined it, left, clicked delete after clicking it, and it would freeze for a moment than still hang around. I believe it has something to do with the game hanging onto some files not allowing them to be deleted since they are still being used. You can not delete the world from the saves folder either unless you close the game.

Assuming they haven't changed the deletion process since... years... the two ways/reasons why things fail have been figured out (buried in the comments of this and the related issue). Also some ways to work around them (at code level) have been provided (but not a nice proper fix, as that would have been too big a change to be shown here). This bug is mostly waiting for some developer to fix it (at least a workaround, but even a proper solution is not really that difficult), or users to just confirm they still find the symptoms.

I'm unable to reproduce this on 1.14-pre5 on a slow harddrive, can someone else still reproduce this? If so, I will make you the reporter of this ticket so you can keep it updated.

This report is currently missing crucial information. Please take a look at the other comments to find out what we are looking for.
If you added the required information and a moderator sees your comment, they will reopen and update the report. However, if you think your update to this report has been overlooked or you want to make sure that this report is reopened, you can contact the Mojira staff on Discord or Reddit.
-- I am a bot. This action was performed automatically! Please report any issues on Discord or Reddit

Kelton Chesshire

(Unassigned)

Confirmed

(Unassigned)

client, delete, server, world

Minecraft 1.4.1, Minecraft 1.4.6, Minecraft 1.4.7, Snapshot 13w02b, Snapshot 13w09a, ..., Minecraft 1.8.8, Minecraft 1.10.2, Minecraft 1.11.2, Minecraft 18w06a, Minecraft 18w21b

Retrieved