Not able to open and convert SVG file

General discussions about Inkscape.
jagsveds
Posts: 2
Joined: Thu Jan 08, 2015 12:31 pm

Not able to open and convert SVG file

Postby jagsveds » Thu Jan 08, 2015 1:07 pm

Hi all,

I have attached svg file which is not working with Inkspace.

I am getting following error:

"This application has requested runtime to terminate it in unusual way".


Please help me out
Attachments
tar.svg
(43.88 KiB) Downloaded 181 times

User avatar
BlueKnight
Posts: 53
Joined: Sat Jun 16, 2012 10:37 pm

Re: Not able to open and convert SVG file

Postby BlueKnight » Thu Jan 08, 2015 1:45 pm

It is crashing my inkscape too! I'm on Linux.

Code: Select all

** (inkscape:6699): WARNING **: attribute 'clip-path' given as CSS

** (inkscape:6699): WARNING **: attribute 'clip-path' given as CSS

** (inkscape:6699): WARNING **: attribute 'clip-path' given as CSS

** (inkscape:6699): WARNING **: attribute 'clip-path' given as CSS

** (inkscape:6699): WARNING **: attribute 'clip-path' given as CSS

(inkscape:6699): glibmm-ERROR **:
unhandled exception (type std::exception) in signal handler:
what: lib2geom exception: Non-contiguous path (2geom/path.cpp:354)

Trace/breakpoint trap

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

Re: Not able to open and convert SVG file

Postby Lazur » Thu Jan 08, 2015 2:02 pm

It has some css and other weird xml structure.
If it doesn't open on the latest pre0.91 release (pre 4 will be out soon?) then the original file needs to be edited.
Maybe paste the necessary data into a blank inkscape file with a notepad (maybe the css is not that vital for an electrical plan).
Well, all it contains are polylines, circles and poligons, which inkscape can hardly reproduce as per se.
Circles are implemented in the pre builds, and connector tool produces polyline.
But to edit them once you can open it in inkscape, you may need to convert the objects to paths.
Just guessing.

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

Re: Not able to open and convert SVG file

Postby ragstian » Thu Jan 08, 2015 3:12 pm

Hi.

Check your file in an online "SVG validator";
http://validator.w3.org/check
http://tools.wmflabs.org/svgcheck/

The file opens nicely in the online SVG editor here; http://svg-edit.googlecode.com/svn/branches/stable/editor/svg-editor.html
The saved file from this editor still crashes Inkscape 0.91pre3 r13670 on Win8.1

RGDS
Ragnar
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: Not able to open and convert SVG file

Postby hulf2012 » Thu Jan 08, 2015 3:33 pm

:geek:

How interesting!!!

I opened the svg in google Chrome, then developers tools (Ctrl + shift + I).
There click in a little red circle icon
And it shows 8 errors, all of the type:

Error: Invalid value for <circle> attribute cx="NaN"
tar.svg:351 Error: Invalid value for <circle> attribute cy="NaN"


Next I opened the svg in a text editor, erased those lines with "NaN" attributes.

And now Inkscape can open the file!!.

Now the interrogation:
0.- What did you want to do?
1.- What program did you use to make that drawing?
2.- In which system are you (Linux, Windows, Mac OS, other)?
3.- Why did you want to edit it in Inkscape?

Interesting!
Attachments
tarv2.svg
erased NaN errors
(43.38 KiB) Downloaded 170 times
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.

jagsveds
Posts: 2
Joined: Thu Jan 08, 2015 12:31 pm

Re: Not able to open and convert SVG file

Postby jagsveds » Thu Jan 08, 2015 4:53 pm

Thanks all for reply.

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Not able to open and convert SVG file

Postby tylerdurden » Thu Jan 08, 2015 11:53 pm

Looks a bit like the beginnings of a wiring diagram.

https://wiki.bentleypublishers.com/page ... d=13500486
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: Not able to open and convert SVG file

Postby hulf2012 » Fri Jan 09, 2015 1:14 am

jagsveds wrote:Thanks all for reply.

:roll: :)

Ok
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.


Return to “General Discussions”