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

NullPointerException when rendering image

XMLWordPrintable

      The attached program loads an image in the background
      and is then supposed to render it when it is fully loaded.
      This worked until recently but now results in a NPE
      with the latest build of JavaFX (2.2 b11).

      Progress: 10.0%
      Progress: 21.0%
      Progress: 32.0%
      Progress: 43.0%
      Progress: 54.0%
      Progress: 65.0%
      Progress: 76.0%
      Progress: 86.0%
      Progress: 97.0%
      Progress: 100.0%
      java.lang.NullPointerException
      at com.sun.prism.impl.BaseGraphics.drawTextureVO(BaseGraphics.java:418)
      at com.sun.prism.impl.BaseGraphics.drawTexture(BaseGraphics.java:351)
      at com.sun.prism.image.Coords.draw(Coords.java:29)
      at com.sun.prism.image.CompoundCoords.draw(CompoundCoords.java:83)
      at com.sun.javafx.sg.prism.NGImageView.renderContent(NGImageView.java:127)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:187)
      at com.sun.javafx.sg.prism.NGImageView.doRender(NGImageView.java:97)
      at com.sun.javafx.sg.prism.NGImageView.doRender(NGImageView.java:20)
      at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1133)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:204)
      at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:420)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:187)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:39)
      at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1133)
      at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:117)
      at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(AbstractPainter.java:181)
      at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:73)
      at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
      at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
      at com.sun.prism.render.RenderJob.run(RenderJob.java:37)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:96)
      at java.lang.Thread.run(Unknown Source)

        1. AsyncImageDemo.java
          2 kB
          Dr. Michael Paus
        2. dxview-nvs_4200m.log
          67 kB
          Kevin Rushforth
        3. gpu_z NVS.png
          40 kB
          Kirill.Prazdnikov
        4. NVIDIA System Information 06-05-2012 09-10-29.txt
          2 kB
          Dr. Michael Paus
        5. NVIDIA System Information 06-13-2012 15-53-27.txt
          3 kB
          Dr. Michael Paus

            kcr Kevin Rushforth
            dpausjfx Dr. Michael Paus (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: