Open Bug 2020096 Opened 3 months ago Updated 2 months ago

large SVG consumes all system resources

Categories

(Core :: Graphics, defect, P2)

Firefox 147
defect

Tracking

()

People

(Reporter: matty.kuhn.1, Unassigned, NeedInfo)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0

Steps to reproduce:

open this svg: https://upload.wikimedia.org/wikipedia/commons/e/ee/Open_street_map_Central_Athens.svg

Actual results:

on linux: the image started to load in bits and pieces, and eventually stopped, with instant 30+ GB memory usage (hard to get accurate number because entire system crawled to a hal)
on windows: even less ability to gather information, and image didn't even start to load

Expected results:

on chrome: image loads fine

The Bugbug bot thinks this bug should belong to the 'Core::Graphics: WebRender' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Graphics: WebRender
Product: Firefox → Core

This is perhaps the worst performance I've seen Firefox have for an svg. Be careful opening it, it might be hard to recover your system from the hang.

Severity: -- → S2
Component: Graphics: WebRender → Graphics: ImageLib
Flags: needinfo?(nical.bugzilla)
Priority: -- → P2

Might be up in Layout as well, not sure.

The testcast is rendering an svg file directly, not through an img element or other image means. I think the slowdown is due to our webrender fallback behaviour; webrender does not support svg's natively. So I think graphics is the right component.

Component: Graphics: ImageLib → Graphics
Status: UNCONFIRMED → NEW
Ever confirmed: true
You need to log in before you can comment on or make changes to this bug.