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

While web page have animation gif, webengine will throw exception

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4
    • None
    • fx2.1, 7u6, 7u7
    • javafx
    • JavaFX 2.2 b13

    • web

    Description

      Looks like a problem with animating gif file.

      example:



      package hs.mediasystem;
       
      import javafx.application.Application;
      import javafx.scene.Scene;
      import javafx.scene.web.WebView;
      import javafx.stage.Stage;
       
      public class WebviewTest extends Application {
        public static void main(String[] args) {
          launch(args);
        }
       
        @Override
        public void start(Stage stage) throws Exception {
       
          WebView view = new WebView();
       
          view.getEngine().load("http://w133.hg3088.com/images/member/NewtoOld_chs.gif");
       
          Scene scene = new Scene(view);
       
          stage.setScene(scene);
       
          stage.show();
        }
      }


      Will always throw below exception in JavaFX 2.2(curretly build b13)

      java.lang.ArrayIndexOutOfBoundsException: 34346
      at com.sun.javafx.image.impl.BaseByteToByteConverter$FourByteReorderer.doConvert(BaseByteToByteConverter.java:236)
      at com.sun.javafx.image.impl.BaseByteToByteConverter.convert(BaseByteToByteConverter.java:97)
      at com.sun.javafx.image.impl.BaseByteToByteConverter$FourByteReorderer.convert(BaseByteToByteConverter.java:212)
      at com.sun.prism.Image.convertImageFrame(Image.java:162)
      at com.sun.webpane.sg.prism.WCImageImpl.<init>(WCImageImpl.java:106)
      at com.sun.webpane.sg.prism.WCImgDecoderImpl.getPrismImage(WCImgDecoderImpl.java:270)
      at com.sun.webpane.sg.prism.WCImgDecoderImpl.getFrame(WCImgDecoderImpl.java:230)
      at com.sun.webpane.platform.WebPage.twkUpdateContent(Native Method)
      at com.sun.webpane.platform.WebPage.updateDirty(WebPage.java:345)
      at com.sun.webpane.platform.WebPage.updateContent(WebPage.java:609)
      at com.sun.javafx.sg.prism.NGWebView.update(NGWebView.java:52)
      at javafx.scene.web.WebView.handleStagePulse(WebView.java:897)
      at javafx.scene.web.WebView.access$200(WebView.java:81)
      at javafx.scene.web.WebView$2.pulse(WebView.java:209)
      at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:360)
      at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:460)
      at com.sun.javafx.tk.quantum.QuantumToolkit$9.run(QuantumToolkit.java:329)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
      at com.sun.glass.ui.win.WinApplication$2$1.run(WinApplication.java:62)
      at java.lang.Thread.run(Thread.java:722)

      Attachments

        Issue Links

          Activity

            People

              peterz Peter Zhelezniakov
              ozoujfx Owen Zou (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: