-
Bug
-
Resolution: Fixed
-
P3
-
7u6
-
None
-
2.2.0-beta-b08 on Mac
I do not know why, but I suddenly get the error below while adding a node to my scene. I know for certain that the node is not null, and the assertion comes from this line in StyleManager:
assert(node != null && node.getScene() != null);
So this means that somehow the node's scene is null when it should not be. I believe this must be bug.
java.lang.AssertionError
at com.sun.javafx.css.StyleManager.getStyleHelper(StyleManager.java:751)
at javafx.scene.Node.impl_createStyleHelper(Node.java:6945)
at javafx.scene.Node.impl_processCSS(Node.java:6913)
at javafx.scene.Parent.impl_processCSS(Parent.java:1138)
at javafx.scene.control.Control.impl_processCSS(Control.java:1114)
at javafx.scene.Parent.impl_processCSS(Parent.java:1145)
at javafx.scene.Node.impl_reapplyCSS(Node.java:6870)
at javafx.scene.Node$4.invalidated(Node.java:691)
at javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBase.java:129)
at javafx.beans.property.ObjectPropertyBase.set(ObjectPropertyBase.java:163)
at javafx.scene.Node.setScene(Node.java:661)
at javafx.scene.Parent$1.onChanged(Parent.java:416)
at com.sun.javafx.collections.VetoableObservableList.callObservers(VetoableObservableList.java:83)
at com.sun.javafx.collections.ObservableListWrapper.setAll(ObservableListWrapper.java:303)
at com.sun.javafx.collections.VetoableObservableList.setAll(VetoableObservableList.java:92)
at com.intuism.ui.component.flow.Flow.reset(Flow.java:117)
at com.intuism.ui.component.flow.Flow.layoutChildren(Flow.java:142)
at javafx.scene.Parent.layout(Parent.java:1003)
at javafx.scene.Parent.layout(Parent.java:1013)
at javafx.scene.Parent.layout(Parent.java:1013)
at javafx.scene.Parent.layout(Parent.java:1013)
at javafx.scene.Parent.layout(Parent.java:1013)
at javafx.scene.Parent.layout(Parent.java:1013)
at javafx.scene.Parent.layout(Parent.java:1013)
at javafx.scene.Parent.layout(Parent.java:1013)
at javafx.scene.Scene.layoutDirtyRoots(Scene.java:500)
at javafx.scene.Scene.doLayoutPass(Scene.java:473)
at javafx.scene.Scene.preferredSize(Scene.java:1245)
at javafx.scene.Scene.impl_preferredSize(Scene.java:1272)
at javafx.stage.Window$10.invalidated(Window.java:719)
at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:129)
at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:163)
at javafx.stage.Window.setShowing(Window.java:782)
at javafx.stage.Window.show(Window.java:797)
at javafx.stage.Stage.show(Stage.java:229)
at com.wefend.ui.WefendPc.start(WefendPc.java:182)
at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:319)
at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:175)
at com.sun.javafx.application.PlatformImpl$3.run(PlatformImpl.java:142)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:76)
assert(node != null && node.getScene() != null);
So this means that somehow the node's scene is null when it should not be. I believe this must be bug.
java.lang.AssertionError
at com.sun.javafx.css.StyleManager.getStyleHelper(StyleManager.java:751)
at javafx.scene.Node.impl_createStyleHelper(Node.java:6945)
at javafx.scene.Node.impl_processCSS(Node.java:6913)
at javafx.scene.Parent.impl_processCSS(Parent.java:1138)
at javafx.scene.control.Control.impl_processCSS(Control.java:1114)
at javafx.scene.Parent.impl_processCSS(Parent.java:1145)
at javafx.scene.Node.impl_reapplyCSS(Node.java:6870)
at javafx.scene.Node$4.invalidated(Node.java:691)
at javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBase.java:129)
at javafx.beans.property.ObjectPropertyBase.set(ObjectPropertyBase.java:163)
at javafx.scene.Node.setScene(Node.java:661)
at javafx.scene.Parent$1.onChanged(Parent.java:416)
at com.sun.javafx.collections.VetoableObservableList.callObservers(VetoableObservableList.java:83)
at com.sun.javafx.collections.ObservableListWrapper.setAll(ObservableListWrapper.java:303)
at com.sun.javafx.collections.VetoableObservableList.setAll(VetoableObservableList.java:92)
at com.intuism.ui.component.flow.Flow.reset(Flow.java:117)
at com.intuism.ui.component.flow.Flow.layoutChildren(Flow.java:142)
at javafx.scene.Parent.layout(Parent.java:1003)
at javafx.scene.Parent.layout(Parent.java:1013)
at javafx.scene.Parent.layout(Parent.java:1013)
at javafx.scene.Parent.layout(Parent.java:1013)
at javafx.scene.Parent.layout(Parent.java:1013)
at javafx.scene.Parent.layout(Parent.java:1013)
at javafx.scene.Parent.layout(Parent.java:1013)
at javafx.scene.Parent.layout(Parent.java:1013)
at javafx.scene.Scene.layoutDirtyRoots(Scene.java:500)
at javafx.scene.Scene.doLayoutPass(Scene.java:473)
at javafx.scene.Scene.preferredSize(Scene.java:1245)
at javafx.scene.Scene.impl_preferredSize(Scene.java:1272)
at javafx.stage.Window$10.invalidated(Window.java:719)
at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:129)
at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:163)
at javafx.stage.Window.setShowing(Window.java:782)
at javafx.stage.Window.show(Window.java:797)
at javafx.stage.Stage.show(Stage.java:229)
at com.wefend.ui.WefendPc.start(WefendPc.java:182)
at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:319)
at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:175)
at com.sun.javafx.application.PlatformImpl$3.run(PlatformImpl.java:142)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:76)