-
Bug
-
Resolution: Fixed
-
Minecraft 17w45a, Minecraft 17w45b, Minecraft 18w06a, Minecraft 18w08b, Minecraft 18w10a, Minecraft 18w10b, Minecraft 18w15a, Minecraft 18w20c, Minecraft 18w21a, Minecraft 18w22b, Minecraft 18w22c
-
Confirmed
The bug
Taking a screenshot fails when the folder of your game profile contains non-ASCII characters.
[22:40:50] [Client thread/WARN]: Couldn't save screenshot
java.io.IOException: Could not write image to the PNG file "###\screenshots\2018-02-11_22.40.50.png": Corrupt JPEG
at csp.a(SourceFile:306) ~[18w06a.jar:?]
at bxc.a(SourceFile:45) ~[18w06a.jar:?]
at bxc.a(SourceFile:30) ~[18w06a.jar:?]
at bwu.a(SourceFile:256) ~[18w06a.jar:?]
at org.lwjgl.glfw.GLFWKeyCallbackI.callback(GLFWKeyCallbackI.java:23) [lwjgl-glfw-3.1.2.jar:?]
at org.lwjgl.system.JNI.invokeV(Native Method) ~[lwjgl-3.1.2.jar:?]
at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:2520) [lwjgl-glfw-3.1.2.jar:?]
at bwx.b(SourceFile:803) [18w06a.jar:?]
at bwx.a(SourceFile:383) [18w06a.jar:?]
at net.minecraft.client.main.Main.main(SourceFile:141) [18w06a.jar:?]
Additionally world icons cannot be saved either.
[22:45:42] [Client thread/WARN]: Couldn't save auto screenshot
java.io.IOException: Could not write image to the PNG file "###\saves\New World\icon.png": Corrupt JPEG
at csp.a(SourceFile:306) ~[18w06a.jar:?]
at cjr.n(SourceFile:1039) [18w06a.jar:?]
at cjr.a(SourceFile:949) [18w06a.jar:?]
at bwx.b(SourceFile:823) [18w06a.jar:?]
at bwx.a(SourceFile:383) [18w06a.jar:?]
at net.minecraft.client.main.Main.main(SourceFile:141) [18w06a.jar:?]
Besides the profile name also having non-ascii chars in the world name triggers that issue:
java.io.IOException: Could not write image to the PNG file "D:\mc\mn\bugs\.minecraft\saves\����BUG\icon.png": Corrupt JPEG
at deq.a(SourceFile:306) ~[18w20b.jar:?]
at cvd.o(SourceFile:870) [18w20b.jar:?]
at cvd.a(SourceFile:783) [18w20b.jar:?]
at cht.c(SourceFile:820) [18w20b.jar:?]
at cht.a(SourceFile:381) [18w20b.jar:?]
at net.minecraft.client.main.Main.main(SourceFile:144) [18w20b.jar:?]
How to reproduce
- Create a folder whose name contains non-ASCII characters, for example the following
äö²³§ß
- Launch Minecraft with this folder as game directory
- Try to take a screenshot
Code analysis
Code analysis by pokechu22 can be found in this comment.
- is duplicated by
-
MC-121830 The world icon in the worlds selection menu is never created: Corrupt JPEG
- Resolved
-
MC-122415 Can't Save Screenshots
- Resolved
-
MC-125041 Can't make screenshot in minecraft with F2 when gamefolder path has polish characters
- Resolved
-
MC-126816 Can't take a screenshot.
- Resolved
-
MC-128515 Screenshots are not saved
- Resolved
-
MC-129789 A erro!
- Resolved
-
MC-129790 World icon cannot be saved
- Resolved
-
MC-130008 World icons cannot be generated
- Resolved
-
MC-130473 Cannot save a screenshot of the title screen in the latest snapshot
- Resolved
- relates to
-
MC-127611 The archived icons are created in the wrong position
- Resolved
-
MC-133139 The image write callback is never freed, leaking small amounts of memory for each screenshot
- Resolved
- links to