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

Prism/ES2: HelloJFXPanel throws NPE after resizing it

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: fx2.0
    • Fix Version/s: fx2.0
    • Component/s: javafx

      Description

      To reproduce just run HelloJFXPanel sample and start resizing it. It seems to be resized correctly but here's the exception thrown:


           [java] java.lang.NullPointerException
           [java] at com.sun.prism.es2.ES2Context$State.access$300(ES2Context.java:430)
           [java] at com.sun.prism.es2.ES2Context.disposeTexture(ES2Context.java:391)
           [java] at com.sun.prism.es2.ES2Texture$ES2TextureDisposerRecord.dispose(ES2Texture.java:686)
           [java] at com.sun.prism.es2.ES2RTTexture$ES2RTTextureDisposerRecord.dispose(ES2RTTexture.java:289)
           [java] at com.sun.prism.impl.Disposer.disposeUnreachables(Disposer.java:157)
           [java] at com.sun.prism.impl.Disposer.cleanUp(Disposer.java:114)
           [java] at com.sun.javafx.tk.quantum.QuantumRenderer.afterExecute(QuantumRenderer.java:161)
           [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:888)
           [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
           [java] at com.sun.javafx.tk.quantum.QuantumRenderer$ObservedRunnable.run(QuantumRenderer.java:70)
           [java] at java.lang.Thread.run(Thread.java:619)

      Relates to the problem RT-13728 fixed recently. Looks like we need to enhance the fix for RT-13728.

        Attachments

          Activity

            People

            Assignee:
            dcherepanov Dmitry Cherepanov
            Reporter:
            dcherepanov Dmitry Cherepanov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: