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

WebView - IllegalArgumentException during window resize operation

XMLWordPrintable

      Created:

      public class BrowserApp extends Application
      {
      public static void main(String[] pArgs)
      {
      Launcher.launch(BrowserApp.class, pArgs);
      }

      @Override
      public void start(Stage pStage)
      {
      BorderPane bpane = new BorderPane();

      WebEngine webe = new WebEngine();
      webe.setUrl("http://www.google.com");

      WebView webv = new WebView(webe);

      bpane.setCenter(webv);

      pStage.setScene(new Scene(bpane));
      pStage.setVisible(true);
      }

      }

      Resized the Window vertical to max screen height and ~ 10px, repeated this action and got:

      java.lang.IllegalArgumentException: fromIndex(0) > toIndex(-800)
      at java.util.Arrays.rangeCheck(Arrays.java:1306)
      at java.util.Arrays.fill(Arrays.java:2465)
      at com.sun.openpisces.OpenPiscesRenderer.reset(OpenPiscesRenderer.java:392)
      at com.sun.prism.impl.shape.OpenPiscesRasterizer.getRenderer(OpenPiscesRasterizer.java:26)
      at com.sun.prism.impl.shape.OpenPiscesRasterizer.setupRenderer(OpenPiscesRasterizer.java:116)
      at com.sun.prism.impl.shape.OpenPiscesRasterizer.getMaskData(OpenPiscesRasterizer.java:73)
      at com.sun.prism.impl.shape.ShapeUtil.rasterizeShape(ShapeUtil.java:47)
      at com.sun.prism.impl.ps.BaseShaderGraphics.fillShape(BaseShaderGraphics.java:241)
      at com.sun.prism.impl.BaseGraphics.fill(BaseGraphics.java:267)
      at com.sun.prism.impl.shape.BasicShapeRep.fill(BasicShapeRep.java:23)
      at com.sun.webpane.sg.prism.WCGraphicsPrismContext.drawPolygon(WCGraphicsPrismContext.java:319)
      at com.sun.webpane.platform.graphics.GraphicsDecoder.decode(GraphicsDecoder.java:111)
      at com.sun.webpane.platform.graphics.WCRenderQueue.decode(WCRenderQueue.java:23)
      at com.sun.webpane.platform.WebPage.paint2GC(WebPage.java:606)
      at com.sun.webpane.platform.WebPage.paint(WebPage.java:585)
      at com.sun.javafx.sg.prism.NGWebView.renderContent(NGWebView.java:83)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:95)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:36)
      at com.sun.javafx.sg.BaseNode.render(BaseNode.java:904)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:142)
      at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:352)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:95)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:36)
      at com.sun.javafx.sg.BaseNode.render(BaseNode.java:904)
      at com.sun.javafx.tk.glass.PrismPen$PaintRunnable.paintImpl(PrismPen.java:185)
      at com.sun.javafx.tk.glass.PrismPen$PaintRunnable.run(PrismPen.java:290)
      at com.sun.javafx.tk.glass.RunnableEvent.run(RunnableEvent.java:13)
      at com.sun.javafx.tk.glass.GlassToolkitImpl.run(GlassToolkitImpl.java:124)
      at java.lang.Thread.run(Thread.java:619)
      Prism Render Thread uncaught: java.lang.IllegalArgumentException

            flar Jim Graham
            rjahnjfx René Jahn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: