Closed Bug 378788 Opened 17 years ago Closed 17 years ago

SVG rect tag consumes 100% cpu utilization and causes browser hang

Categories

(Core :: SVG, defect)

1.8 Branch
x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: idontwantspam12, Unassigned)

Details

(Keywords: hang)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0

I have an simple SVG doc that contains a rect tag that takes 5 seconds to load while consuming 100% of cpu and hanging the browser.  It happens in Firefox 2.0 on Windows and Linux but did not happen on Firefox 1.5.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink"
     xml:space="preserve" width="100%" height="100%" viewBox="0 0 1000 776" zoomAndPan="disable" preserveAspectRatio="none" >
<g xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">


<rect id="xform" x="77.0" y="117" rx="91000" width="2" height="74472" style="visibility:hidden"/>

</g>
</svg>

Reproducible: Always

Steps to Reproduce:
1. Load the svg in the details.
2.
3.
Actual Results:  
The browser consumes 100% of cpu and hangs while trying to load the svg doc.


I tested on both Windows and Linux, and it happens in firefox 2.0 but not 1.5.

There seems to happen when rx is set but ry is not.  Also, I tried playing around with some of the values, and was seeing the problem when (y + height)/(viewbox y) > 42.5.
Version: unspecified → 2.0 Branch
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a4pre) Gecko/20070422 Minefield/3.0a4pre

I can reproduce this in a Firefox 2.0.0.3 build, but NOT in a current trunk build.
Assignee: nobody → general
Component: General → SVG
Product: Firefox → Core
QA Contact: general → ian
Version: 2.0 Branch → 1.8 Branch
Worksforme. Probably caused and then fixed by successive cairo updates.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: