Bug 560298

Summary: [GTK] SWT-ImageLoader load animated Gif produce wrong index order
Product: [Eclipse Project] Platform Reporter: Sunneo IceCold <sunneo529>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: loskutov, paul-eclipse, Tobias.Steger
Version: 4.14Keywords: needinfo
Target Milestone: ---   
Hardware: PC   
OS: Linux   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=545032
Whiteboard:
Attachments:
Description Flags
example program
none
countdown animated gif from https://www.pinterest.com/pin/843087992729329007/
none
generated png files in wrong order none

Description Sunneo IceCold CLA 2020-02-18 22:03:30 EST
after ImageLoader.load() invoked, the imageLoader.data[index] contains frames with wrong order. 

this issue occurred only on Linux, while it works normally on Windows.
Comment 1 Andrey Loskutov CLA 2020-02-20 14:35:26 EST
Thanks for the report. Which exact Eclipse version do you have? Can you please attach a small snippet demonstrating the problem?
Comment 2 Sunneo IceCold CLA 2020-02-24 22:27:30 EST
Created attachment 281914 [details]
example program

this program is cloned from http://www.java2s.com/Tutorial/Java/0300__SWT-2D-Graphics/DisplayananimatedGIF.htm

while it will save frame into /tmp/[index].png after loaded a gif file.
Comment 3 Paul Pazderski CLA 2020-02-25 02:39:33 EST
GTK-SWT is the only which use platform capabilities instead of pure java based implementation for image processing. If you tried it with a recent version and it works on Windows but not on Linux it is most likely related to that.

You may also attach the gif you tried. I tried SWT Snippet194 to create a gif and Snippet141 to load that gif. It failed on Linux...
I also tried one of the gif I made recently made for Eclipse [1]. That worked with Snippet141 and produce png files in correct order using your example.


[1] https://www.eclipse.org/eclipse/news/4.14/platform.php#control-character-console
Comment 4 Sunneo IceCold CLA 2020-02-26 13:57:29 EST
Created attachment 281942 [details]
countdown animated gif from https://www.pinterest.com/pin/843087992729329007/

here's a count down animated gif retrived from 
https://www.pinterest.com/pin/843087992729329007/
Comment 5 Sunneo IceCold CLA 2020-02-26 14:05:29 EST
Created attachment 281943 [details]
generated png files in wrong order

attachment is the output of snippet 

my test platform/environment: 
Xubuntu 18.04
openjdk 11.0.4
eclipse 2019.12