Last Comment Bug 683284 - (image-suck) [meta] Images suck the snap out of Firefox (memory, flicker, decode/discard heuristics)
(image-suck)
: [meta] Images suck the snap out of Firefox (memory, flicker, decode/discard h...
Status: NEW
[please read comment 1 before adding ...
: footprint, meta, perf
Product: Core
Classification: Components
Component: ImageLib (show other bugs)
: unspecified
: All All
: -- normal with 43 votes (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
Mentors:
: 398983 658922 660577 685821 704680 723390 (view as bug list)
Depends on: 386451 511899 523950 664291 682638 683286 686905 691169 699150 700545 715919 854783 1116359 516320 542158 573583 658790 661304 674547 677727 683290 684091 685516 689411 689623 696680 698969 715308 731419 732820 739245 761113 862602 955884 1115731
Blocks: 660577 679775 682230 701625
  Show dependency treegraph
 
Reported: 2011-08-30 13:15 PDT by Jeff Muizelaar [:jrmuizel]
Modified: 2014-12-29 18:31 PST (History)
67 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments

Description Jeff Muizelaar [:jrmuizel] 2011-08-30 13:15:58 PDT
This is tracking bug for all of the imagey things we do worse at than other browsers.
Comment 1 Jeff Muizelaar [:jrmuizel] 2011-08-30 16:37:17 PDT
I'd like this bug to only address bugs where our behaviour is a clearly wrong compared to other browsers. It's not clear from 124608 what the problem actually is.
Comment 2 Nicholas Nethercote [:njn] 2011-09-27 13:36:05 PDT
*** Bug 398983 has been marked as a duplicate of this bug. ***
Comment 3 Nicholas Nethercote [:njn] 2012-01-09 02:38:33 PST
*** Bug 660577 has been marked as a duplicate of this bug. ***
Comment 4 Robert Ciang 2012-01-15 20:30:56 PST
My Firefox crashes almost 20-30 times during a working day because of imagery memory consumption. I miss the good behaving Firefox before. I can hardly recall when is this happening, but it seems that 7.0 or 8.0 may be a start.
Comment 5 Nicholas Nethercote [:njn] 2012-01-15 20:38:10 PST
> My Firefox crashes almost 20-30 times during a working day because of
> imagery memory consumption.

How do you know it's the memory for images that is the cause?  The only changes to image memory handling that I'm aware of lately should have reduced the memory usage.
Comment 6 Robert Ciang 2012-01-15 20:42:10 PST
Thanks for your correction, and I do not know indeed if it's a consumption problem or not.

But there is indeed problem in Firefox because other related bugs has direct me here.
Comment 7 dindog 2012-01-15 23:18:38 PST
(In reply to Robert Ciang from comment #4)
> My Firefox crashes almost 20-30 times during a working day because of
> imagery memory consumption. I miss the good behaving Firefox before. I can
> hardly recall when is this happening, but it seems that 7.0 or 8.0 may be a
> start.
Not much change since 4.0 on image heavy site, the good old days your mention was 3.6.

And 32bit Windows system is somehow worse, because an application can have only 2GB address space and Firefox will crash when it consumes about 1.5G RAM..
Comment 8 Nicholas Nethercote [:njn] 2012-01-16 19:51:43 PST
I summarized this bug and its dependents in this email thread:
https://groups.google.com/forum/#!topic/mozilla.dev.platform/9JZhTxGlG8k
Comment 9 Justin Lebar (not reading bugmail) 2012-01-17 06:27:32 PST
> My Firefox crashes almost 20-30 times during a working day because of imagery memory consumption.

This is a metabug, for tracking multiple separate problems; it is not for discussing any one issue.  If you have steps which reliably cause you to crash, please file a separate bug and CC me on it; I'll follow up.
Comment 10 Mardeg 2012-02-02 00:56:01 PST
*** Bug 723390 has been marked as a duplicate of this bug. ***
Comment 11 David Rees 2012-03-11 13:56:30 PDT
Bug 659220 which was marked duplicate of bug 660577 which was marked duplicate of this raised a question that I don't see in the remaining live bugs on image consumption. Specifically that DOM/JS image objects are small, even though the images they are holding on to may be large. Since they are small they may not trigger a JS GC, leaving the image layer thinking those images are still in use.
Comment 12 Tim (fmdeveloper) 2012-03-21 14:23:03 PDT
*** Bug 685821 has been marked as a duplicate of this bug. ***
Comment 13 Nickolay_Ponomarev 2012-04-01 11:36:55 PDT
*** Bug 704680 has been marked as a duplicate of this bug. ***
Comment 14 Justin Lebar (not reading bugmail) 2012-04-17 17:34:27 PDT
*** Bug 658922 has been marked as a duplicate of this bug. ***
Comment 15 HyungGon Baek 2012-04-19 23:21:24 PDT
This bug is related huge size about "images/content/used/uncompressed"?
It can reproduce easily in flickr.com slideshow.

Step 1. open this url in 3 more tabs.
http://www.flickr.com/photos/myplanetexperience/7090845767/lightbox/

Step 2. click "play button"

Step 3. 1 hour later, check about:memory

It's a BIG problem in mobile or embedded linux environments.
Thanks,
Comment 16 Kyle Huey [:khuey] (khuey@mozilla.com) 2012-04-19 23:23:35 PDT
(In reply to HyungGon Baek from comment #15)
> This bug is related huge size about "images/content/used/uncompressed"?
> It can reproduce easily in flickr.com slideshow.
> 
> Step 1. open this url in 3 more tabs.
> http://www.flickr.com/photos/myplanetexperience/7090845767/lightbox/
> 
> Step 2. click "play button"
> 
> Step 3. 1 hour later, check about:memory
> 
> It's a BIG problem in mobile or embedded linux environments.
> Thanks,

That's roughly Bug 679775, and the fix is Bug 683290.
Comment 17 HyungGon Baek 2012-04-24 23:14:33 PDT
(In reply to Kyle Huey [:khuey] (khuey@mozilla.com) from comment #16)
> (In reply to HyungGon Baek from comment #15)
> > This bug is related huge size about "images/content/used/uncompressed"?
> > It can reproduce easily in flickr.com slideshow.
> > 
> > Step 1. open this url in 3 more tabs.
> > http://www.flickr.com/photos/myplanetexperience/7090845767/lightbox/
> > 
> > Step 2. click "play button"
> > 
> > Step 3. 1 hour later, check about:memory
> > 
> > It's a BIG problem in mobile or embedded linux environments.
> > Thanks,
> 
> That's roughly Bug 679775, and the fix is Bug 683290.

Thank you very much.
I've applied your patches on ff4.0 and I can't reporduce OOM freezing.

Thanks!!!
Comment 18 Elbart 2014-02-03 02:02:28 PST
Wouldn't these qualify for blocking this bug too?
https://bugzilla.mozilla.org/show_bug.cgi?id=941823
https://bugzilla.mozilla.org/show_bug.cgi?id=523950

Note You need to log in before you can comment on or make changes to this bug.