Bug 577156

Summary: JavaFX on macOS is showing a "Graphics Device initialization failed for : es2, sw"
Product: [Eclipse Project] Platform Reporter: Eman Afi <emansarahafi>
Component: IDEAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: 4.22   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:
Attachments:
Description Flags
A screenshot of my issue none

Description Eman Afi CLA 2021-11-09 15:33:01 EST
Created attachment 287474 [details]
A screenshot of my issue

I've just started coding/testing non-modular JavaFX projects using the IDE tools on macOS on Eclipse (it's mandatory to use Eclipse that way for a class) and I'm facing an error to start a simple app. I keep getting the following:



Graphics Device initialization failed for : es2, sw

Error initializing QuantumRenderer: no suitable pipeline found

java.lang.RuntimeException: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found

at javafx.graphics/com.sun.javafx.tk.quantum.QuantumRenderer.getInstance(QuantumRenderer.java:283)

at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.init(QuantumToolkit.java:254)

at javafx.graphics/com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:264)

at javafx.graphics/com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:291)

at javafx.graphics/com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:163)

at javafx.graphics/com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:659)

at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:410)

at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:364)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.base/java.lang.reflect.Method.invoke(Method.java:568)

at java.base/sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:1071)

Caused by: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found

at javafx.graphics/com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.init(QuantumRenderer.java:95)

at javafx.graphics/com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:125)

at java.base/java.lang.Thread.run(Thread.java:833)

Exception in thread "main" java.lang.reflect.InvocationTargetException

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.base/java.lang.reflect.Method.invoke(Method.java:568)

at java.base/sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:1071)

Caused by: java.lang.RuntimeException: No toolkit found

at javafx.graphics/com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:276)

at javafx.graphics/com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:291)

at javafx.graphics/com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:163)

at javafx.graphics/com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:659)

at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:410)

at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:364)

... 5 more

I already used a suitable JDK, included the proper JARs, and even added the proper VM arguments. But nothing is working, I'd appreciate any help if possible!

I included pictures as well of my issue and the solutions I attempted.