United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6176679 : Application freezes when copying an animated gif image to the system clipboard, win32

Details
Type:
Bug
Submit Date:
2004-10-09
Status:
Open
Updated Date:
2011-01-19
Project Name:
JDK
Resolved Date:
Component:
client-libs
OS:
solaris_9,windows_xp
Sub-Component:
java.awt
CPU:
x86,sparc
Priority:
P4
Resolution:
Unresolved
Affected Versions:
5.0
Targeted Versions:

Related Reports
Duplicate:
Relates:

Sub Tasks

Description
I have implemented my own transferable object that represents an image and it's associated flavors. I am creating a transferable out of an animated gif image and setting it to the System Clipboard through SysClipboard.setConents(). As soon as I call this method, the application freezes and I had to eventually kill it by pressing CTRL+C. This is noticed only on Win32 platforms and not on Solaris / Linux. This is happening only for animated images and not for normal images. This is noticed on Tiger as well as Mustang.

I have attached a sample test. Execute the sample test. You would see a frame with 2 buttons and 2 canvases. One of the canvases will show an animated java logo. Click 'Copy' button. After that, if the frame freezes, the bug is reproduced.
###@###.### 10/9/04 13:51 GMT

                                    

Comments
EVALUATION

The reconstruct method is used in DataTransferer.imageToStandardBytes().

NB. Now we use animation for TryIcon. We should also support animated GIF in frame icons and for the clipboard. One of ideas is to extract all handling for the operations above in a separate animated thread.
                                     
2007-02-05
EVALUATION

The same issue as 4088017 (Animated GIF as Frame's icon image hangs java):
sun.awt.image.ImageRepresentation.reconstruct(ImageObserver.ALLBITS) hangs
if the corresponging image is multiframe.
###@###.### 10/11/04 08:34 GMT
                                     
2004-10-11



Hardware and Software, Engineered to Work Together