Closed
Bug 1171371
Opened 9 years ago
Closed 8 years ago
On memory-pressure, remove any stale images from the visible images list
Categories
(Core :: Layout: Images, Video, and HTML Frames, defect)
Core
Layout: Images, Video, and HTML Frames
Tracking
()
RESOLVED
FIXED
mozilla47
Tracking | Status | |
---|---|---|
firefox47 | --- | fixed |
People
(Reporter: seth, Assigned: seth)
References
Details
Attachments
(1 file, 2 obsolete files)
On low memory B2G devices, memory-pressure is not an uncommon situation. We should remove stale images from the visible images list when we enter memory-pressure, because that will allow us to discard those images and hopefully ease the memory pressure. (When I say "stale images" here, I mean images which are in the visible images list, but which are no longer visible.)
Assignee | ||
Comment 1•9 years ago
|
||
Here's the patch, implementing along the lines of our discussion on IRC.
Attachment #8615195 -
Flags: review?(tnikkel)
Assignee | ||
Comment 2•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=369cfedea741
Updated•9 years ago
|
Attachment #8615195 -
Flags: review?(tnikkel) → review+
Comment 3•9 years ago
|
||
I think you need to bump the NS_IPRESSHELL_IID.
Assignee | ||
Comment 4•9 years ago
|
||
This version of the attach bumps NS_IPRESSHELL_IID.
Assignee | ||
Updated•9 years ago
|
Attachment #8615195 -
Attachment is obsolete: true
Comment 5•9 years ago
|
||
Thanks for catching that Mats.
Assignee | ||
Comment 6•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/061363215959
Comment 7•9 years ago
|
||
Backed out for Android testAboutPage crashes. https://treeherder.mozilla.org/logviewer.html#?job_id=10440825&repo=mozilla-inbound https://hg.mozilla.org/integration/mozilla-inbound/rev/227d356ac030
Assignee | ||
Comment 8•9 years ago
|
||
OK, we just needed an additional null check for mPresContext. I have to say I was a little surprised at this, as it looks like other code assumes that mPresContext is non-null, but I confirmed with dbaron that it *can* be non-null in some situations - for example, during page teardown.
Assignee | ||
Updated•9 years ago
|
Attachment #8615455 -
Attachment is obsolete: true
Assignee | ||
Comment 9•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/60963a019905
Assignee | ||
Comment 10•9 years ago
|
||
Comment on attachment 8615728 [details] [diff] [review] On memory-pressure, remove any stale images from the visible images list [Approval Request Comment] Bug caused by (feature/regressing bug #): This patch helps us recover from memory pressure with image locking enabled. We enabled image locking on B2G in bug 1148696. User impact if declined: Images may fail to decode due to low memory, causing blank thumbnails in the gallery which may persist across reboots (making this effectively a data loss issue). This patch is one of several that together fix bug 1166136, which is nominated for blocking 2.2, and bug 1164164, which is a 2.2 blocker. Additionally, this patch should help us recover from memory pressure more easily, no matter what the cause is. Testing completed: Extensively tested locally. On mozilla-inbound and anticipated to land on mozilla-central as of now. Risk to taking this patch (and alternatives if risky): This is a pretty low risk patch. String or UUID changes made by this patch: None.
Attachment #8615728 -
Flags: approval-mozilla-b2g37?
Comment 11•9 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM UTC-4] from comment #7) > Backed out for Android testAboutPage crashes. What he said. https://treeherder.mozilla.org/logviewer.html#?job_id=10453971&repo=mozilla-inbound, backed out in https://hg.mozilla.org/integration/mozilla-inbound/rev/ca87dfad14cf
Assignee | ||
Comment 12•9 years ago
|
||
Comment on attachment 8615728 [details] [diff] [review] On memory-pressure, remove any stale images from the visible images list Hmm, frustrating. Not really sure what's going on here, and unfortunately we're out of time to debug it.
Attachment #8615728 -
Flags: approval-mozilla-b2g37?
Comment 13•9 years ago
|
||
I rebased and pushed to try https://treeherder.mozilla.org/#/jobs?repo=try&revision=809473283162 Looks to be green now. Seth, any reason I shouldn't land this now?
Flags: needinfo?(seth)
Updated•8 years ago
|
Flags: needinfo?(seth)
Comment 15•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/9bf8c3d6ec19
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
Updated•6 years ago
|
Product: Core → Core Graveyard
Updated•6 years ago
|
Product: Core Graveyard → Core
You need to log in
before you can comment on or make changes to this bug.
Description
•