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

Canvas cannot extend to more than 8192pixels

XMLWordPrintable

    • 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


            pnarayanaswa Praveen Narayanaswamy
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: