Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8
    • Component/s: javafx
    • Environment:

      Windows 8 / Linux (Fedora 19)

    • Subcomponent:
      web

      Description

      The problem is in Java 8.

      We open a WebView and we load :
      <!DOCTYPE html>
      <html>
          <head>
              <script src="http://maps.google.com/maps/api/js?key=privatekey&sensor=true"></script>
              <style>
                  html, body {
                      height: 100%;
                      width: 100%;
                  }
                  #mapcanvas { height: 100%; width: 100%}
              </style>
              <script type='text/javascript'>

                  var map;
                  function loadmap() {
                      var options = {
                          zoom: 6,
                          center: new google.maps.LatLng(48.856667, 2.350987),
                          mapTypeId: google.maps.MapTypeId.ROADMAP
                      };
                      map = new google.maps.Map(document.getElementById("mapcanvas"), options);
                  }
              </script>

          </head>
          <body onload="loadmap()">
              <div id="mapcanvas"></div>
              <!-- <script type='text/javascript' src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js&#39;&gt;&lt;/script&gt;-->

          </body>

      </html>

      it works but when we navigate and zoom in/out we have this error:
      java.lang.NullPointerException
      at com.sun.javafx.webkit.prism.RTImage.getTexture(RTImage.java:58)
      at com.sun.javafx.webkit.prism.RTImage.getGraphics(RTImage.java:46)
      at com.sun.javafx.webkit.prism.WCBufferedContext.init(WCBufferedContext.java:36)
      at com.sun.javafx.webkit.prism.WCBufferedContext.getGraphics(WCBufferedContext.java:25)
      at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$Composite.paint(WCGraphicsPrismContext.java:1287)
      at com.sun.javafx.webkit.prism.WCGraphicsPrismContext.clearRect(WCGraphicsPrismContext.java:438)
      at com.sun.webkit.graphics.GraphicsDecoder.decode(GraphicsDecoder.java:103)
      at com.sun.webkit.graphics.WCRenderQueue.decode(WCRenderQueue.java:69)
      at com.sun.webkit.graphics.WCRenderQueue.decode(WCRenderQueue.java:80)
      at com.sun.webkit.graphics.WCRenderQueue.decode(WCRenderQueue.java:86)
      at com.sun.webkit.graphics.GraphicsDecoder.decode(GraphicsDecoder.java:322)
      at com.sun.webkit.graphics.WCRenderQueue.decode(WCRenderQueue.java:69)
      at com.sun.webkit.WebPage.paint2GC(WebPage.java:669)
      at com.sun.webkit.WebPage.paint(WebPage.java:637)
      at com.sun.javafx.sg.prism.NGWebView.renderContent(NGWebView.java:73)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2028)
      at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1937)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:225)
      at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1168)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2028)
      at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1937)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:225)
      at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1168)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2028)
      at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1937)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:225)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2028)
      at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1937)
      at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:472)
      at com.sun.javafx.tk.quantum.ViewPainter.paintImpl(ViewPainter.java:324)
      at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:88)
      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:724)
      java.lang.NullPointerException
      at com.sun.javafx.webkit.prism.RTImage.getTexture(RTImage.java:58)
      at com.sun.javafx.webkit.prism.RTImage.draw(RTImage.java:92)
      at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$7.doPaint(WCGraphicsPrismContext.java:693)
      at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$Composite.paint(WCGraphicsPrismContext.java:1302)
      at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$Composite.paint(WCGraphicsPrismContext.java:1287)
      at com.sun.javafx.webkit.prism.WCGraphicsPrismContext.drawImage(WCGraphicsPrismContext.java:700)
      at com.sun.webkit.graphics.GraphicsDecoder.drawImage(GraphicsDecoder.java:408)
      at com.sun.webkit.graphics.GraphicsDecoder.decode(GraphicsDecoder.java:166)
      at com.sun.webkit.graphics.WCRenderQueue.decode(WCRenderQueue.java:69)
      at com.sun.webkit.WebPage.paint2GC(WebPage.java:669)
      at com.sun.webkit.WebPage.paint(WebPage.java:637)
      at com.sun.javafx.sg.prism.NGWebView.renderContent(NGWebView.java:73)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2028)
      at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1937)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:225)
      at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1168)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2028)
      at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1937)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:225)
      at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1168)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2028)
      at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1937)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:225)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2028)
      at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1937)
      at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:472)
      at com.sun.javafx.tk.quantum.ViewPainter.paintImpl(ViewPainter.java:324)
      at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:88)
      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:724)
      java.lang.IllegalStateException: Unbalanced saveState/restoreState
      at com.sun.javafx.webkit.prism.WCGraphicsPrismContext.dispose(WCGraphicsPrismContext.java:1576)
      at com.sun.javafx.webkit.prism.WCPageBackBufferImpl.disposeGraphics(WCPageBackBufferImpl.java:40)
      at com.sun.webkit.WebPage.paint(WebPage.java:639)
      at com.sun.javafx.sg.prism.NGWebView.renderContent(NGWebView.java:73)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2028)
      at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1937)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:225)
      at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1168)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2028)
      at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1937)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:225)
      at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1168)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2028)
      at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1937)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:225)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2028)
      at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1937)
      at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:472)
      at com.sun.javafx.tk.quantum.ViewPainter.paintImpl(ViewPainter.java:324)
      at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:88)
      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:724)

      Where the problem come from ?

        Attachments

          Activity

            People

            • Assignee:
              peterz Peter Zhelezniakov (Inactive)
              Reporter:
              oflorianjfx Oliver Florian (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: