FC Crash on .svg import

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Sazaju
Posts: 6
Joined: Mon Jul 08, 2019 7:51 pm

Re: FC Crash on .svg import

Post by Sazaju »

I am facing the crash issue on SVG import with the 0.18 AppImage. I tried the procedure you expose to repackage it, but it seems to fail at some point, I am not sure where. Here are the details :

AppImage: FreeCAD_0.18-16117-Linux-Conda_Py3Qt5_glibc2.12-x86_64.AppImage
Procedure :
  1. extract as squashfs-root -> OK
  2. download DEB of libexpat1 -> OK (your link is dead, I used this one since I am on Ubuntu 14.04)
  3. copy from DEB to squashfs-root -> I am not sure about it, by unpackaging the DEB I get some TARs, and by extracting data.tar.xz I get some lib/ and usr/ folders, which I copied directly in squashfs-root/ but I feel like it is not that simple.
  4. wget appimagetool -> OK
  5. make it executable -> OK
  6. create new AppIMage -> seems it has failed. I have no new file end the process stops with this log:

Code: Select all

appimagetool, continuous build (commit fef038a), build 2093 built on 2019-07-07 12:07:34 UTC
More than one architectures were found of the AppDir source directory "squashfs-root"
A valid architecture with the ARCH environmental variable should be provided
e.g. ARCH=x86_64 appimagetool ...
I am blocked at this point.
chrisb
Veteran
Posts: 54213
Joined: Tue Mar 17, 2015 9:14 am

Re: FC Crash on .svg import

Post by chrisb »

Can you retry with the latest 0.19?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Sazaju
Posts: 6
Joined: Mon Jul 08, 2019 7:51 pm

Re: FC Crash on .svg import

Post by Sazaju »

The only release I find is 0.18. Is the 0.19 available somewhere?
kisolre
Veteran
Posts: 4166
Joined: Wed Nov 21, 2018 1:13 pm

Re: FC Crash on .svg import

Post by kisolre »

Sazaju
Posts: 6
Joined: Mon Jul 08, 2019 7:51 pm

Re: FC Crash on .svg import

Post by Sazaju »

Thank you.
I just tried with FreeCAD_0.19-17175-Linux-Conda_Py3Qt5_glibc2.12-x86_64.AppImage.
The SVG is imported, but only partially.

Here is what the SVG looks like:
https://ibb.co/tcjNxSK

Here is what I have once imported in FreeCAD:
https://ibb.co/X3zLvsY

The SVG has been made by hand: a definition section provides half of the content, then the external circle is drawn, the definition is drawn, and the definition is drawn again with a negative scale on the X to reverse the drawing. The combination of the two provides the full content of the circle. Here is the actual SVG:

Code: Select all

<svg version="1.1"
     baseProfile="full"
     width="22mm" height="22mm"
     viewBox="-11 -11 22 22"
     xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink">
	<g transform="scale(1,-1)" stroke="black" stroke-width="0.2" stroke-linecap="round" stroke-linejoin="round" fill="none">
		<defs>
			<g id="half">
				<polyline id="body" points="-1,4 -1.5,4 -1.5,4.25 -1,4 -0.5,3 0,1.5 -0.25,1.25 -0.25,1 -0.5,0 -0.25,-1 -0.5,-2 -0.5,-3 0,-3.5" />
				<polyline id="wing" points="-0.5,0 -1,2 -2,4 -4,5.5 -6,6 -7,6 -7.5,5.5 -7.5,5 -7,3 -7,0 -6.5,-1 -6,-1.25 -5,-1.25 -0.25,-1 -1,-2 -1.5,-4 -1.5,-5 -2,-5.75 -3,-6 -3.25,-5.75 -3.75,-5.75 -4,-6 -4.5,-8 -4.5,-5.5 -5,-5 -5,-4.5 -5.5,-4 -5.5,-3.5 -6,-3 -5.75,-2.75 -5.75,-2.25 -6,-2 -5.5,-1.25" />
				<g id="lower-wing-details">
					<polyline points="-5.5,-1.25 -5.5,-2 -5.25,-3 -4.75,-4 -4,-5 -3.75,-5.75 -3,-4" />
					<polyline points="-2,-5.75 -3,-5 -4,-4 -4.5,-3 -4.5,-2 -5,-1.25" />
					<polyline points="-6,-2 -0.25,-1 -6,-3" />
					<polyline points="-5.5,-4 -4,-3.5" />
					<polyline points="-3.5,-4 -5,-5" />
					<polyline points="-2,-2 -2,-2.5 -2.5,-3.5 -3,-4 -3.5,-4 -4,-3.5 -4,-3 -3.5,-2.5 -2,-2 -0.25,-1" />
				</g>
				<g id="upper-wing-details">
					<polyline points="-1.5,3 -2.5,1 -2.5,-1 -5,0 -6.5,-1" />
					<polyline points="-7,1 -5,1 -2.5,-1" />
					<polyline points="-2.5,0 -5,2 -7,3" />
					<polyline points="-7.5,5 -2.5,1" />
					<polyline points="-5,3 -6,6" />
					<polyline points="-5.5,4.5 -7,6" />
				</g>
				<g stroke="red">
				</g>
			</g>
		</defs>
		
		<circle id="limit" cx="0" cy="0" r="10.5" />
		<use xlink:href="#half"/>
		<use xlink:href="#half" transform="scale(-1,1)"/>
	</g>
</svg>
Sazaju
Posts: 6
Joined: Mon Jul 08, 2019 7:51 pm

Re: FC Crash on .svg import

Post by Sazaju »

Since it is not a crash anymore, I opened a new topic on that matter:
https://forum.freecadweb.org/viewtopic.php?f=3&t=37627
Post Reply