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

JFXPanel doesn't work with ES2, on Mac

XMLWordPrintable

      After the fix for RT-11786 JFXPanel now works on MacOSX. However, Prism/J2D is the only pipeline available, while Prism/ES2 throws the following exception:

           [java] java.lang.NullPointerException
           [java] at com.sun.prism.es2.ES2RTTexture.create(ES2RTTexture.java:53)
           [java] at com.sun.prism.es2.ES2ResourceFactory.createRTTexture(ES2ResourceFactory.java:53)
           [java] at com.sun.javafx.tk.quantum.EmbeddedScene$PaintRunnable.run(EmbeddedScene.java:148)
           [java] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
           [java] at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
           [java] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
           [java] at com.sun.prism.render.RenderJob.run(RenderJob.java:29)
           [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
           [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:680)

      ES2RTTexture.java:53 is the following line:

              boolean pad = gl.isGLES2();

      so obviously "gl" is null.

      apps/experiments/SwingJavaFXChart is the application that can be used to reproduce this problem.

            dcherepanov Dmitry Cherepanov
            art Artem Ananiev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: