Closed Bug 591894 Opened 15 years ago Closed 11 years ago

Temporary hang loading an SVG that uses a considerably scaled up pattern containing a PNG image

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: thomas.papin, Unassigned)

References

(Depends on 1 open bug, )

Details

(Keywords: hang, perf, Whiteboard: [in-the-wild] [external-report] [testday-20110902])

Attachments

(3 files)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.127 Safari/533.4 Build Identifier: Firefox 3.6.8 Ubuntu I created a SVG that is using a pattern image. When I load it into firefox, the system is freezing. Using Top command, I can see that Xorg is using 100 % of CPU, if I kill the firefox process, I wait 2 min, the system is back. The same SVG can be load correctly on Google Chrome and Inkscape. Reproducible: Always Steps to Reproduce: 1. Just open http://www.joomprod.com/map8.svg Actual Results: System Freeze Expected Results: Display the SVG
The URL provided in step 1 is 404 not found for me.
Sorry, The file was removed, I added it again to the same URL http://www.joomprod.com/map8.svg
Component: General → SVG
Product: Firefox → Core
QA Contact: general → general
What driver are you using? This certainly sounds like a driver bug (Chrome does its rendering client-side instead of offloading to the X server, so doesn't hit driver bugs as much at the expense of slower rendering with decent drivers).
I am using another PC (no more at work) But same problem here with Ubuntu 10.4 Firefox 3.6.8 Here I am using NVIDIA Drivers: 195.36.24 Same problem also on WINDOWS VISTA: Mozilla/5.0 (Windows; U; Windows NT 6.0; fr; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729; .NET4.0C) In fact, my description is not perfect. It's not freezing. On Linux: All the system become slow, I cannot do anything,(even if I wait a long time). The only way, to restore is to used another computer with ssh to kill the firefox process. With top command I can see X server : 100% CPU On Windows: Only the firefox application crashes. I think the error is linked to my "pattern" in the SVG. Maybe a special case, make an exception or infinite loop in the system
Ah, thanks. Doesn't sound like an xorg-specific issue, then. Would be good to get a reduced testcase (sounds like should be doable on windows). Martijn, do you have time for that?
Just another information In my SVG, if you remove the width and height properties of the <pattern> tag the SVG is loaded without firefox crash. If you check also the viewbox of the SVG (xmin,ymin,width,height), you will see that the width and height is small about <2. And my pattern width is about 50. I will try tomorrow at work to isolate the issue in a small SVG. Even if I found another way to write the SVG without bug. :)
Mozilla/5.0 (X11; Linux i686; rv:8.0a1) Gecko/20110809 Firefox/8.0a1 Are you still able to see this on the latest trunk? http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/
URL is broken again. Thomas, if you still have the file, could you attach it to this bug using the "Add an attachment" link?
Hello, I will try to check if I can found again a copy of this file tomorrow
(In reply to thomas.papin from comment #9) > I will try to check if I can found again a copy of this file tomorrow Hello. Any news?
Whiteboard: [testday-20110902]
Ok, I found the file again: http://www.joomprod.com/map8.svg Be careful, this will freeze your linux system. It's working great on chrome It's still freezing using Firefox 6.0.1
Attached image Map8.svg
(In reply to thomas.papin from comment #12) > Map8.svg Thanks, Thomas. Confirmed on Debian GNU/Linux x86_64 with Firefox 7.0b2 Mozilla/5.0 (X11; Linux x86_64; rv:9.0a1) Gecko/20110901 Firefox/9.0a1 It also makes X.Org use a lot of RAM. Adding "image/png" to the data: URLs does not change it.
Keywords: perf
Reproduced in Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/16.0 Firefox/16.0 BuildID: 20120713030548 on Arch Linux, nVidia 9600gt, drivers version 302.17
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Hardware: x86 → All
Summary: Xorg Freeze (100%CPU) Due to the loading of a SVG using Pattern → Temporary hang loading an SVG that uses a considerably scaled up pattern containing a PNG image
Possibly a dupe of bug 465087.
Depends on: 465087
Whiteboard: [testday-20110902] → [in-the-wild] [external-report] [testday-20110902]
Seems to work okay since at least Firefox 19. There was a marked improvement between 17 and 19. I didn't test further (or builds prior to 17) so I don't know exactly what fixed this.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: