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

Null pointer exception in Prism rendering with a JFXPanel

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: 8
    • Fix Version/s: None
    • Component/s: javafx
    • Environment:

      Windows 7 64-bit
      Java 8.0.0-b80 32-bit

      Description

      The swing version of my app that uses a JFXPanel for part of the UI is getting the following exception sometimes. This is happening when I mouse over a ToggleButton with a complex node hierarchy as the image. (effectively a scaled down view of nearly everything else in the JFXPanel)

      java.lang.NullPointerException
              at com.sun.javafx.sg.BaseCacheFilter.render(BaseCacheFilter.java:226)
              at com.sun.javafx.sg.prism.NGNode$CacheFilter.render(NGNode.java:769)
              at com.sun.javafx.sg.prism.NGNode.renderCached(NGNode.java:710)
              at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:422)
              at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
              at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1278)
              at com.sun.javafx.sg.prism.NGGroup.renderChildren(NGGroup.java:242)
              at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:208)
              at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1235)
              at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:428)
              at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
              at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1278)
              at com.sun.javafx.sg.prism.NGGroup.renderChildren(NGGroup.java:242)
              at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:208)
              at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1235)
              at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:428)
              at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
              at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1278)
              at com.sun.javafx.sg.prism.NGGroup.renderChildren(NGGroup.java:242)
              at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:208)
              at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1235)
              at com.sun.javafx.sg.prism.NGNode.renderForClip(NGNode.java:649)
              at com.sun.javafx.sg.prism.NGNode.renderRectClip(NGNode.java:543)
              at com.sun.javafx.sg.prism.NGNode.renderClip(NGNode.java:569)
              at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:424)
              at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
              at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1278)
              at com.sun.javafx.sg.prism.NGGroup.renderChildren(NGGroup.java:242)
              at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:208)
              at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1235)
              at com.sun.javafx.sg.prism.NGNode.renderForClip(NGNode.java:649)
              at com.sun.javafx.sg.prism.NGNode.renderRectClip(NGNode.java:543)
              at com.sun.javafx.sg.prism.NGNode.renderClip(NGNode.java:569)
              at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:424)
              at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
              at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1278)
              at com.sun.javafx.sg.prism.NGGroup.renderChildren(NGGroup.java:242)
              at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:208)
              at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1235)
              at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:428)
              at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
              at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1278)
              at com.sun.javafx.sg.prism.NGGroup.renderChildren(NGGroup.java:242)
              at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:208)
              at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1235)
              at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:428)
              at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
              at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1278)
              at com.sun.javafx.sg.prism.NGGroup.renderChildren(NGGroup.java:242)
              at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:208)
              at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1235)
              at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:428)
              at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
              at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1278)
              at com.sun.javafx.sg.prism.NGGroup.renderChildren(NGGroup.java:242)
              at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:208)
              at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1235)
              at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:428)
              at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
              at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1278)
              at com.sun.javafx.sg.prism.NGGroup.renderChildren(NGGroup.java:242)
              at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:208)
              at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1235)
              at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:428)
              at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
              at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1278)
              at com.sun.javafx.sg.prism.NGGroup.renderChildren(NGGroup.java:242)
              at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:208)
              at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1235)
              at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:428)
              at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
              at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1278)
              at com.sun.javafx.sg.prism.NGGroup.renderChildren(NGGroup.java:242)
              at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:208)
              at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1235)
              at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:428)
              at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
              at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1278)
              at com.sun.javafx.sg.prism.NGGroup.renderChildren(NGGroup.java:242)
              at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:208)
              at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1235)
              at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:428)
              at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
              at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1278)
              at com.sun.javafx.tk.quantum.EmbeddedPainter.doPaint(EmbeddedPainter.java:132)
              at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(AbstractPainter.java:213)
              at com.sun.javafx.tk.quantum.EmbeddedPainter.run(EmbeddedPainter.java:107)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
              at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
              at com.sun.prism.render.RenderJob.run(RenderJob.java:56)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
              at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:131)
              at java.lang.Thread.run(Thread.java:722)

        Attachments

          Activity

            People

            • Assignee:
              flar Jim Graham
              Reporter:
              swpalmer Scott Palmer
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: