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)
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)
- duplicates
-
JDK-8126793 Exception when decoding a GIF image
-
- Closed
-