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)

defect

Tracking

()

VERIFIED DUPLICATE of bug 36785
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.
i've made some backtraces in gdb (on linux) after stopping mozilla when the CPU
usage was 100%. see the following attachment.
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
Target Milestone: M16 → M17
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
moving to m18
Target Milestone: M17 → M18
Keywords: nsbeta3
Hmmm... Pam is this a dup of bug 36785?
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.
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
Target Milestone: M18 → Future
Whiteboard: [NEED INFO]

*** This bug has been marked as a duplicate of 36785 ***
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
If this bug is going to be duped on bug 36785, please make sure that the 
platforms and OSes are set to all...
Verified
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: