Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8125912

Unnecesary updates in boundsInParent variable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P4 P4
    • None
    • 7u6
    • javafx
    • Windows XP, JRE6, JavaFX 2.2

      This may o may not be a bug.

      While developing ScenicView I've noticed that the boundInParent variable of one of the root nodes of the example scenes gets repeatedly updated, it can be reproduced downloading ScenicView for fxexperience and selecting the root TilePane. To launch ScenicView with examples:

      java -cp pathToJFXRT.jar;pathToTools.jar;ScenicView.jar com.javafx.experiments.scenicview.example.ScenicViewExample

      When a variable is udpated it becomes red in the DetailPane.

      This is the stacktrace from where the update come from

      java.lang.Exception: NodeBoundsBoundingBox [minX:0.0, minY:-18.533008575439453, minZ:0.0, width:1072.0, height:498.53302001953125, depth:0.0, maxX:1072.0, maxY:480.0000114440918, maxZ:0.0]
          at com.javafx.experiments.fxconnector.details.NodeDetailPaneInfo.updateDetail(NodeDetailPaneInfo.java:409)
          at com.javafx.experiments.fxconnector.details.DetailPaneInfo$1.updateDetail(DetailPaneInfo.java:53)
          at com.javafx.experiments.fxconnector.PropertyTracker$1.invalidated(PropertyTracker.java:50)
          at com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(ExpressionHelper.java:359)
          at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:100)
          at javafx.scene.Node$LazyBoundsProperty.invalidate(Node.java:7555)
          at javafx.scene.Node$MiscProperties.invalidateBoundsInParent(Node.java:4980)
          at javafx.scene.Node.invalidateBoundsInParent(Node.java:2730)
          at javafx.scene.Node.transformedBoundsChanged(Node.java:3349)
          at javafx.scene.Node.localBoundsChanged(Node.java:3333)
          at javafx.scene.Node.impl_geomChanged(Node.java:3321)
          at javafx.scene.Parent.impl_geomChanged(Parent.java:1705)
          at javafx.scene.Parent.childBoundsChanged(Parent.java:1729)
          at javafx.scene.Node.notifyParentOfBoundsChange(Node.java:3382)
          at javafx.scene.Node.transformedBoundsChanged(Node.java:3351)
          at javafx.scene.Node.impl_transformsChanged(Node.java:3774)
          at javafx.scene.Node$14.invalidated(Node.java:2237)
          at javafx.beans.property.DoublePropertyBase.markInvalid(DoublePropertyBase.java:129)
          at javafx.beans.property.DoublePropertyBase.set(DoublePropertyBase.java:163)
          at javafx.scene.Node.setLayoutX(Node.java:2224)
          at javafx.scene.Node.relocate(Node.java:2328)
          at javafx.scene.layout.Region.position(Region.java:2033)
          at javafx.scene.layout.Region.layoutInArea(Region.java:2014)
          at javafx.scene.layout.Region.layoutInArea(Region.java:1915)
          at javafx.scene.layout.TilePane.layoutChildren(TilePane.java:866)
          at javafx.scene.Parent.layout(Parent.java:1018)
          at javafx.scene.Scene.layoutDirtyRoots(Scene.java:513)
          at javafx.scene.Scene.doLayoutPass(Scene.java:484)
          at javafx.scene.Scene.access$3900(Scene.java:169)
          at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2199)
          at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:363)
          at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:460)
          at com.sun.javafx.tk.quantum.QuantumToolkit$9.run(QuantumToolkit.java:329)
          at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
          at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
          at com.sun.glass.ui.win.WinApplication$3$1.run(WinApplication.java:73)
          at java.lang.Thread.run(Thread.java:662)
      java.lang.Exception: NodeBoundsBoundingBox [minX:0.0, minY:-18.533008575439453, minZ:0.0, width:1072.0, height:498.53302001953125, depth:0.0, maxX:1072.0, maxY:480.0000114440918, maxZ:0.0]
          at com.javafx.experiments.fxconnector.details.NodeDetailPaneInfo.updateDetail(NodeDetailPaneInfo.java:409)
          at com.javafx.experiments.fxconnector.details.DetailPaneInfo$1.updateDetail(DetailPaneInfo.java:53)
          at com.javafx.experiments.fxconnector.PropertyTracker$1.invalidated(PropertyTracker.java:50)
          at com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(ExpressionHelper.java:359)
          at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:100)
          at javafx.scene.Node$LazyBoundsProperty.invalidate(Node.java:7555)
          at javafx.scene.Node$MiscProperties.invalidateBoundsInParent(Node.java:4980)
          at javafx.scene.Node.invalidateBoundsInParent(Node.java:2730)
          at javafx.scene.Node.transformedBoundsChanged(Node.java:3349)
          at javafx.scene.Node.localBoundsChanged(Node.java:3333)
          at javafx.scene.Node.impl_geomChanged(Node.java:3321)
          at javafx.scene.Parent.impl_geomChanged(Parent.java:1705)
          at javafx.scene.Parent.childBoundsChanged(Parent.java:1729)
          at javafx.scene.Node.notifyParentOfBoundsChange(Node.java:3382)
          at javafx.scene.Node.transformedBoundsChanged(Node.java:3351)
          at javafx.scene.Node.impl_transformsChanged(Node.java:3774)
          at javafx.scene.Node$15.invalidated(Node.java:2298)
          at javafx.beans.property.DoublePropertyBase.markInvalid(DoublePropertyBase.java:129)
          at javafx.beans.property.DoublePropertyBase.set(DoublePropertyBase.java:163)
          at javafx.scene.Node.setLayoutY(Node.java:2285)
          at javafx.scene.Node.relocate(Node.java:2329)
          at javafx.scene.layout.Region.position(Region.java:2033)
          at javafx.scene.layout.Region.layoutInArea(Region.java:2014)
          at javafx.scene.layout.Region.layoutInArea(Region.java:1915)
          at javafx.scene.layout.TilePane.layoutChildren(TilePane.java:866)
          at javafx.scene.Parent.layout(Parent.java:1018)
          at javafx.scene.Scene.layoutDirtyRoots(Scene.java:513)
          at javafx.scene.Scene.doLayoutPass(Scene.java:484)
          at javafx.scene.Scene.access$3900(Scene.java:169)
          at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2199)
          at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:363)
          at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:460)
          at com.sun.javafx.tk.quantum.QuantumToolkit$9.run(QuantumToolkit.java:329)
          at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
          at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
          at com.sun.glass.ui.win.WinApplication$3$1.run(WinApplication.java:73)
          at java.lang.Thread.run(Thread.java:662)

            ekrejcir Eva Krejčířová (Inactive)
            anruizjfx Ander Ruiz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: