Closed
Bug 1167849
Opened 10 years ago
Closed 10 years ago
Crash and High memory usage when resizing a window with a large image in background
Categories
(Core :: General, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: toadyshadow101, Unassigned)
References
Details
Attachments
(2 files, 1 obsolete file)
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0
Build ID: 20150513174244
Steps to reproduce:
Set a background-image to html element with image size 1920 x 1080p then resized the browser window.
Actual results:
memory consumption went very high and if you continually resize the browser window it reaches over 3gb then crashes.
If you close the tab that the background image was in it releases the consumed ram.
Expected results:
The ram should not have went over 3gb causing crash.
See below attached html document and video.
Here are 2 crash reports:
https://crash-stats.mozilla.com/report/index/992152f2-498d-4a60-bce6-fbf0a2150523
https://crash-stats.mozilla.com/report/index/d6e57468-e44d-45ff-82b8-84b742150523
Affects the following:
stopped testing at 36.0.4
36.0.4
37.0.1
37.0.2
38.0
38.0.1
38.0.5
39.0b1
Fixed in:
40.0a2
41.0a1
However these builds scale the CPU update 50%-80% but no large memory foot print, Same in both normal and e10s mode.
Flags: needinfo?(gijskruitbosch+bugs)
Comment 2•10 years ago
|
||
Seth, can you triage this beyond just my "this is something gfx/imglib-y" gut feeling? :-)
Flags: needinfo?(gijskruitbosch+bugs) → needinfo?(seth)
Product: Firefox → Core
Comment 3•10 years ago
|
||
Toady, thanks for the bug report! A couple of tips: for bugs involving memory usage like this one, uploading an about:memory report is very handy. Also, instead of using a tool like 7zip, please upload each file individually unless there are huge numbers of files.
I'm pretty confident that this got fixed by bug 1124084. After bug 1124084, we are using downscale-during-decode to rescale this image and not the old HQ scaling code, and downscale-during-decode is much smarter about memory management.
That's not upliftable, so we'll unfortunately have to wait for Firefox 40 for a fix for this. I'm not confident I can write a patch for Firefox 39 and below that will fix this without causing new issues.
Depends on: 1124084
Flags: needinfo?(seth)
Comment 4•10 years ago
|
||
Comment 5•10 years ago
|
||
Attachment #8609740 -
Attachment is obsolete: true
Comment 6•10 years ago
|
||
Since this is fixed in Firefox 40, I'm going to go ahead and resolve this.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Comment 7•10 years ago
|
||
It'd be ideal to reduce the CPU usage in this case as well. Bug 1169060 should help; I'm already working on that for other reasons. I'll add it to the See Also list for this bug.
See Also: → 1169060
(In reply to Seth Fowler [:seth] from comment #3)
> Toady, thanks for the bug report! A couple of tips: for bugs involving
> memory usage like this one, uploading an about:memory report is very handy.
> Also, instead of using a tool like 7zip, please upload each file
> individually unless there are huge numbers of files.
>
> I'm pretty confident that this got fixed by bug 1124084. After bug 1124084,
> we are using downscale-during-decode to rescale this image and not the old
> HQ scaling code, and downscale-during-decode is much smarter about memory
> management.
>
> That's not upliftable, so we'll unfortunately have to wait for Firefox 40
> for a fix for this. I'm not confident I can write a patch for Firefox 39 and
> below that will fix this without causing new issues.
Hi Seth
Thanks for the tips and will do for next time. :)
Comment 9•7 years ago
|
||
Moving from Core::Untriaged to Core::General https://bugzilla.mozilla.org/show_bug.cgi?id=1407598
Component: Untriaged → General
You need to log in
before you can comment on or make changes to this bug.
Description
•