Inkscape crashed, and can't open the file I was working on.

Asked by H.Gwynne

The Problem:

I was working on a drawing on Inkscape, and saving regularly, when it crashed.

It quoted an error, think it was a runtime one, I didn't pay that much attention as Inkscape has crashed on me before. I got back into the program and went to open up my latest save file. When I selected it it comes up with the following error:

Microsoft Visual C++ Runtime Library

"Runtime Error!

Program C:\Program Files\Inkscape\inkscape.exe

This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information"

And then the happy message "Inkscape has encountered an internal error and will close now."

When I went searching for the files in the directory they were saved in, they show up as "JPEG Image", but when opened with any program show up as blank. I changed the property of one so that it opens with inkscape but that just showed a blank file.

Is there anyway I can recover my work? It was a whole days work, and myself not being good at art, was painstaking time I've lost if it can't :P

Cheers
-H

Question information

Language:
English Edit question
Status:
Solved
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Solved by:
mahfiaz
Solved:
Last query:
Last reply:
Revision history for this message
mahfiaz (mahfiaz) said :
#1

First see if the files are also of 0 bytes size. If not, then examine these with text editor.
You also may search in all working directories for recovery saves, which sometimes succeed. On linux these may end up in current working directory which is usually /home/username and /tmp. On windows I would take a look into C:\Temp, C:\Windows\Temp, C:\Windows, C:\Documents and settings\Username or C:\Users\Username, C:\Documents and settings\Local Settings\Temp. These files are either modified form of your previous filename, "svg image.svg" may become "svg_image-2008-11-19-20-52.svg" and not yet saved documents may end up as "inkscape-", with or without current date.

Revision history for this message
H.Gwynne (aussieguy1990) said :
#2

The files are not 0 bytes, with gave me hope there may be something in them. I have examined them on text editor, there is a large file of text with things as "gradientUnits= "userspaceone" and many more, they seem related to inkscape.

I haven't found any files with the format .svg, or in the style you said they may be in C:\Temp, C:\Windows\Temp, C:\Windows, C:\Documents and settings\Username, C:\Documents and settings\Local Settings\Temp. Even did a search for any with the .svg in it.

Started it again, so I guess it's not paramount if I can recover these files. It was just odd.

Thanks for the response
-H

Revision history for this message
Best mahfiaz (mahfiaz) said :
#3

Hey, these files are quite fine. Didn't got all of your problem yesterday. Inkscape is quite picky about SVG contents. If these contain invalid characters it fails, at least now.
You have to run inkscape from command prompt to get the messages. For this press Winkey+R to get "Run" dialog, type "cmd" there. Type: "cd "C:\Program Files\Inkscape" to get to the inkscape directory (or whatever the directory is). Then type inkscape.exe to run inkscape. When program opens some error information is sent to this console, and usually the reason of crashing in form like this:
yourfilename.svg 1234: Error in file blaah blaah blaah
where 1234 is the line of file where the problem occurs and blaah blaah is the error message you have to repair in your file. If you correct all such errors your svg will open fine.
Also post a bug report about it.

Revision history for this message
H.Gwynne (aussieguy1990) said :
#4

Thanks mahfiaz, that solved my question.