Got this exception when exiting app with Platform.exit(); seems like a bug as it clearly is the FX app thread. I am calling:
stage.setVisible(false);
Platform.exit();
from a button action.
Glass detected outstanding Java exception at -[GlassWindow dealloc]:/HUDSON/workspace/presidio-graphics-scrum/label/macosx-universal-14/glass/glass-mat-lib-macosx/src/com/sun/mat/ui/GlassWindow.m:359
Exception in thread "JavaFX Application Thread" java.lang.IllegalStateException: Not on FX application thread; currentThread = JavaFX Application Thread
at com.sun.javafx.tk.Toolkit.checkFxUserThread(Toolkit.java:192)
at com.sun.javafx.tk.quantum.QuantumToolkit.checkFxUserThread(QuantumToolkit.java:311)
at javafx.scene.Scene$MouseHandler.process(Scene.java:1945)
at javafx.scene.Scene$MouseHandler.process(Scene.java:1934)
at javafx.scene.Scene$MouseHandler.access$1000(Scene.java:1906)
at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1007)
at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:1553)
at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:133)
at com.sun.glass.ui.View.handleMouseEvent(View.java:257)
at com.sun.glass.ui.View.notifyMouse(View.java:514)
stage.setVisible(false);
Platform.exit();
from a button action.
Glass detected outstanding Java exception at -[GlassWindow dealloc]:/HUDSON/workspace/presidio-graphics-scrum/label/macosx-universal-14/glass/glass-mat-lib-macosx/src/com/sun/mat/ui/GlassWindow.m:359
Exception in thread "JavaFX Application Thread" java.lang.IllegalStateException: Not on FX application thread; currentThread = JavaFX Application Thread
at com.sun.javafx.tk.Toolkit.checkFxUserThread(Toolkit.java:192)
at com.sun.javafx.tk.quantum.QuantumToolkit.checkFxUserThread(QuantumToolkit.java:311)
at javafx.scene.Scene$MouseHandler.process(Scene.java:1945)
at javafx.scene.Scene$MouseHandler.process(Scene.java:1934)
at javafx.scene.Scene$MouseHandler.access$1000(Scene.java:1906)
at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1007)
at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:1553)
at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:133)
at com.sun.glass.ui.View.handleMouseEvent(View.java:257)
at com.sun.glass.ui.View.notifyMouse(View.java:514)
- duplicates
-
JDK-8113212 JFXControls : IllegalStateException when exited via the 'X' button.
-
- Closed
-
-
JDK-8113250 IllegalStateException when calling Platform.exit()
-
- Closed
-
- relates to
-
JDK-8113212 JFXControls : IllegalStateException when exited via the 'X' button.
-
- Closed
-