Closed Bug 1545040 Opened 5 years ago Closed 1 year ago

SVG file found in the wild hangs all firefox tabs

Categories

(Core :: SVG, defect, P3)

66 Branch
Unspecified
Windows 10
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: bug, Unassigned)

Details

(Keywords: hang)

Attachments

(4 files)

Attached image int_to_float.svg

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36

Steps to reproduce:

  1. Open one of these webpages (opening the svgs locally does not appear to reliably trigger the hang):

https://github.com/Eugenio-Bruno/svg_crashing_ff/blob/master/original.svg
https://github.com/Eugenio-Bruno/svg_crashing_ff/blob/master/int_to_float.svg

Actual results:

On windows 10 x64:

Every tab, including that one, hangs, and just shows a loading wheel (even if the tab was previously correctly rendered).

On a windows 10 VM this does not happen.

I noticed that these files have a path with huge numbers (>2^50). I hacked together a script to make them smaller (hack.py), resulting in this file which seems not to hang:

https://github.com/Eugenio-Bruno/svg_crashing_ff/blob/master/smaller_nums.svg

Expected results:

Firefox should not hang.

Attached image original.svg
Attached image smaller_nums.svg
Attached file hack.py
Component: Untriaged → SVG
Product: Firefox → Core

I couldn't reproduce on Ubuntu.

I forgot to mention this, but so far, I've been able to reproduce this only on a physical Windows 10 machine. I can't reproduce on a windows 10 VM, I can't reproduce on linux (I've checked on Antergos), and a friend couldn't reproduce on OSX.

OS: Unspecified → Windows 10
Keywords: hang
Priority: -- → P3
Severity: normal → S3

The files in comment 0 have gone, the testcases in the bug don't hang for me.

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Resolution: --- → INCOMPLETE
Resolution: INCOMPLETE → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: