Inkscape cannot open *.svgz (compressed Inkscape) through File -> Open (command-line works ok though)
Hi there,
I noticed that Inkscape bails w/ an error message 'Failed to load the requested file <filename>.svgz' when trying to open a compressed Inkscape file through the GUI. However, it can still load the same file just fine if I pass it to inkscape through the command-line:
$ # this works ok $ inkscape myfile.svgz
...when it errors out, I get the following error message on the command line:
Entity: line 1: parser error : Start tag expected, '<' not found � ^
To reproduce: 1 - create a new file 2 - add a shape (I just did a simple red square) 3 - save as 'Compressed Inkscape SVG (*.svgz)' 4 - close and re-open inkscape GUI 5 - in the GUI, File -> Open <your saved file> // this will result in the error 6 - open same file through command-line // this will open ok
I don't know how long this behavior has been around, I only started using compressed SVG's recently, but I see the behavior as far back as rev 20150.. I also keep rev 19967 handy (there seems to have been a performance regression since this build, when zooming in/out.. the canvas seems to refresh slower... but that's another matter altogether), and it suffers the same problem BOTH through the GUI and command-line.
I'll try bisecting down to the neighbor revs that fixed the command-line opening problem when I get some time later on tomorrow.
--Mike
running Win32 rev 20168. For me the File | Open of .svgz appears to be working well, even from the gui. The problem I have is with saving the file. There are two .svgz options for saving. The one that is third from the top works fine, the one that is second from the bottom causes the following crash :
C:\Python25\APP>inkcl.py return code: 3
terminatel called after throwing an instance of 'Glib::SpawnError'
Emergency save activated!
I think I would suggest opening a bug report on this.
okay, the Save option at the bottom, which doesn't work, is crashing because it is trying to use gzip, which I do not have. - so I guess the question is, which Save method are you using?
On Tue, Nov 11, 2008 at 3:07 AM, Alvin Penner <penner@...1856...> wrote:
- so I guess the question is, which Save method are you using?
The first occurrence of 'Compressed Inkscape SVG (*.svgz)' (third option from the top).
That's odd that there's even a 2nd occurrence of the same option listed.. That doesn't seem quite right either, huh? Unless there's clearly a difference between the two, but even then, I'd think it'd make more sense to move the 'Compressed Inkscape SVG (*.svgz)' and 'Compressed Inkscape SVG with media (*.zip)' near the top with the rest of the native Inkscape file-format options, since that makes more logical ordering/grouping sense. But I'm digressing here..
When I tried (btw, this is with r20176) saving a *.svgz using the 2nd occurrence of the same option (the one that's second from the bottom), it failed to successfully save a file, even though it seemed to visually indicate that the save succeeded (no error message, and the title bar changed to the new file name).
The command-line did output this though, when I tried it:
Can't Spawn!!! spawn returns: 8
The file does get created, but is empty (ie. 0-byte).
I would suggest opening a bug report and attaching a sample .svgz file. - also, which OS?, I gather that it is not Windows...
Hi there,
Sorry, I've been rather tied up the last couple of days..
On Tue, Nov 11, 2008 at 4:55 AM, Alvin Penner <penner@...1856...> wrote:
I would suggest opening a bug report and attaching a sample .svgz file.
- also, which OS?, I gather that it is not Windows...
Okidoke, will do. OS is Linux (Fedora 9, kernel 2.6.27.5-32.fc9.x86_64)
participants (2)
-
Alvin Penner
-
Michael Park