-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
jfx20
-
generic
-
generic
ADDITIONAL SYSTEM INFORMATION :
Windows10
A DESCRIPTION OF THE PROBLEM :
When trying to create Canvas canvas = new Canvas(8193,8193); get NPE in prism engine:
java.lang.NullPointerException: Cannot invoke "com.sun.prism.RTTexture.createGraphics()" because "<local9>" is null at javafx.graphics@20.0.1/com.sun.javafx.sg.prism.NGCanvas$RenderBuf.validate(NGCanvas.java:214)
new Canvas(8192,8192) - works OK
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Canvas canvas = new Canvas(8193,8193);
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
new Canvas created
ACTUAL -
java.lang.NullPointerException: Cannot invoke "com.sun.prism.RTTexture.createGraphics()" because "<local9>" is null at javafx.graphics@20.0.1/com.sun.javafx.sg.prism.NGCanvas$RenderBuf.validate(NGCanvas.java:214)
---------- BEGIN SOURCE ----------
Canvas canvas = new Canvas(8193,8193);
---------- END SOURCE ----------
FREQUENCY : always
Windows10
A DESCRIPTION OF THE PROBLEM :
When trying to create Canvas canvas = new Canvas(8193,8193); get NPE in prism engine:
java.lang.NullPointerException: Cannot invoke "com.sun.prism.RTTexture.createGraphics()" because "<local9>" is null at javafx.graphics@20.0.1/com.sun.javafx.sg.prism.NGCanvas$RenderBuf.validate(NGCanvas.java:214)
new Canvas(8192,8192) - works OK
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Canvas canvas = new Canvas(8193,8193);
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
new Canvas created
ACTUAL -
java.lang.NullPointerException: Cannot invoke "com.sun.prism.RTTexture.createGraphics()" because "<local9>" is null at javafx.graphics@20.0.1/com.sun.javafx.sg.prism.NGCanvas$RenderBuf.validate(NGCanvas.java:214)
---------- BEGIN SOURCE ----------
Canvas canvas = new Canvas(8193,8193);
---------- END SOURCE ----------
FREQUENCY : always
- duplicates
-
JDK-8090178 NPE when rendering FX Canvas if the dimensions are too large
- Open