Failed to Load the requested File!

Post questions on how to use or achieve an effect in Inkscape.
briconn6
Posts: 1
Joined: Sat Jan 18, 2014 3:57 am

Failed to Load the requested File!

Postby briconn6 » Sat Jan 18, 2014 4:03 am

Hi, I tried opening one of my inkscape files this morning and got the error message "Failed to Load the requested file...". I read a couple of the other forums on here about that message, but am having no luck in retrieving the file. Here is what I have found so far:
1. There is no backup file for me to try opening and getting information from.
2. I can open up this particular svg file in notepad.
3. When I tried opening it in Microsoft Word (randomly decided to do that) I got the message that "A string literal was not closed. Line: 3260, column:13"

I'm thinking the next logical step would be to find that line and column and fix it, whatever "fixing it" means. Does anyone know how to do this? Or what a string literal is? Or can I send my file to someone to see if they can open it. The svg file is too big for me to upload to this topic. Fingers crossed it's not totally corrupted :|

Thanks everyone!

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Failed to Load the requested File!

Postby Lazur » Sun Jan 19, 2014 8:39 pm

Welcome aboard!

Maybe the file was corrupted at line 3260 and anything further is lost.
Can't tell without seeing it.
To share the svg, you can use dropbox or try if by zipping you could shrink the file enough to be attached here.

billtubbs
Posts: 2
Joined: Fri Mar 06, 2015 12:51 pm

Re: Failed to Load the requested File!

Postby billtubbs » Fri Mar 06, 2015 1:01 pm

I have the same error message.

I created SVG files on my mac using the svgfig python library (https://code.google.com/p/svgfig/)

I can open them and edit them fine on Inkscape on my Mac (see specs below).

But when I try to open the files on a version of Inkscape on a PC (connected to the laser cutter I need use) some of them open fine and some fail to open with the error message "Failed to load the requested file C:..."

What is the first step to diagnose this error with such an unhelpful error message?

Attached are two files, one that opens fine ("venn-4-football.svg") on the PC, one that doesn't ("venn-4-random.svg").

I have many other different svg files some of which open on the PC, some of which don't.

Specs
PC: Windows Vista Home Premium, 32-bit OS, Inkscape 0.48
Mac: OS X 10.10.2, XQuartz 2.7.7, Inkscape 0.91
Attachments
venn-4-random.svg
Example SVG file that fails to open
(1.53 KiB) Downloaded 222 times
venn-4-football.svg
Example SVG file that opens with no error
(1.54 KiB) Downloaded 210 times

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Failed to Load the requested File!

Postby Lazur » Fri Mar 06, 2015 1:30 pm

Hi.

I think the case why you got the error message is different.
Can't see any difference in the two file's structure by first glance, both opens just fine on opensuse with 0.48 inkscape.
Both have an unusual formatting on the text objects;
I would try to generate them so that the style is not embedded in the <svg> tag, but inside the <text> tags.

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: Failed to Load the requested File!

Postby ragstian » Fri Mar 06, 2015 1:38 pm

Hi.

The venn-4-random.svg file opened without problems on both 0.48 and 0.91 using a win8.1 system.

I have successfully used the svgfig library as well and never experienced any problems opening the files produced.

Fault finding these errors can be frustrating, is it always happening?
Try changing media - copy the file to a USB-stick and try opening it,
can you open the file in notepad? After all SVG files are "plain text" files.
Does renaming the file help?
Could it be that the file is being corrupted when you transfer it to the "laser_Cut" PC?

To verify a successful copy you can run a MD5 checksum on the file, if you get different MD5 checksums you know your file is "corrupt".
For more info on MD5 - Link
Try copying the file back to the other PC/Mac to check if it can then be opened.

The only visible difference between the two files is the viewbox parameters in line 2 (The coordinates in the files are slightly different as well.)
You could try to delete this in Inkscape XML editor (Shift Ctrl X)

Another thing to try is to have inkscape saving it as "Optimized SVG" - you will then get several option to remove "redundant" things in your SVG file.
Last edited by ragstian on Fri Mar 06, 2015 3:17 pm, edited 1 time in total.
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar

billtubbs
Posts: 2
Joined: Fri Mar 06, 2015 12:51 pm

Re: Failed to Load the requested File!

Postby billtubbs » Fri Mar 06, 2015 3:16 pm

Hey folks.

I'm really sorry about this. After spending all evening investigating this I have realized that the cause is in fact a faulty USB stick. I eventually found out that even simple text files were occasionally being corrupted during the transfer from one computer to the other and weren't even readable in notepad.

Sorry I took up your time as well. The problem was absolutely nothing to do with svgfig or Inkscape.

And thanks for the tip on the text formatting.


Return to “Help with using Inkscape”