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

Exception java.nio.BufferUnderflowException rendering WebView

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Won't Fix
    • Affects Version/s: 7u45
    • Fix Version/s: 7-pool
    • Component/s: javafx
    • Environment:
    • Subcomponent:
      web

      Description

      I'm using a WebView (actually 3 different webviews), and in one of them I'm getting a java.nio.BufferUnderflowException

      Inside the webview I'm using a SVG component, with svgjs library, I also use jQuery/Bootstrap to add tooltips.

      The error happens sometimes (not always) after WebView is updated using "wv.getEngine().executeScript(jsCommand);"

      java.nio.BufferUnderflowException
      at java.nio.Buffer.nextGetIndex(Buffer.java:498)
      at java.nio.DirectByteBuffer.getInt(DirectByteBuffer.java:671)
      at com.sun.webpane.platform.graphics.GraphicsDecoder.getBoolean(GraphicsDecoder.java:435)
      at com.sun.webpane.platform.graphics.GraphicsDecoder.getGradient(GraphicsDecoder.java:471)
      at com.sun.webpane.platform.graphics.GraphicsDecoder.decode(GraphicsDecoder.java:133)
      at com.sun.webpane.platform.graphics.WCRenderQueue.decode(WCRenderQueue.java:67)
      at com.sun.webpane.platform.WebPage.paint2GC(WebPage.java:661)
      at com.sun.webpane.platform.WebPage.paint(WebPage.java:640)
      at com.sun.javafx.sg.prism.NGWebView.renderContent(NGWebView.java:71)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:201)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:40)
      at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1145)
      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:201)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:40)
      at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1145)
      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:201)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:40)
      at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1145)
      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:201)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:40)
      at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1145)
      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:201)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:40)
      at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1145)
      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:201)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:40)
      at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1145)
      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.renderForClip(NGNode.java:443)
      at com.sun.javafx.sg.prism.NGNode.renderRectClip(NGNode.java:334)
      at com.sun.javafx.sg.prism.NGNode.renderClip(NGNode.java:360)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:193)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:40)
      at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1145)
      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:201)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:40)
      at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1145)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:204)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:201)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:40)
      at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1145)
      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:201)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:40)
      at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1145)
      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.renderForClip(NGNode.java:443)
      at com.sun.javafx.sg.prism.NGNode.renderRectClip(NGNode.java:334)
      at com.sun.javafx.sg.prism.NGNode.renderClip(NGNode.java:360)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:193)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:40)
      at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1145)
      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:201)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:40)
      at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1145)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:204)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:201)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:40)
      at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1145)
      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:201)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:40)
      at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1145)
      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:201)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:40)
      at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1145)
      at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:117)
      at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(AbstractPainter.java:182)
      at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:73)
      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:37)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:108)
      at java.lang.Thread.run(Thread.java:744)

        Attachments

          Activity

            People

            • Assignee:
              loneid Leonid Popov (Inactive)
              Reporter:
              duke J. Duke (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: