Skip to Main Content

Java SE (Java Platform, Standard Edition)

JavaFX could not create platform window

User_HLZR7Sep 9 2020

Hi,

we have a JAvaFX application running. Sometimes the application crashes with the following exception.

It's OpenJDK 11 with OpenFX14 running on Windows 10 machines.
Any idea what can cause this problem

java.lang.RuntimeException: could not create platform window

at javafx.graphics/com.sun.glass.ui.Window.<init>(Window.java:294)

at javafx.graphics/com.sun.glass.ui.win.WinWindow.<init>(WinWindow.java:54)

at javafx.graphics/com.sun.glass.ui.win.WinApplication.createWindow(WinApplication.java:219)

at javafx.graphics/com.sun.javafx.tk.quantum.WindowStage.initPlatformWindow(WindowStage.java:201)

at javafx.graphics/com.sun.javafx.tk.quantum.WindowStage.init(WindowStage.java:143)

at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.createTKPopupStage(QuantumToolkit.java:678)

at javafx.graphics/javafx.stage.PopupWindow.doVisibleChanging(PopupWindow.java:514)

at javafx.graphics/javafx.stage.PopupWindow$1.doVisibleChanging(PopupWindow.java:107)

at javafx.graphics/com.sun.javafx.stage.PopupWindowHelper.visibleChangingImpl(PopupWindowHelper.java:57)

at javafx.graphics/com.sun.javafx.stage.WindowHelper.visibleChanging(WindowHelper.java:73)

at javafx.graphics/javafx.stage.Window$12.invalidated(Window.java:1064)

at javafx.base/javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:110)

at javafx.base/javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:145)

at javafx.graphics/javafx.stage.Window.setShowing(Window.java:1174)

at javafx.graphics/javafx.stage.Window.show(Window.java:1189)

at javafx.graphics/javafx.stage.PopupWindow.showImpl(PopupWindow.java:472)

at javafx.graphics/javafx.stage.PopupWindow.show(PopupWindow.java:437)

at javafx.controls/javafx.scene.control.Tooltip$TooltipBehavior.lambda$new$0(Tooltip.java:899)

at javafx.graphics/javafx.animation.Animation.finished(Animation.java:1131)

at javafx.graphics/javafx.animation.AnimationAccessorImpl.finished(AnimationAccessorImpl.java:49)

at javafx.graphics/com.sun.scenario.animation.shared.SingleLoopClipEnvelope.timePulse(SingleLoopClipEnvelope.java:101)

at javafx.graphics/javafx.animation.Animation.doTimePulse(Animation.java:1101)

at javafx.graphics/javafx.animation.Animation$1.lambda$timePulse$0(Animation.java:186)

at java.base/java.security.AccessController.doPrivileged(Native Method)

at javafx.graphics/javafx.animation.Animation$1.timePulse(Animation.java:185)

at javafx.graphics/com.sun.scenario.animation.AbstractMasterTimer.timePulseImpl(AbstractMasterTimer.java:344)

at javafx.graphics/com.sun.scenario.animation.AbstractMasterTimer$MainLoop.run(AbstractMasterTimer.java:267)

at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:559)

at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:543)

at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.pulseFromQueue(QuantumToolkit.java:536)

at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$11(QuantumToolkit.java:342)

at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)

at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)

at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)

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

Comments
Post Details
Added on Sep 9 2020
2 comments
518 views