inkscape hangs indefinitely during save; file destroyed

Bug #1491911 reported by Peri Hartman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Expired
Undecided
Unassigned

Bug Description

Sometimes when I save my drawing, inkscape hangs indefinitely. Eventually I have to kill the app and when I try to open the file afterwards, it shows up as blank. Also, if I try to open it in gimp, I get an error message:

Opening '(redacted)\action_refresh.svg' failed: Could not open '(redacted)\action_refresh.svg' for reading: Error domain 1 code 5 on line 131 column 67 of file:///C:/(redacted): Extra content at the end of the document

My drawing is very simple. It is a refresh symbol, consisting of an arc with a strokewidth of 3 and a gap of about 45 degrees. It also has an equilateral triangle superimposed at the end of the arc. The triangle is solid.

Sometimes I'm able to save but encounter the previously reported bug of a 20-30 second delay. I've repeated the bug I'm reporting 3 times (and have rebuilt my drawing 3 times).

Tags: saving win64
Revision history for this message
Peri Hartman (perih) wrote :
description: updated
Revision history for this message
su_v (suv-lp) wrote :

Please add information about OS/platform and Inkscape version to the bug description, thank you. If on Windows, please also include details about the installer package used for Inkscape 0.91: 32bit or 64bit?

With regard to the problematic file - please share more details about the origins and editing history of the drawing you are attempting to edit and save in Inkscape (the corrupt (partially saved) SVG file you attached apparently contains largely binary information from Adobe Illustrator which is neither created by nor usable for Inkscape itself, and no SVG drawing elements at all). Do you still have the original version available, and could you attach that one to the bug report as well?

Changed in inkscape:
status: New → Incomplete
Revision history for this message
su_v (suv-lp) wrote :

Closing due to lack of feedback by the reporter.

Changed in inkscape:
status: Incomplete → Invalid
Revision history for this message
Peri Hartman (perih) wrote :

I apologize for not responding earlier; for some reason I did not receive an email notification.

Windows 6.1 build 7601 SP1
I installed the 64 bit version.

As for the image, I have no idea why it has binary data from Adobe in it. I created the file directly in inkscape. It's a very simple graphic - an arc object with a rotated triangle object - a refresh icon. The original version of the file is what I attached to this bug; there is only one version since I created it directly in inkscape, did the object actions, and saved it.

I do not have adobe illustrator installed on my computer. I do have a very old version of adobe photoshop elements 4.0 but have not been using it.

Let me know if you would like me to try some experiments to see what gets written to the svg file.

Changed in inkscape:
status: Invalid → New
Revision history for this message
jazzynico (jazzynico) wrote :

> I created the file directly in inkscape.

Did you use a template that could have been created with Adobe Illustrator? The beginning of the file shows:
<!-- Generator: Adobe Illustrator 18.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
and I'm sure Inkscape wouldn't had that kind of information, so it was probably there before.

That said, the attached document can't be opened in Inkscape, and there's nothing in the source that looks like the symbol you describe. So there are changes that your drawing never saved correctly (due to the invalid existing content).

The report is 3 months old now, so I guess you managed to find a solution. If not, the best you can do is start with a blank new SVG document from the Inkscape File>New or File>New from templates menus.

Proposing to close invalid again (invalid SVG test file).

Changed in inkscape:
status: New → Incomplete
Revision history for this message
Peri Hartman (perih) wrote : Re: [Bug 1491911] Re: inkscape hangs indefinitely during save; file destroyed
Download full text (4.1 KiB)

Hi. I'm not sure where the Adobe reference is coming from. I do have
other SVG files in the directory that were created via Adobe (not sure
about Illustrator in particular, though).

Yes, after multiple tries, I was able to create the drawing. It has
been a long time since I created it so, at this point, I can't remember
exactly how I configured it when I started. I believe I started from a
blank, though, and set the size and created the objects. However, I may
have started with a copy of an SVG file created by Adobe and cleared out
what I didn't want.

Just yesterday, I encountered a similar symptom on a new drawing I was
working with. In that case, I took an SVG file created by Adobe to use
as a basis. It had the correct dimensions and background graphic. I
noticed when I loaded it there weren't any layers defined. Don't know
why. I created a layer and built my design on top of the exiting
background, even though the background wasn't in a defined layer. When
I tried to save, it hung and I ended up with a blank drawing when I
reopened.

So I tried a second time. I created a layer and copied the background
graphic into the layer. From there I was able to create new layers and
build my design. This time, when I saved, it worked.

It appears that inkscape has some trouble reading Adobe SVG files. I
think it would be good to identify the problem since, I'm sure, it would
be desirable to be able to allow people use different tools to exchange
their work. I don't understand your statement in the first paragraph of
why inkscape would need information about and Adobe Illustrator plug in.
  Can you go into more detail about why or why not this problem can be
solved.

Thanks,
Peri

------ Original Message ------
From: "jazzynico" <email address hidden>
To: <email address hidden>
Sent: 29-Apr-16 2:13:07 AM
Subject: [Bug 1491911] Re: inkscape hangs indefinitely during save; file
destroyed

>> I created the file directly in inkscape.
>
>Did you use a template that could have been created with Adobe
>Illustrator? The beginning of the file shows:
><!-- Generator: Adobe Illustrator 18.1.0, SVG Export Plug-In . SVG
>Version: 6.00 Build 0) -->
>and I'm sure Inkscape wouldn't had that kind of information, so it was
>probably there before.
>
>That said, the attached document can't be opened in Inkscape, and
>there's nothing in the source that looks like the symbol you describe.
>So there are changes that your drawing never saved correctly (due to
>the
>invalid existing content).
>
>The report is 3 months old now, so I guess you managed to find a
>solution. If not, the best you can do is start with a blank new SVG
>document from the Inkscape File>New or File>New from templates menus.
>
>Proposing to close invalid again (invalid SVG test file).
>
>** Changed in: inkscape
> Status: New => Incomplete
>
>--
>You received this bug notification because you are subscribed to the
>bug
>report.
>https://bugs.launchpad.net/bugs/1491911
>
>Title:
> inkscape hangs indefinitely during save; file destroyed
>
>Status in Inkscape:
> Incomplete
>
>Bug description:
> Sometimes when I save my drawing, inkscape hangs ind...

Read more...

Revision history for this message
jazzynico (jazzynico) wrote :

Hi Peri,

To answer some of your questions:

> I noticed when I loaded it there weren't any layers defined.

Note that in Inkscape a layer is just an SVG group with a special attribute (inkscape:groupmode="layer"). So importing an SVG from Adobe can't keep layers as created in Adobe.

> it would be desirable to be able to allow people use different tools to exchange their work.

Yes, but application specific elements can't be easily mapped. Of course, there could be some sort of clean-up to completely remove all external elements before importing the file in Inkscape that would improve stability, be degrade the drawing when reopening it afterward in Adobe.

> I don't understand your statement in the first paragraph of why inkscape would need information about and Adobe Illustrator plug in.

It's very important for bug managers to know which operating system and Inkscape were used when the bug occurred because sometimes the bug can be version or OS specific.

It's also very important to have an original file to reproduce and understand the cause of the bug (so that we can try to fix it). Unfortunately the file you attached was already modified in Inkscape, and some useful information are likely to be missing. So don't hesitate to attach an original created in Adobe that cause issues in Inkscape if you manage to identify one.

Thanks!

su_v (suv-lp)
tags: added: win64
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Inkscape because there has been no activity for 60 days.]

Changed in inkscape:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.