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

WebEngine load some gif image throw exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • fx2.1
    • javafx
    • None
    • Windows 7 x64 javaSE 7u4

    • web

      Looks like a problem with animating this gif file.

      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 throw below exception:
      java.lang.IllegalArgumentException: Image scanlineStride is too small
      at com.sun.prism.Image.<init>(Unknown Source)
      at com.sun.prism.Image.fromByteBgraPreData(Unknown Source)
      at com.sun.prism.ImageFormatTool.convertImageFrame(Unknown Source)
      at com.sun.webpane.sg.prism.WCImageImpl.<init>(Unknown Source)
      at com.sun.webpane.sg.prism.WCImgDecoderImpl.getPrismImage(Unknown Source)
      at com.sun.webpane.sg.prism.WCImgDecoderImpl.getFrame(Unknown Source)
      at com.sun.webpane.platform.WebPage.twkUpdateContent(Native Method)
      at com.sun.webpane.platform.WebPage.updateDirty(Unknown Source)
      at com.sun.webpane.platform.WebPage.updateContent(Unknown Source)
      at com.sun.javafx.sg.prism.NGWebView.update(Unknown Source)
      at javafx.scene.web.WebView.handleStagePulse(Unknown Source)
      at javafx.scene.web.WebView.access$100(Unknown Source)
      at javafx.scene.web.WebView$2.pulse(Unknown Source)
      at com.sun.javafx.tk.Toolkit.firePulse(Unknown Source)
      at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(Unknown Source)
      at com.sun.javafx.tk.quantum.QuantumToolkit$8.run(Unknown Source)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.access$100(Unknown Source)
      at com.sun.glass.ui.win.WinApplication$2$1.run(Unknown Source)
      at java.lang.Thread.run(Thread.java:722)

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

              Created:
              Updated:
              Resolved:
              Imported: