Bug 560298 - [GTK] SWT-ImageLoader load animated Gif produce wrong index order
Summary: [GTK] SWT-ImageLoader load animated Gif produce wrong index order
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.14   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2020-02-18 22:03 EST by Sunneo IceCold CLA
Modified: 2020-09-15 00:26 EDT (History)
3 users (show)

See Also:


Attachments
example program (5.94 KB, text/x-java)
2020-02-24 22:27 EST, Sunneo IceCold CLA
no flags Details
countdown animated gif from https://www.pinterest.com/pin/843087992729329007/ (280.90 KB, image/gif)
2020-02-26 13:57 EST, Sunneo IceCold CLA
no flags Details
generated png files in wrong order (390.02 KB, application/x-zip-compressed)
2020-02-26 14:05 EST, Sunneo IceCold CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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