4xx / svg-edit

Automatically exported from code.google.com/p/svg-edit
MIT License
0 stars 0 forks source link

Big problem loading a file (attached) #476

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Save the attached file Venus and Adonis.svg on your computer

In Firefox 3.6+
1. Launch SVG-edit
2. Do Main menu / Open File / Choose Venus and Adonis.svg
3. Wait

Firefox 3.6+ / Windows:

A message pops-up:
A script on this page may be busy, or it may have stopped responding. You
can stop the script now, or you can continue to see if the script will
complete.

Script: file:///C://SVG-edit_trunk/editor/svg-editor.js:2714

-----

In Opera 10 final / Windows :

1. Open the attached file Venus and Adonis.svg
2. Copy the source in the SVG-edit source editor
3. Click Apply
4. Wait
====> Nothing happens. No special error in the error console :-(

Original issue reported on code.google.com by worms_...@yahoo.com on 12 Feb 2010 at 11:22

Attachments:

GoogleCodeExporter commented 9 years ago
Are you sure you have the right file?

I was able to load this file in both Firefox 3.6, Opera 10.  Though I admit 
that it
takes awhile (few seconds) for it to come up in Firefox 3.6 and then the 
browser is
pretty sluggish.  The Layers panel takes about 2 seconds to open up. I wonder if
we've reached some memory limit in the browser with all that opacity...  When I 
hide
the "Calque 2" layer, suddenly everything becomes snappy again.

I tried an earlier revision and nothing seems to have changed (browser is still 
slow
but it loads).

I should note that my machine is a pretty new Macbook Pro (i.e. fast).

In Chrome it gave an error in the parsed source.  Not sure why yet.  When I 
click
'Ok' it shows me the document with a large image which is because of the 
following in
the source:

  <image
xlink:href="file:///C:/Documents%20and%20Settings/XP/Mes%20documents/diocs/verte
x/SVGeDrawings/deveria-venus-and-adonis_01.jpg"
id="svg_5" height="639.471054" width="1208.999981" y="-30.794594" 
x="-200.999069"/>

I wonder if you click "Continue" in that dialog of Firefox if eventually you'll 
see
the image.  I also wonder if because i don't have the raster (jpg) that things 
are
faster for me because the browser doesn't have to blend so many pixels or 
something...

If you it does come up for you, try hiding the Calque 2 layer and saving, see 
if that
improves things?

Original comment by codedr...@gmail.com on 12 Feb 2010 at 2:48

GoogleCodeExporter commented 9 years ago
Also, if you want to attach the jpg, I can put this on my hard drive and update 
the
SVG to point to it, to see if have the same problem...

Original comment by codedr...@gmail.com on 12 Feb 2010 at 3:21

GoogleCodeExporter commented 9 years ago
I am attaching the jpg.

I don't think it's a memory problem due to the file size itself, because this 
file is
only 123 Kb and I've made much bigger files previously. Firefox is only using 
70 000
Kb CPU when I load the file, and my CPU is overall at about 40% with all the 
other
processes running.

The only "strange" thing I did in this file is use the open/close path in the 
layer
"sky" on the big swan, to close the path.
I've deleted it in the file Venus and Adonis_no_closed_path.svg attached. When 
I open
this file, I do not get the unresponsive script error, so maybe that's the 
cause?
The removed (closed with the function open/close) path was (we really need to 
be able
to give IDs to stuff :p ):

  <path opacity="0.35" stroke="#c0c0c0" fill="#ffffff" id="svg_72"
d="m497.014954,139.925369c4.850739,-10.820892 1.119385,-24.253731
-12.686584,-29.477608c-6.878876,-2.98275 -7.500977,-6.404213
-6.343292,-9.701492c3.974518,4.541451 7.395966,5.630104
9.417755,4.696968l3.268799,-3.577568c-1.24704,-4.509521 -5.290588,-7.464417
-10.447754,-6.343292c-4.796173,-0.032486 -7.128998,1.367203
-8.582092,4.104492c-1.657318,5.194283 0.831024,8.615738
2.611938,10.447754c3.351288,4.8554 4.308838,6.573105
2.573669,9.987587l-25.816467,2.488327c-6.998474,4.976685 -9.331268,9.331268
-12.752747,12.908249c-4.665619,3.110428 -4.199066,5.754288 0.920929,7.078522z"/>

Hiding the layer Calque 2 doesn't do a noticeable difference on my machine.

Original comment by worms_...@yahoo.com on 12 Feb 2010 at 4:54

Attachments:

GoogleCodeExporter commented 9 years ago
Argh, stupid G$$glecode :p
Here is the jpg file.

Original comment by worms_...@yahoo.com on 12 Feb 2010 at 4:55

Attachments: