mojira.dev
MC-133859

Using an alias for the backups folder can crash Minecraft

In anticipation of starting up a new survival world for 1.13, I decided to try out the new Backup World feature, which looked very promising. My plan was to create an alias for the backups folder, then move the original into my Dropbox folder, leaving the alias within the minecraft folder. The goal here is to have Dropbox automatically back up my Minecraft backups, for an extra level of security as well as flexibility. I have done this with other apps before, such as iTunes, but Minecraft will not cooperate:

  • If I try to create a backup with an alias folder named "backups", the game crashes. Attached is a crash report generated after one such attempt.

  • If I try to create a backup with an alias folder named anything else, the game creates a new folder named "backups" and stores the backup there, thus effectively nullifying my attempts to have Dropbox automatically back up my worlds.

(1.13-pre10) [^crash-2018-07-17_16.45.42-client.txt]

Description: mouseClicked event handler

java.lang.RuntimeException: java.nio.file.FileAlreadyExistsException: ###/minecraft/backups
	at cbr.h(SourceFile:51)
	at cmm.a(SourceFile:150)
	at cmm$3.a(SourceFile:73)
	at cgh.mouseClicked(SourceFile:103)
	at chd.mouseClicked(SourceFile:46)
	at cfi.b(SourceFile:83)
	at cjq.a(SourceFile:430)
	at cfi.a(SourceFile:83)
	at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:36)
	at org.lwjgl.system.JNI.invokeV(Native Method)
	at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3029)
	at cfq.a(SourceFile:308)
	at cfg.c(SourceFile:872)
	at cfg.a(SourceFile:392)
	at net.minecraft.client.main.Main.main(SourceFile:144)
Caused by: java.nio.file.FileAlreadyExistsException: ###/minecraft/backups
	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:88)
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
	at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384)
	at java.nio.file.Files.createDirectory(Files.java:674)
	at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781)
	at java.nio.file.Files.createDirectories(Files.java:727)
	at cbr.h(SourceFile:49)
	... 14 more

Linked issues

Comments 7

@@unknown, the crash report you attached contains your OS username in the folder paths (I removed it from the stacktrace included in the description). Did you intend that? If not please remove the crash report.

No, that was an oversight on my part. Thank you very much for your help!

What OS are you on? and if its linux, hardlink or softlink was created? did both not work?

Hi Grum! I'm on a 2011 MacBook Pro, using macOS High Sierra (Version 10.13.6). I simply right clicked on the backups folder and selected "Make Alias".

I think I could circumvent this issue by just placing my entire game directory (the Library/Application Support/minecraft folder, as I understand) straight into Dropbox, but now I'm not so sure that that wouldn't cause problems either.

I have figured out how to use secondary game directories, which can be placed in DropBox with no apparent problems. This will be my workaround until a fix is made available.

 

I can confirm this issue on a mac - 1.13 throws up the error. However, 1.12.2 works and I have my minecraftsaves linked to dropbox.

@Helen Right, but that's because I was testing the backups folder/feature that was added to Minecraft in 1.13, not the saves folder. Is there an issue with the saves folder in 1.13, too?

MacchuPicchu96

(Unassigned)

Unconfirmed

backups, crash

Minecraft 1.13-pre10, Minecraft 1.13, Minecraft 18w30a, Minecraft 18w30b

Retrieved