-
Bug
-
Resolution: Fixed
-
P4
-
1.2.2, 1.3.0
-
04
-
x86, sparc
-
solaris_7, windows_nt
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2107895 | 1.4.1 | Peter Zhelezniakov | P4 | Closed | Fixed | hopper |
JDK-2107894 | 1.4.0_02 | Peter Zhelezniakov | P4 | Resolved | Fixed | 02 |
This bug originally reported by ###@###.###.
The problem occurs when an animated gif is displayed, and then the window displaying it is still disposed. The GIF continues to eat CPU cycles (quite a lot of them actually). Here is a message describing the test case:
-------------------------------
the testcase loads(place it in the
same location as the class file). After starting the testcase you see a
window with a button labeled "Show Image". Press this button to open a
JWindow containing a JLabel displaying the animated gif. Note the cpu
load while the JWindow is open then watch the cpu load after closing the
window. It should fall to zero since the component displaying the gif is
no longer visible (the JWindow is "disposed" and its ref is null'd, and
the JLabel ref is even null'd!)
--------------------
The test case is attached to this bug report.
Note: I did try this on 1.2 and the CPU usage drops to zero as expected, so this is a regression.
The problem occurs when an animated gif is displayed, and then the window displaying it is still disposed. The GIF continues to eat CPU cycles (quite a lot of them actually). Here is a message describing the test case:
-------------------------------
the testcase loads(place it in the
same location as the class file). After starting the testcase you see a
window with a button labeled "Show Image". Press this button to open a
JWindow containing a JLabel displaying the animated gif. Note the cpu
load while the JWindow is open then watch the cpu load after closing the
window. It should fall to zero since the component displaying the gif is
no longer visible (the JWindow is "disposed" and its ref is null'd, and
the JLabel ref is even null'd!)
--------------------
The test case is attached to this bug report.
Note: I did try this on 1.2 and the CPU usage drops to zero as expected, so this is a regression.
- backported by
-
JDK-2107894 Animated GIF eats CPU when not visible
- Resolved
-
JDK-2107895 Animated GIF eats CPU when not visible
- Closed
- relates to
-
JDK-4147740 In Swing animated gifs cause CPU spin
- Resolved
-
JDK-4253075 Animated GIFs with transparent backgrounds do not work when scaled
- Resolved