1.18.32, 1.9.0, 1.16.20, 1.16.40 Hotfix, 1.18.2 Hotfix, 1.19.2 Hotfix, 1.19.31 Hotfix, 1.19.40, 1.19.50, 1.19.51, 1.19.60, 1.19.71, 1.19.73, 1.19.80, 1.19.81 Hotfix, 1.19.83 Hotfix, 1.20.12 Hotfix, 126.96.36.199 Preview, 188.8.131.52 Preview, 1.20.15 Hotfix, 1.20.30
When exporting a world or structure to a folder backed (synced) by OneDrive, the export fails silently and leaves an empty .MCWORLD or .MCSTRUCTURE file. Users can be unaware that the export failed, and this can result in the total loss of worlds if the backup was followed by deleting the world in-game to recover storage space.
Steps to Reproduce:
(Requires a Windows PC with access to OneDrive cloud storage)
- Access any world's Game settings. Scroll to the bottom and click the Export World button.
- In the Save As dialog, select a folder anywhere under your personal OneDrive folder. (The default path is %USERPROFILE%\OneDrive, but if you're using OneDrive to back up your Documents folder, you can select any folder under Documents in File Explorer.)
- Exit Minecraft.
- Examine the exported file in File Explorer.
- In Minecraft, you get toast messages at the start and end of the export process.
- In File Explorer, the exported file size is >0.
- In Minecraft, no toast messages appear. The game just waits for you to do something else.
- In File Explorer, the exported file size is 0.
After exporting, Minecraft reports export successful, but file size for exported world is 0kb. This was happening on 1.8 as well. Just updated to see if it would fix it but it has not. Did not realize last three exports failed until now, tried multiple times with current world and copy of world and tried exporting to Desktop AND backup folder just in case. World size is currently 244.5MB, but this has been happening since world was around 195 MB.