mojira.dev
MC-123021

Crash on open if "Saves" is a link

The bug

Minecraft no longer starts if "saves" folder is a link as it tries to create it and an exception occurs, making the game crash.

Note: I use this "trick" to share games between Windows and Linux platform.

Crash report

17w48a\: [^crash-2017-12-05_10.40.04-client.txt]

Description: Initializing game

java.lang.RuntimeException: java.nio.file.FileAlreadyExistsException: /home/alain/.minecraft/saves
	at bix.<init>(SourceFile:36)
	at biu.<init>(SourceFile:38)
	at bmm.an(SourceFile:450)
	at bmm.a(SourceFile:366)
	at net.minecraft.client.main.Main.main(SourceFile:134)
Caused by: java.nio.file.FileAlreadyExistsException: /home/alain/.minecraft/saves
	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 bix.<init>(SourceFile:33)
	... 4 more

Linked issues

MC-122667 File already exists exception (saves folder) symlink issue Resolved MC-126529 Game not Load when "Save" is a Symlink Resolved MC-128191 Game crash when using symbolic link for "saves" directory with ownCloud Resolved MC-129317 Game crashes on startup if the "saves" folder is a softlink Resolved MC-129844 Snapshots for 1.13 crash if the saves directory is a symlink Resolved

Attachments

Comments 22

We do not have enough information to find the cause of this issue.

Please attach the crash report found in [minecraft/crash-reports/crash-<DATE>-client.txt|http://hopper.minecraft.net/help/guides/finding-minecraft-data-folder] here.
If you cannot find a crash report, please attach the full launcher log found in [minecraft/launcher_log.txt|http://hopper.minecraft.net/help/guides/minecraft-logs/].

This issue has been temporarily closed as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.

Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki

Files joined, sorry for being late

Regards

Have the same issue — in my case, 18w08a, on macOS (High Sierra, 10.13.3), with Saves being a symlink into my Dropbox. Hasn't been a problem in previous versions, including my usual 1.12.2 installation, existing in parallel.

After some little tests, herre is what I have :
to reproduce the bug :
remove .minecraft directory.
launch minecraft to create fresh one. then i a shell :

cd $HOME/.minecraft # go to HOME in Minecraft dir
mv saves $HOME # move "saves" to another place. Here, just in Home
ln -s $HOME/saves . # create a symlink to saves in current dir

then launch minecraft.

The game doesn't crash until 17w46a and crashes since 17w47b (I just tried all beta releases after 1.12 which also works).

Strangely I tried with a symlink under Windows (7 I didn't try under 10) last week and the game didn't crash.

Regards.

12 more comments

I can confirm for Windows, ok in 1.12.2, crash in 1.13. ok in 18w31a. I use it for Dropbox too.

I can confirm that 18w31a is working with a mac and dropbox. Thanks!

Working in Windows 10 on 18w31 with Dropbox/Symbolic Link.  Not working on 1.13

Not working on Windows 10 and Launcher V 1.13

@unknown, this issue was fixed in snapshot 18w31a, therefore is 1.13 in the affected versions list.

Alain Cabiran

(Unassigned)

Community Consensus

Minecraft 17w49b, Minecraft 18w05a, Minecraft 18w09a, Minecraft 18w10a, Minecraft 18w19b, Minecraft 18w20c, Minecraft 1.13

Minecraft 18w31a

Retrieved