JDK-8126240 : While web page have animation gif, webengine will throw exception
  • Type: Bug
  • Component: javafx
  • Sub-Component: web
  • Affected Version: fx2.1,7u6,7u7
  • Priority: P4
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2012-06-19
  • Updated: 2015-06-17
  • Resolved: 2012-06-19
Related Reports
Duplicate :  
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)
Comments
Duplicate of RT-21732.
19-06-2012