Closed Bug 1382993 Opened 7 years ago Closed 7 years ago

exhaustive memory consumption on animated gif

Categories

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

54 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 523950

People

(Reporter: seleko, Unassigned)

Details

(Keywords: perf, Whiteboard: [gfx-noted])

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0
Build ID: 20170629000000

Steps to reproduce:

Open image by URL http://mobile-review.com/news/wp-content/uploads/2017/07/GREAT-Invitation_main_1.gif



Actual results:

Firefox starting to occupy about 1Gb of memory.

Firefox 54.0.1 20170629000000
Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0
Linux 4.10.11-1.gbd70196-default



Expected results:

Vivaldi uses only 100 Mb on same image.
Component: Untriaged → ImageLib
Keywords: perf
Product: Firefox → Core
:aosmond, can you comment to the bug?
Flags: needinfo?(aosmond)
Whiteboard: [gfx-noted]
It has 572 frames at 1920x1080 bytes. While each frame remains paletted, and thus 1 byte per pixel (except the first frame which is 4 bytes per pixel), it still allocates a full sized buffer for each frame. (4 * 1 + 1 * 571 * 1920 * 1080) = ~1.11 GB. We can definitely do better than this, but this is not unexpected given the current implementation.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(aosmond)
Priority: -- → P3
A fix is in the works for this, tracking as part of bug 523950.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.