Closed
Bug 38033
Opened 24 years ago
Closed 24 years ago
High CPU usage for malformed animated gifs in the left column cause Mozilla to use too much CPU [in 2000 this is 20-30%, in 98/linux it seems to be much worse]
Categories
(Core :: Graphics: ImageLib, defect, P3)
Core
Graphics: ImageLib
Tracking
()
Future
People
(Reporter: timeless, Assigned: pnunn)
References
()
Details
(Whiteboard: [NEED INFO])
Attachments
(3 files)
2000050215 win32-talkback on windows2000 also described on win98 and linux Loading this page [and leaving it open] results i cpu usage well above the normal 0% [windows2000], opening it in the mozilla composer (and closing the browser view) and then deleting the left images (in composer) will restore normal cpu usage, deleting some of the images and scrolling the window offscreen also seems to work (not as well). while the images are present the caret blinks VERY fast. In composer, the images draw strangely [especially Selecting some of these images in composer results in strange drawing. The images involved are poorly designed and have two frames, the first frame is the complete image, the second is a smaller overlay of the text w/ a transparency [white]. I'm guessing that the second [and final] frame of a smaller size is triggering reflow. explicitly declared image dimensions do not improve the situation. This also occurs on Netscape 4.72, but not on IE5.5 [which loads the page w/o any cpu usage penalty]. The gifs appear to have been generated by the gimp.
Images are set to repeat forever and advanced frame every 100ms.
Comment 2•24 years ago
|
||
i've made some backtraces in gdb (on linux) after stopping mozilla when the CPU usage was 100%. see the following attachment.
Comment 3•24 years ago
|
||
Comment 4•24 years ago
|
||
Thanks much for the backtraces. The problem is most severe on unix and a few engineers are looking into it. The most current theory is that nsImage is reused for subsequent frames in the animations rather than creating new ones. For a short animation loop, it may be more useful to create a new nsImage for each frame and keep them around while the animation is running. There are some bugs that are related to this issue. I may group them in to one large bug. and thanks for helping track down this problem. -P
Status: NEW → ASSIGNED
Target Milestone: --- → M16
Comment 6•24 years ago
|
||
Comment 7•24 years ago
|
||
better : here's a complete copy of the original page (with all the images) at http://altern.org/mozillazine/bugs/38033/www.sucs.swan.ac.uk_staff_elect.html
Reporter | ||
Comment 10•24 years ago
|
||
I'm not sure if it is a dupe, but as I can't see where on that bug I would go to reproduce, I would suggest that bug 36785 be marked a dupe of this one if someone decides there is duplication. bug 47212 might be related too.
Comment 11•24 years ago
|
||
altern.org has been shut down. the new url for the copy of the site is now : http://mozillazine-fr.org/bugs/38033/www.sucs.swan.ac.uk_staff_elect.html
Comment 12•24 years ago
|
||
*** This bug has been marked as a duplicate of 36785 ***
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Comment 13•24 years ago
|
||
If this bug is going to be duped on bug 36785, please make sure that the platforms and OSes are set to all...
You need to log in
before you can comment on or make changes to this bug.
Description
•