mojira.dev
MC-122885

Attempting to backup a world with a path longer than 260 results in a crash

If I try to backup a world which has a path longer than 260 it causes the game to crash. Mojang, please fix this.

Comments 4

Crash Report:

---- Minecraft Crash Report ----
// My bad.

Time: 05/12/17 07:42
Description: mouseClicked event handler

java.lang.RuntimeException: java.nio.file.FileSystemException: C:\Users\david_000\AppData\Roaming\.minecraft\backups\2017-12-05_07-42-14_New World---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------.zip: The filename, directory name or volume label syntax is incorrect.

 at bjb.h(SourceFile:75)
 at btd.b(SourceFile:174)
 at btd$$Lambda$612/1984688653.confirmResult(Unknown Source)
 at bpl$1.a(SourceFile:45)
 at bnn.mouseClicked(SourceFile:102)
 at bok.mouseClicked(SourceFile:44)
 at bmo.b(SourceFile:64)
 at bmo$$Lambda$146/246903361.run(Unknown Source)
 at bqg.a(SourceFile:428)
 at bmo.a(SourceFile:64)
 at bmo$$Lambda$104/909481763.invoke(Unknown Source)
 at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:23)
 at org.lwjgl.system.JNI.invokeV(Native Method)
 at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:2599)
 at bmw.a(SourceFile:294)
 at bmm.b(SourceFile:846)
 at bmm.a(SourceFile:381)
 at net.minecraft.client.main.Main.main(SourceFile:134)
Caused by: java.nio.file.FileSystemException: C:\Users\david_000\AppData\Roaming\.minecraft\backups\2017-12-05_07-42-14_New World---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------.zip: The filename, directory name or volume label syntax is incorrect.

 at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)
 at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
 at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
 at sun.nio.fs.WindowsFileSystemProvider.checkReadAccess(WindowsFileSystemProvider.java:338)
 at sun.nio.fs.WindowsFileSystemProvider.checkAccess(WindowsFileSystemProvider.java:362)
 at com.sun.nio.zipfs.ZipFileSystem.<init>(ZipFileSystem.java:124)
 at com.sun.nio.zipfs.ZipFileSystemProvider.newFileSystem(ZipFileSystemProvider.java:117)
 at java.nio.file.FileSystems.newFileSystem(FileSystems.java:326)
 at java.nio.file.FileSystems.newFileSystem(FileSystems.java:276)
 at bjb.h(SourceFile:61)
 ... 17 more


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Client thread
Stacktrace:
 at bjb.h(SourceFile:75)
 at btd.b(SourceFile:174)
 at btd$$Lambda$612/1984688653.confirmResult(Unknown Source)
 at bpl$1.a(SourceFile:45)
 at bnn.mouseClicked(SourceFile:102)
 at bok.mouseClicked(SourceFile:44)
 at bmo.b(SourceFile:64)
 at bmo$$Lambda$146/246903361.run(Unknown Source)

-- Affected screen --
Details:
 Screen name: ~~NULL~~
Stacktrace:
 at bqg.a(SourceFile:428)
 at bmo.a(SourceFile:64)
 at bmo$$Lambda$104/909481763.invoke(Unknown Source)
 at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:23)
 at org.lwjgl.system.JNI.invokeV(Native Method)
 at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:2599)
 at bmw.a(SourceFile:294)
 at bmm.b(SourceFile:846)
 at bmm.a(SourceFile:381)
 at net.minecraft.client.main.Main.main(SourceFile:134)

-- System Details --
Details:
 Minecraft Version: 17w48a
 Operating System: Windows 8.1 (amd64) version 6.3
 Java Version: 1.8.0_25, Oracle Corporation
 Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
 Memory: 216727152 bytes (206 MB) / 369098752 bytes (352 MB) up to 1073741824 bytes (1024 MB)
 JVM Flags: 8 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=16M
 IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
 Launched Version: 17w48a
 LWJGL: 3.1.2 build 29
 OpenGL: AMD Radeon HD 7600G GL version 4.2.12422 Compatibility Profile Context 13.152.1.3000, ATI Technologies Inc.
 GL Caps: Using GL 1.3 multitexturing.
Using GL 1.3 texture combiners.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Shaders are available because OpenGL 2.1 is supported.
VBOs are available because OpenGL 1.5 is supported.

 Using VBOs: Yes
 Is Modded: Probably not. Jar signature remains and client brand is untouched.
 Type: Client (map_client.txt)
 Resource Packs: 
 Current Language: English (US) NullPointerException: null
 Profiler Position: N/A (disabled)
 CPU: 4x AMD A8-4555M APU with Radeon(tm) HD Graphics

I don't know how you managed to come up with such a long file name, but the length of just the file is 277 chars, not including the path. Under windows the total path length can't be longer than 260 chars.
But I agree, the system error should be handled in a better way instead of just crashing.

I guess so, Michael Wobst.

Confirmed for 17w50a.

Adele Owen

(Unassigned)

Confirmed

crash

Minecraft 17w48a, Minecraft 17w50a

Minecraft 19w12a

Retrieved