Closed Bug 854783 Opened 7 years ago Closed 2 years ago

[Gallery] avoid OOM crashes

Categories

(Firefox OS Graveyard :: Gaia::Gallery, defect)

x86
macOS
defect
Not set

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: djf, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

(Whiteboard: [priority])

The gallery app tries to defend against OOMs as well as it can, but needs gecko support to do so effectively.  Currently 5 megapixel images that do not have sufficiently large EXIF images cannot really be supported without risking out of memory crashes. Gallery currently is forced to rely on inherently unreliable (and ridiculous) heuristics like arbitrary timeouts to give gecko time to release image memory in an attempt to avoid crashes.  

Gallery currently ignores images > 5 megapixels because it cannot reliably display them without crashes, and it may actually have to reduce this limit. Given that we will soon be running on hardware with cameras that can take > 5mp images, this is a problem.

I'm creating this as a metabug.
Depends on: 854784
Depends on: 854795
Depends on: 854799
I've added three specific bugs under this meta bug.

Cc'ing Justin because he knows about imagelib. Justin, could you cc appropriate people for this bug?
Duplicate of this bug: 858886
Whiteboard: [priority]
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.