Closed Bug 1234023 Opened 9 years ago Closed 6 years ago

certain animated gif becomes gray after within 10sec

Categories

(Core :: Graphics: ImageLib, defect, P3)

defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: alice0775, Unassigned)

References

(Depends on 1 open bug, )

Details

(Whiteboard: [gfx-noted])

It seems calculation of memory usage is too safe side. Reproducible: always Steps to reproduce: 1. Clear cache 2. Open URL http://www.squarefree.com/bug523950/523950.gif 3. Wait for 10sec Actual results: Becomes gray after within 10sec Expected results: Animated properly (but memory usage is approx. 2.5GB) Regression window: https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=7a63a3b1bd61&tochange=914258721d1f Triggered by: 914258721d1f Seth Fowler — Bug 1155332 - If we don't have enough memory to fully decode an image, discard it immediately. r=tn https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=04a3f1ef4fbb&tochange=bbe25ecbebda
This happens on Firefox 64-bit, with plenty of spare RAM available (about 8GB unused). It's nowhere close to actually running out of memory when this happens.
Flags: needinfo?(snorp)
Whiteboard: [gfx-noted]
Bas, did you intend to NI Seth?
Flags: needinfo?(snorp) → needinfo?(seth)
Jet, can you help get movement here?
Flags: needinfo?(bugs)
(In reply to Alice0775 White from comment #0) > Expected results: > Animated properly (but memory usage is approx. 2.5GB) Really? I don't agree that allowing any GIF to bloat to 2.5GB is a good user experience. This behavior certainly led to OOM crashes in the past that we've fixed in bug 1155332. Before that bug was fixed, the GIF decoder was already returning memory errors that we'd ignore and destabilize Firefox later in the session.
Flags: needinfo?(bugs)
Yeah, we will not fix this by increasing the memory limit for decoded images. The ongoing work to decode animated images in the media framework (which means that we only need to allocate memory for a few frames, not every frame in the image) should fix this. I'm blocking this bug appropriately. (I'm forced to remove the block on bug 1155332, because it would create a circular dependency.)
No longer blocks: 1155332
Depends on: 1257388
Flags: needinfo?(seth)
Removing the regression keyword because this was due to an intentional change, not an unintended regression.
Keywords: regression
We put a hard maximum of 4GB (as in, 32-bit pointer), regardless of the OS.

Cannot reproduce, is it resolved?

Flags: needinfo?(alice0775)

no longer reproduced on Nightly67.0a1 Windows10

Status: NEW → RESOLVED
Closed: 6 years ago
Flags: needinfo?(alice0775)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.