Launcher crashing with JFX already initialized
Recently the launcher has begun crashing most of the times I try to start it.
When I start it from the command line, I get the following output
Bootstrap (v5) Current time is Oct 24, 2014 8:46:20 PM System.getProperty('os.name') == 'Linux' System.getProperty('os.version') == '3.16.6-2-ck' System.getProperty('os.arch') == 'amd64' System.getProperty('java.version') == '1.8.0_25' System.getProperty('java.vendor') == 'Oracle Corporation' System.getProperty('sun.arch.data.model') == '64' Looking for update Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma Got reply in: 882ms Reversing LZMA on /home/cedeel/.minecraft/launcher.pack.lzma to /home/cedeel/.minecraft/launcher.pack No update found. Unpacking /home/cedeel/.minecraft/launcher.pack to /home/cedeel/.minecraft/launcher.jar Cleaning up /home/cedeel/.minecraft/launcher.pack Starting launcher. [20:46:25 INFO]: Minecraft Launcher 1.5.3 (through bootstrap 5) started on linux... [20:46:25 INFO]: Current time is Oct 24, 2014 8:46:25 PM [20:46:25 INFO]: System.getProperty('os.name') == 'Linux' [20:46:25 INFO]: System.getProperty('os.version') == '3.16.6-2-ck' [20:46:25 INFO]: System.getProperty('os.arch') == 'amd64' [20:46:25 INFO]: System.getProperty('java.version') == '1.8.0_25' [20:46:25 INFO]: System.getProperty('java.vendor') == 'Oracle Corporation' [20:46:25 INFO]: System.getProperty('sun.arch.data.model') == '64' [20:46:25 INFO]: JFX is already initialized The program 'java' received an X Window System error. This probably reflects a bug in the program. The error was 'RenderBadPicture (invalid Picture parameter)'. (Details: serial 598 error_code 143 request_code 140 minor_code 7) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.)
Environment
Linux x86_64, Java 1.8.0_25-b17
Created Issue:
Launcher crashing with JFX already initialized
Recently the launcher has begun crashing most of the times I try to start it.
When I start it from the command line, I get the following outputBootstrap (v5) Current time is Oct 24, 2014 8:46:20 PM System.getProperty('os.name') == 'Linux' System.getProperty('os.version') == '3.16.6-2-ck' System.getProperty('os.arch') == 'amd64' System.getProperty('java.version') == '1.8.0_25' System.getProperty('java.vendor') == 'Oracle Corporation' System.getProperty('sun.arch.data.model') == '64' Looking for update Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma Got reply in: 882ms Reversing LZMA on /home/cedeel/.minecraft/launcher.pack.lzma to /home/cedeel/.minecraft/launcher.pack No update found. Unpacking /home/cedeel/.minecraft/launcher.pack to /home/cedeel/.minecraft/launcher.jar Cleaning up /home/cedeel/.minecraft/launcher.pack Starting launcher. [20:46:25 INFO]: Minecraft Launcher 1.5.3 (through bootstrap 5) started on linux... [20:46:25 INFO]: Current time is Oct 24, 2014 8:46:25 PM [20:46:25 INFO]: System.getProperty('os.name') == 'Linux' [20:46:25 INFO]: System.getProperty('os.version') == '3.16.6-2-ck' [20:46:25 INFO]: System.getProperty('os.arch') == 'amd64' [20:46:25 INFO]: System.getProperty('java.version') == '1.8.0_25' [20:46:25 INFO]: System.getProperty('java.vendor') == 'Oracle Corporation' [20:46:25 INFO]: System.getProperty('sun.arch.data.model') == '64' [20:46:25 INFO]: JFX is already initialized The program 'java' received an X Window System error. This probably reflects a bug in the program. The error was 'RenderBadPicture (invalid Picture parameter)'. (Details: serial 598 error_code 143 request_code 140 minor_code 7) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.)Environment
Linux x86_64, Java 1.8.0_25-b17
Adding the line
is duplicated by
Minecraft 1.8.8 comes with a full copy of Oracle Java built in. Also, I have never run/installed OpenJDK. Every Java based application of use on earth pretty much says "This doesn't work with OpenJDK". Aaaalso, the JVM installed on my mac is the just the one Apple installs. Everything is vanilla.
Sooooo.... Can we get some kind of actual response to this problem?
relates to

I had the same crash.
Launcher Version: 1.6.11
Game Version: 1.8.1
Mods: 1.8.1-OptiFine HD U B5
System.getProperty('os.name') == 'Linux'
System.getProperty('os.version') == '3.7.10-antix.5-486-smp'
System.getProperty('os.arch') == 'i386'
System.getProperty('java.version') == '1.8.0_31'
System.getProperty('java.vendor') == 'Oracle Corporation'
System.getProperty('sun.arch.data.model') == '32'
Bug in openjdk: https://bugs.openjdk.java.net/browse/JDK-8056151
Perhaps there's a bug in OpenJDK, but I got this error while using Oracle's java.
Funny how you didn't notice that right there in the bug report and closed it.
Anyway, this is neither a Minecraft nor a Minecraft Launcher bug, that's happening some layers below since Minecraft (Launcher) isn't talking to X Window directly.
For reference if anyone else encounters this error, it is fixable by adding -Dswing.systemlaf=javax.swing.plaf.metal.MetalLookAndFeel to the commandline between java and -jar
Example:
java -Dswing.systemlaf=javax.swing.plaf.metal.MetalLookAndFeel -jar Minecraft.jar
@kumasasa,
I get this same problem on Mac. Vanilla install of Java (installed by apple). Vanilla install of Minecraft. I can open Minecraft once, and everything works fine. If I close it, and re-open it fails.
I can only get the launcher to work again by deleting all my user specific directories:
rm -rf ~/Library/Caches/com.mojang.minecraftlauncher
rm -rf ~/Library/Caches/com.mojang.minecraftlauncherupdater/
rm -rf ~/Library/Application\ Support/minecraft/
When I run /Applications/Minecraft.app/Contents/MacOS/launcher from the command line, it outputs this on first launch (after deleting above directories):
2015-09-26 22:44:45.268 launcher[23195:2986583] Claimed it found a path: /Applications/Minecraft.app/Contents/MacOS/launcher () 4096
When I try to re-open, it prints this on the command line:
2015-09-26 22:44:45.268 launcher[23195:2986583] Claimed it found a path: /Applications/Minecraft.app/Contents/MacOS/launcher () 4096
[22:44:48 INFO]: Minecraft Launcher 1.6.44 (through bootstrap 100) started on osx...
[22:44:48 INFO]: Current time is Sep 26, 2015 10:44:48 PM
[22:44:48 INFO]: System.getProperty('os.name') == 'Mac OS X'
[22:44:48 INFO]: System.getProperty('os.version') == '10.10.5'
[22:44:48 INFO]: System.getProperty('os.arch') == 'x86_64'
[22:44:48 INFO]: System.getProperty('java.version') == '1.8.0_60'
[22:44:48 INFO]: System.getProperty('java.vendor') == 'Oracle Corporation'
[22:44:48 INFO]: System.getProperty('sun.arch.data.model') == '64'
[22:44:48 INFO]: proxy == DIRECT
[22:44:48 INFO]: JFX is already initialized
So, although I am running a completely stock Mac with Apple's default java, on Mac, Java applications use their own bundled JRE. For Minecraft, its installed here: /Applications/Minecraft.app/Contents/runtime/jre-x64/1.8.0_60
I have confirmed that when Minecraft is running, it is using the version bundled with Minecraft. I did this by renaming every link to "java" to "jave.bak" on the system. I found them all with `find / | grep '\/java$'. I left the Minecraft java file (/Applications/Minecraft.app/Contents/runtime/jre-x64/1.8.0_60/bin/java). Minecraft opens fine (as long as my personal directories are deleted). If I delete the above files, rename /Applications/Minecraft.app/Contents/runtime/jre-x64/1.8.0_60/bin/java to /Applications/Minecraft.app/Contents/runtime/jre-x64/1.8.0_60/bin/java.bak, and Minecraft doesn't work even with the 3 above directories deleted. If I restore the file /Applications/Minecraft.app/Contents/runtime/jre-x64/1.8.0_60/bin/java.bak back to /Applications/Minecraft.app/Contents/runtime/jre-x64/1.8.0_60/bin/java, and make sure 3 directories are deleted, Minecraft opens fine.
I also confirmed it double with lsof from the command line which exact files were getting opened by the Minecraft process. It confirms its opening all the Java libs in /Applications/Minecraft.app/Contents/runtime/jre-x64/1.8.0_60
So, getting back to your comment that this is a Java issue. You are probably correct, but the problem is that on Mac that Java resource is the one Minecraft bundled with the application.
Can we re-open this under the context that the problem is 100% contained in resources delivered by the Minecraft app?
Thank you!
@Anthony Hildoer Having
in the console output does not indicate a crash.
Do you get some kind of X windows message like the OP ?
Thanks for the quick response.
The Launcher goes straight to the screen shot attached (stock mac window frame, with "Minecraft Launcher 1.6.44" title, with all white content). Never an error of any kind.
The thing I think MIGHT be the issue, as my wife has identical hardware and setup to me (Java versions, etc), is that there is some kind of Java setting somewhere that persists beyond the Minecraft folders. I have done a system wide `find` for Minecraft, and Java and can't find one. But this is all I can think of as my wife's setup is identical on everything (hardware, OSX version, Java setup, Minecraft version, etc.) and works flawlessly. In fact, short of reinstalling the OS, I cleared and reinstalled Minecraft and Oracle Java (matches version embedded in Minecraft.app resources directory) on both computers, and hers continues to work and mine does not.
Screen shot: http://screencast.com/t/rGXqhDsgMLRs
Anthony Hildoer, that seems to be
MCL-3989Yup, thats the same thing. Well, at least there is some traction on it.
Thank you!
Sorry to bump this ancient issue, but Chris, we have tried and failed to get in contact with you regarding a license change on the SpongePowered SpongeDocs.
If you could get back to us we would really appreciate it.
https://github.com/SpongePowered/SpongeDocs/pull/573