Not saving when using Optimized SVG
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
New
|
Undecided
|
Unassigned |
Bug Description
I'm trying to optimize a file that has 77MB by saving "Optimized SVG", but after some time saving, there's no output file on folder.
I tried first on a MacOS X machine and thought that the problem were specific from Mac version (0.48.1 r9760 using X11). Then I installed the latest 0.48.2 on a Windows XP machine and the same problem occurred.
Back to Mac, I opened a terminal and used the lsof command to see which svg files were open. And only the file I was editing was open, as you can see bellow.
$ lsof | grep svg
Finder 346 javsmo 49r REG 14,1 80719360 13953094 /Users/
(the "[...]" is just to shorten the path)
After this, I started the Save As Optimized SVG and made another lsof command
$ lsof | grep svg
Finder 346 javsmo 49r REG 14,1 80719360 13953094 /Users/
inkscape- 10046 javsmo 10u REG 14,1 15839232 13996773 /private/
inkscape- 10046 javsmo 11w REG 14,1 15839232 13996773 /private/
It seems that the Inkscape is working on an optimized file, but it is not copying the result file to the correct folder. Also the optimized file on temp directory has the same size of the original file.
On Windows, I also tried to save on "Downloads" folder to be certain that there were no problem caused by Dropbox.
tags: |
added: saving removed: optimized-svg save-as |
visibility: | public → private |
Please attach the SVG file that fails to be saved as 'Optimized SVG' - this is possibly an upstream bug in scour (the python script on which this output extension for 'Optimized SVG' is based on).
> It seems that the Inkscape is working on an optimized file,
> but it is not copying the result file to the correct folder.
It is part of Inkscape's extension system that extension scripts work on a copy of the original file in $TMPDIR, and if the script processes the file successfully, the content is piped back to inkscape / the final output file. Usually, if the script fails (for whatever reason), an error message is sent back to Inkscape instead, and no output file created.