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

JavaFX Graphics Exception on Large Resolution Monitor

XMLWordPrintable

    • x86_64
    • windows_10

      ADDITIONAL SYSTEM INFORMATION :
      Windows 11

      A DESCRIPTION OF THE PROBLEM :
      The error occur in an application using Canvases, on a monitor with large resolution. The error is below. The application is getting a black screen, as soon as the window reaches a given size.

      We tried adding -Dprism.maxvram=2G
      to startup parameters, but the error continues to occur.

      java.lang.NullPointerException: Cannot invoke "com.sun.prism.RTTexture.createGraphics()" because "newtex" is null
      at javafx.graphics/com.sun.javafx.sg.prism.NGCanvas$RenderBuf.validate(NGCanvas.java:214)
      at javafx.graphics/com.sun.javafx.sg.prism.NGCanvas.initCanvas(NGCanvas.java:644)
      at javafx.graphics/com.sun.javafx.sg.prism.NGCanvas.renderContent(NGCanvas.java:607)
      at javafx.graphics/com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2072)
      at javafx.graphics/com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1964)
      at javafx.graphics/com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:270)
      at javafx.graphics/com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:579)
      at javafx.graphics/com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2072)
      at javafx.graphics/com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1964)
      at javafx.graphics/com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:270)
      at javafx.graphics/com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:579)
      at javafx.graphics/com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2072)
      at javafx.graphics/com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1964)
      at javafx.graphics/com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:270)
      at javafx.graphics/com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:579)
      at javafx.graphics/com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2072)
      at javafx.graphics/com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1964)
      at javafx.graphics/com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:270)
      at javafx.graphics/com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:579)
      at javafx.graphics/com.sun.javafx.sg.prism.NGNode.renderForClip(NGNode.java:2313)
      at javafx.graphics/com.sun.javafx.sg.prism.NGNode.renderRectClip(NGNode.java:2207)
      at javafx.graphics/com.sun.javafx.sg.prism.NGNode.renderClip(NGNode.java:2233)
      at javafx.graphics/com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2066)
      at javafx.graphics/com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1964)
      at javafx.graphics/com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:270)
      at javafx.graphics/com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:579)
      at javafx.graphics/com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2072)
      at javafx.graphics/com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1964)
      at javafx.graphics/com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:270)
      at javafx.graphics/com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:579)
      at javafx.graphics/com.sun.javafx.sg.prism.NGNode.renderForClip(NGNode.java:2313)
      at javafx.graphics/com.sun.javafx.sg.prism.NGNode.renderRectClip(NGNode.java:2207)
      at javafx.graphics/com.sun.javafx.sg.prism.NGNode.renderClip(NGNode.java:2233)
      at javafx.graphics/com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2066)
      at javafx.graphics/com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1964)
      at javafx.graphics/com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:270)
      at javafx.graphics/com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:579)
      at javafx.graphics/com.sun.javafx.sg.prism.NGNode.renderForClip(NGNode.java:2313)
      at javafx.graphics/com.sun.javafx.sg.prism.NGNode.renderRectClip(NGNode.java:2207)
      at javafx.graphics/com.sun.javafx.sg.prism.NGNode.renderClip(NGNode.java:2233)
      at javafx.graphics/com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2066)
      at javafx.graphics/com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1964)
      at javafx.graphics/com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:270)
      at javafx.graphics/com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:579)
      at javafx.graphics/com.sun.javafx.sg.prism.NGNode.renderForClip(NGNode.java:2313)
      at javafx.graphics/com.sun.javafx.sg.prism.NGNode.renderRectClip(NGNode.java:2207)
      at javafx.graphics/com.sun.javafx.sg.prism.NGNode.renderClip(NGNode.java:2233)
      at javafx.graphics/com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2066)
      at javafx.graphics/com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1964)
      at javafx.graphics/com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:270)
      at javafx.graphics/com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:579)
      at javafx.graphics/com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2072)
      at javafx.graphics/com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1964)
      at javafx.graphics/com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:270)
      at javafx.graphics/com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:579)
      at javafx.graphics/com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2072)
      at javafx.graphics/com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1964)
      at javafx.graphics/com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:480)
      at javafx.graphics/com.sun.javafx.tk.quantum.ViewPainter.paintImpl(ViewPainter.java:329)
      at javafx.graphics/com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:92)
      at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
      at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
      at javafx.graphics/com.sun.javafx.tk.RenderJob.run(RenderJob.java:58)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
      at javafx.graphics/com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:126)
      at java.base/java.lang.Thread.run(Thread.java:840)




      REGRESSION : Last worked in version 17.0.11


      FREQUENCY : always


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

              Created:
              Updated:
              Resolved: