JDK-6176679 : Application freezes when copying an animated gif image to the system clipboard, win32
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 5.0
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: solaris_9,windows_xp
  • CPU: x86,sparc
  • Submitted: 2004-10-09
  • Updated: 2011-01-19
Related Reports
Duplicate :  
Relates :  
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