miho / VWorkflows

Flow Visualization Library for JavaFX and VRL-Studio
http://vworkflows.mihosoft.eu
Other
296 stars 67 forks source link

ScalableContentPane cause StackOverflowError #67

Open kaonick opened 4 years ago

kaonick commented 4 years ago

Try to run demo in openjdk14+jfx. Got lot of error message below,tried to mark ScalableContentPane.computeScale then could run? Don't know why....

"C:\Program Files\Java\jdk-14.0.1\bin\java.exe" -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:63756,suspend=y,server=n -Dfile.encoding=UTF-8 -classpath "D:\00WS\JAVA\FlowChart\VWorkflows-Demo\target\classes;C:\Users\n000000930\.m2\repository\org\openjfx\javafx-controls\14.0.1\javafx-controls-14.0.1.jar;C:\Users\n000000930\.m2\repository\org\openjfx\javafx-controls\14.0.1\javafx-controls-14.0.1-win.jar;C:\Users\n000000930\.m2\repository\org\openjfx\javafx-base\14.0.1\javafx-base-14.0.1.jar;C:\Users\n000000930\.m2\repository\org\openjfx\javafx-base\14.0.1\javafx-base-14.0.1-win.jar;C:\Users\n000000930\.m2\repository\org\openjfx\javafx-graphics\14.0.1\javafx-graphics-14.0.1.jar;C:\Users\n000000930\.m2\repository\org\openjfx\javafx-graphics\14.0.1\javafx-graphics-14.0.1-win.jar;C:\Users\n000000930\.m2\repository\org\openjfx\javafx-swing\14.0.1\javafx-swing-14.0.1.jar;C:\Users\n000000930\.m2\repository\org\openjfx\javafx-swing\14.0.1\javafx-swing-14.0.1-win.jar;C:\Users\n000000930\.m2\repository\org\openjfx\javafx-fxml\14\javafx-fxml-14.jar;C:\Users\n000000930\.m2\repository\org\openjfx\javafx-fxml\14\javafx-fxml-14-win.jar;D:\00WS\JAVA\FlowChart\VWorkflows-FX\target\classes;D:\00WS\JAVA\FlowChart\VWorkflows-Core\target\classes;C:\Users\n000000930\.m2\repository\com\thoughtworks\xstream\xstream\1.4.12\xstream-1.4.12.jar;C:\Users\n000000930\.m2\repository\xmlpull\xmlpull\1.1.3.1\xmlpull-1.1.3.1.jar;C:\Users\n000000930\.m2\repository\xpp3\xpp3_min\1.1.4c\xpp3_min-1.1.4c.jar;C:\Users\n000000930\.m2\repository\net\sf\jung\jung-api\2.1.1\jung-api-2.1.1.jar;C:\Users\n000000930\.m2\repository\com\google\guava\guava\19.0\guava-19.0.jar;C:\Users\n000000930\.m2\repository\net\sf\jung\jung-graph-impl\2.1.1\jung-graph-impl-2.1.1.jar;C:\Users\n000000930\.m2\repository\net\sf\jung\jung-algorithms\2.1.1\jung-algorithms-2.1.1.jar;C:\Users\n000000930\.m2\repository\net\sf\jung\jung-visualization\2.1.1\jung-visualization-2.1.1.jar;C:\Users\n000000930\.m2\repository\org\apache\commons\commons-math3\3.6.1\commons-math3-3.6.1.jar;C:\Users\n000000930\.m2\repository\eu\mihosoft\jfx\scaledfx\scaledfx\0.6\scaledfx-0.6.jar;C:\Users\n000000930\.m2\repository\org\openjfx\javafx-controls\11.0.2\javafx-controls-11.0.2-mac.jar;C:\Users\n000000930\.m2\repository\org\openjfx\javafx-fxml\11.0.2\javafx-fxml-11.0.2-mac.jar;C:\Users\n000000930\.m2\repository\org\openjfx\javafx-graphics\11.0.2\javafx-graphics-11.0.2-mac.jar;C:\Users\n000000930\.m2\repository\org\openjfx\javafx-base\11.0.2\javafx-base-11.0.2-mac.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.1\lib\idea_rt.jar" eu.mihosoft.vrl.workflow.demo.GUIstart
Connected to the target VM, address: '127.0.0.1:63756', transport: 'socket'
 >> generate workflowException in Application start method
Exception in thread "main" java.lang.RuntimeException: Exception in Application start method
    at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:900)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195)
    at java.base/java.lang.Thread.run(Thread.java:832)
Caused by: java.lang.StackOverflowError
    at javafx.scene.Parent.doComputeGeomBounds(Parent.java:1492)
    at javafx.scene.Parent$1.doComputeGeomBounds(Parent.java:115)
    at com.sun.javafx.scene.ParentHelper.computeGeomBoundsImpl(ParentHelper.java:84)
    at com.sun.javafx.scene.layout.RegionHelper.superComputeGeomBoundsImpl(RegionHelper.java:78)
    at com.sun.javafx.scene.layout.RegionHelper.superComputeGeomBounds(RegionHelper.java:62)
    at javafx.scene.layout.Region.doComputeGeomBounds(Region.java:3289)
    at javafx.scene.layout.Region$1.doComputeGeomBounds(Region.java:168)
    at com.sun.javafx.scene.layout.RegionHelper.computeGeomBoundsImpl(RegionHelper.java:89)
    at com.sun.javafx.scene.NodeHelper.computeGeomBounds(NodeHelper.java:115)
    at javafx.scene.Node.updateGeomBounds(Node.java:3843)
    at javafx.scene.Node.getGeomBounds(Node.java:3805)
    at javafx.scene.Node.getLocalBounds(Node.java:3753)
    at javafx.scene.Node.updateTxBounds(Node.java:3907)
    at javafx.scene.Node.getTransformedBounds(Node.java:3699)
    at javafx.scene.Parent.getChildTransformedBounds(Parent.java:1848)
    at javafx.scene.Parent.updateCachedBounds(Parent.java:1709)
    at javafx.scene.Parent.recomputeBounds(Parent.java:1648)
    at javafx.scene.Parent.doComputeGeomBounds(Parent.java:1501)
    at javafx.scene.Parent$1.doComputeGeomBounds(Parent.java:115)
    at com.sun.javafx.scene.ParentHelper.computeGeomBoundsImpl(ParentHelper.java:84)
    at com.sun.javafx.scene.layout.RegionHelper.superComputeGeomBoundsImpl(RegionHelper.java:78)
    at com.sun.javafx.scene.layout.RegionHelper.superComputeGeomBounds(RegionHelper.java:62)
    at javafx.scene.layout.Region.doComputeGeomBounds(Region.java:3289)
    at javafx.scene.layout.Region$1.doComputeGeomBounds(Region.java:168)
    at com.sun.javafx.scene.layout.RegionHelper.computeGeomBoundsImpl(RegionHelper.java:89)
    at com.sun.javafx.scene.NodeHelper.computeGeomBounds(NodeHelper.java:115)
    at javafx.scene.Node.updateGeomBounds(Node.java:3843)
    at javafx.scene.Node.getGeomBounds(Node.java:3805)
    at javafx.scene.Node.getLocalBounds(Node.java:3753)
    at javafx.scene.Node.updateTxBounds(Node.java:3907)
    at javafx.scene.Node.getTransformedBounds(Node.java:3699)
    at javafx.scene.Parent.getChildTransformedBounds(Parent.java:1848)
    at javafx.scene.Parent.recomputeBounds(Parent.java:1637)
    at javafx.scene.Parent.doComputeGeomBounds(Parent.java:1501)
    at javafx.scene.Parent$1.doComputeGeomBounds(Parent.java:115)
    at com.sun.javafx.scene.ParentHelper.computeGeomBoundsImpl(ParentHelper.java:84)
    at com.sun.javafx.scene.layout.RegionHelper.superComputeGeomBoundsImpl(RegionHelper.java:78)
    at com.sun.javafx.scene.layout.RegionHelper.superComputeGeomBounds(RegionHelper.java:62)
    at javafx.scene.layout.Region.doComputeGeomBounds(Region.java:3289)
    at javafx.scene.layout.Region$1.doComputeGeomBounds(Region.java:168)
    at com.sun.javafx.scene.layout.RegionHelper.computeGeomBoundsImpl(RegionHelper.java:89)
    at com.sun.javafx.scene.NodeHelper.computeGeomBounds(NodeHelper.java:115)
    at javafx.scene.Node.updateGeomBounds(Node.java:3843)
    at javafx.scene.Node.getGeomBounds(Node.java:3805)
    at javafx.scene.Node.getLocalBounds(Node.java:3753)
    at javafx.scene.Node$MiscProperties$3.computeBounds(Node.java:6843)
    at javafx.scene.Node$LazyBoundsProperty.get(Node.java:9777)
    at javafx.scene.Node$LazyBoundsProperty.get(Node.java:9747)
    at javafx.beans.binding.ObjectExpression.getValue(ObjectExpression.java:49)
    at com.sun.javafx.binding.ExpressionHelper$SingleChange.fireValueChangedEvent(ExpressionHelper.java:177)
    at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:80)
    at javafx.scene.Node$LazyBoundsProperty.invalidate(Node.java:9787)
    at javafx.scene.Node$MiscProperties.invalidateBoundsInLocal(Node.java:6871)
    at javafx.scene.Node.invalidateBoundsInLocal(Node.java:3464)
    at javafx.scene.Node.localBoundsChanged(Node.java:4036)
    at javafx.scene.Node.doGeomChanged(Node.java:4023)
    at javafx.scene.Node$1.doGeomChanged(Node.java:462)
    at com.sun.javafx.scene.NodeHelper.geomChangedImpl(NodeHelper.java:184)
    at com.sun.javafx.scene.NodeHelper.geomChanged(NodeHelper.java:137)
    at javafx.scene.Parent.childBoundsChanged(Parent.java:1873)
    at javafx.scene.Node.notifyParentOfBoundsChange(Node.java:4094)
    at javafx.scene.Node.transformedBoundsChanged(Node.java:4055)
    at javafx.scene.Node.localBoundsChanged(Node.java:4037)
    at javafx.scene.Node.doGeomChanged(Node.java:4023)
    at javafx.scene.Node$1.doGeomChanged(Node.java:462)
    at com.sun.javafx.scene.NodeHelper.geomChangedImpl(NodeHelper.java:184)
    at com.sun.javafx.scene.NodeHelper.geomChanged(NodeHelper.java:137)
    at javafx.scene.Parent.childBoundsChanged(Parent.java:1873)
    at javafx.scene.Node.notifyParentOfBoundsChange(Node.java:4094)
    at javafx.scene.Node.transformedBoundsChanged(Node.java:4055)
    at javafx.scene.Node.localBoundsChanged(Node.java:4037)
    at javafx.scene.Node.doGeomChanged(Node.java:4023)
    at javafx.scene.Node$1.doGeomChanged(Node.java:462)
    at com.sun.javafx.scene.NodeHelper.geomChangedImpl(NodeHelper.java:184)
    at com.sun.javafx.scene.NodeHelper.geomChanged(NodeHelper.java:137)
    at javafx.scene.Parent.childBoundsChanged(Parent.java:1873)
    at javafx.scene.Node.notifyParentOfBoundsChange(Node.java:4094)
    at javafx.scene.Node.transformedBoundsChanged(Node.java:4055)
    at javafx.scene.Node.doTransformsChanged(Node.java:4998)
    at javafx.scene.Node$1.doTransformsChanged(Node.java:445)
    at com.sun.javafx.scene.NodeHelper.transformsChangedImpl(NodeHelper.java:170)
    at com.sun.javafx.scene.NodeHelper.transformsChanged(NodeHelper.java:119)
    at javafx.scene.transform.Transform.transformChanged(Transform.java:2109)
    at javafx.scene.transform.Scale$1.invalidated(Scale.java:128)
    at javafx.beans.property.DoublePropertyBase.markInvalid(DoublePropertyBase.java:113)
    at javafx.beans.property.DoublePropertyBase.set(DoublePropertyBase.java:148)
    at javafx.scene.transform.Scale.setX(Scale.java:115)
    at eu.mihosoft.scaledfx.ScalableContentPane.computeScale(ScalableContentPane.java:197)
    at eu.mihosoft.scaledfx.ScalableContentPane.lambda$new$0(ScalableContentPane.java:70)
    at com.sun.javafx.binding.ExpressionHelper$SingleChange.fireValueChangedEvent(ExpressionHelper.java:181)