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

[Canvas] Maximize Windows with Canvas as Drawing surface produce Runtime Errors

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Won't Fix
    • Affects Version/s: 8
    • Fix Version/s: 9
    • Component/s: javafx
    • Environment:

      Mac OSX 10.9.2 java 8.0.0-b132

      Description

      Whenever i maximize a window where i draw to a canvas, the software gets unresponsive and throws runtime errors

      java.lang.NullPointerException
      at com.sun.javafx.sg.prism.NGCanvas$RenderBuf.validate(NGCanvas.java:199)
      at com.sun.javafx.sg.prism.NGCanvas.initCanvas(NGCanvas.java:598)
      at com.sun.javafx.sg.prism.NGCanvas.renderContent(NGCanvas.java:575)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2043)
      at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1951)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:225)
      at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:575)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2043)
      at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1951)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:225)
      at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:575)
      at com.sun.javafx.sg.prism.NGNode.renderForClip(NGNode.java:2282)
      at com.sun.javafx.sg.prism.NGNode.renderRectClip(NGNode.java:2176)
      at com.sun.javafx.sg.prism.NGNode.renderClip(NGNode.java:2202)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2037)
      at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1951)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:225)
      at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:575)
      at com.sun.javafx.sg.prism.NGNode.renderForClip(NGNode.java:2282)
      at com.sun.javafx.sg.prism.NGNode.renderRectClip(NGNode.java:2176)
      at com.sun.javafx.sg.prism.NGNode.renderClip(NGNode.java:2202)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2037)
      at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1951)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:225)
      at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:575)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2043)
      at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1951)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:225)
      at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:575)
      at com.sun.javafx.sg.prism.NodeEffectInput.getImageDataForBoundedNode(NodeEffectInput.java:237)
      at com.sun.javafx.sg.prism.NodeEffectInput.filter(NodeEffectInput.java:131)
      at com.sun.scenario.effect.FilterEffect.filter(FilterEffect.java:168)
      at com.sun.scenario.effect.Offset.filter(Offset.java:160)
      at com.sun.scenario.effect.Merge.filter(Merge.java:147)
      at com.sun.scenario.effect.DelegateEffect.filter(DelegateEffect.java:70)
      at com.sun.scenario.effect.impl.prism.PrEffectHelper.render(PrEffectHelper.java:164)
      at com.sun.javafx.sg.prism.EffectFilter.render(EffectFilter.java:61)
      at com.sun.javafx.sg.prism.NGNode.renderEffect(NGNode.java:2353)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2040)
      at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1951)
      at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:469)
      at com.sun.javafx.tk.quantum.ViewPainter.paintImpl(ViewPainter.java:324)
      at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:89)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
      at com.sun.javafx.tk.RenderJob.run(RenderJob.java:58)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:129)
      at java.lang.Thread.run(Thread.java:744)
      ERROR: unexpected fbo is bound! Expected 48, but found 20
      java.lang.NullPointerException
      at com.sun.javafx.sg.prism.NGCanvas$RenderBuf.validate(NGCanvas.java:199)
      at com.sun.javafx.sg.prism.NGCanvas.initCanvas(NGCanvas.java:598)
      at com.sun.javafx.sg.prism.NGCanvas.renderContent(NGCanvas.java:575)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2043)
      at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1951)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:225)
      at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:575)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2043)
      at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1951)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:225)
      at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:575)
      at com.sun.javafx.sg.prism.NGNode.renderForClip(NGNode.java:2282)
      at com.sun.javafx.sg.prism.NGNode.renderRectClip(NGNode.java:2176)
      at com.sun.javafx.sg.prism.NGNode.renderClip(NGNode.java:2202)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2037)
      at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1951)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:225)
      at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:575)
      at com.sun.javafx.sg.prism.NGNode.renderForClip(NGNode.java:2282)
      at com.sun.javafx.sg.prism.NGNode.renderRectClip(NGNode.java:2176)
      at com.sun.javafx.sg.prism.NGNode.renderClip(NGNode.java:2202)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2037)
      at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1951)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:225)
      at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:575)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2043)
      at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1951)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:225)
      at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:575)
      at com.sun.javafx.sg.prism.NodeEffectInput.getImageDataForBoundedNode(NodeEffectInput.java:237)
      at com.sun.javafx.sg.prism.NodeEffectInput.filter(NodeEffectInput.java:131)
      at com.sun.scenario.effect.FilterEffect.filter(FilterEffect.java:168)
      at com.sun.scenario.effect.Offset.filter(Offset.java:160)
      at com.sun.scenario.effect.Merge.filter(Merge.java:147)
      at com.sun.scenario.effect.DelegateEffect.filter(DelegateEffect.java:70)
      at com.sun.scenario.effect.impl.prism.PrEffectHelper.render(PrEffectHelper.java:164)
      at com.sun.javafx.sg.prism.EffectFilter.render(EffectFilter.java:61)
      at com.sun.javafx.sg.prism.NGNode.renderEffect(NGNode.java:2353)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2040)
      at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1951)
      at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:469)
      at com.sun.javafx.tk.quantum.ViewPainter.paintImpl(ViewPainter.java:324)
      at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:89)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
      at com.sun.javafx.tk.RenderJob.run(RenderJob.java:58)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:129)
      at java.lang.Thread.run(Thread.java:744)
      ERROR: unexpected fbo is bound! Expected 48, but found 20
      java.lang.IllegalArgumentException: Texture must be non-null
      at com.sun.scenario.effect.impl.prism.PrTexture.<init>(PrTexture.java:38)
      at com.sun.scenario.effect.impl.prism.PrDrawable.<init>(PrDrawab.......

      The code who triggers the problem are to big and complexe to post here. If its needed i can try to compile a stripped down version

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                flar Jim Graham
                Reporter:
                usengewaljfx Uwe Sengewald (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: