Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Cannot Delete World After Loading and Exiting #16

Open
SmilerRyan opened this issue Feb 13, 2025 · 4 comments
Open

Bug: Cannot Delete World After Loading and Exiting #16

SmilerRyan opened this issue Feb 13, 2025 · 4 comments

Comments

@SmilerRyan
Copy link

After loading a world in Minecraft, then selecting "Save & Quit to Title," you are unable to delete the world. The issue seems to be because the database is still in use even after exiting the world.

Steps to Reproduce:
Load any world in Minecraft.
Once in the world, press "Save & Quit to Title."
Try to delete the world from the world selection menu.
Notice that the world cannot be deleted, and the folder with the files still exist.

Expected Behavior: The world (and database) should be closed as soon as you exit the world.

Actual Behavior: The database remains in use even after quitting the world, preventing deletion of the world until the game is fully closed.

Suggested Fix: Make sure the database is properly closed when a world is exited, so it world can be deleted right after exiting.

Video Demonstration:

8mb.video-52Q-hXrTZ6XB.mp4
@zly2006
Copy link
Owner

zly2006 commented Feb 13, 2025

Please help test it, download it at https://github.com/zly2006/x-backup/actions/runs/13297981870

@SmilerRyan
Copy link
Author

Just re-tested on 1.21.1 with this version, and it still fails to delete the world folder (they remain after it says it failed).

Image

@zly2006 zly2006 reopened this Feb 13, 2025
@zly2006 zly2006 reopened this Feb 13, 2025
@zly2006
Copy link
Owner

zly2006 commented Feb 13, 2025

@SmilerRyan
Copy link
Author

Just tried it and it still does the same thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants