[SOLVED] Crash on SVG import: next steps?

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!
Post Reply
__Vinz__
Posts: 29
Joined: Fri Aug 26, 2016 4:07 am

[SOLVED] Crash on SVG import: next steps?

Post by __Vinz__ »

Good evening everyone,

First, a big thank you to all of you FreeCAD authors, it's a great tool to model parts when doing 3D printing! I have used 0.16 a while ago and got back to using it, this time on 0.17 (all those new features!).

I seem to get FreeCAD 0.17 to reliably crash on SVG import using the attached file:
  1. Create a new empty document
  2. Import the attached file using 'SVG as geometry'
  3. FreeCAD crashes
According to the bug reporting guidelines at https://forum.freecadweb.org/viewtopic.php?f=3&t=5236, it is advised to get your input on the forum first so here I am.

Should I file a ticket or first need to try other things (like latest dev snapshot maybe)?

Thanks!

OS: Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.Unknown
Build type: Unknown
Python version: 2.7.15
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 6.9.1.oce-0.18
Locale: English/UnitedStates (en_US)

Note: distro is Fedora 29

Edit: launching FreeCAD from the terminal yields the attached backtrace. I also have another file which triggers the problem (witch shape)
Attachments
Witch-OK-flattened.svg
(26.6 KiB) Downloaded 70 times
FreeCAD_crash.txt
(4.29 KiB) Downloaded 52 times
Heart_icon_red_hollow.svg
(315 Bytes) Downloaded 75 times
Last edited by __Vinz__ on Wed Feb 13, 2019 7:10 am, edited 1 time in total.
chrisb
Veteran
Posts: 54278
Joined: Tue Mar 17, 2015 9:14 am

Re: Crash on SVG import: next steps?

Post by chrisb »

This is a known issue and there is a thread about it here in the forum. I am not at home and have a very poor internet connection, so please search yourself.

Besides that you should always try the newest development version before creating a tracker issue, because there is no ticket needed if the issue is already fixed. The current 0.18 version will be released soon (I'm saying this since december) and is in many respects better than 0.17 and in noone worse - except, perhaps, the size of the binaries.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
__Vinz__
Posts: 29
Joined: Fri Aug 26, 2016 4:07 am

Re: Crash on SVG import: next steps?

Post by __Vinz__ »

Hi chrisb,

Thanks for your quick reply and the pointer!

I had searched for such crash reports on the forums but the results targeted 0.17 or a dev version of 0.18 (out of git)
  1. https://forum.freecadweb.org/viewtopic.php?t=26940
  2. https://forum.freecadweb.org/viewtopic.php?f=3&t=26291
  3. https://forum.freecadweb.org/viewtopic.php?t=31460
  4. https://forum.freecadweb.org/viewtopic.php?t=24065
I thus had figured the issue had been fixed in the official 0.18

I will see to move to a more recent dev version if I need to work w/ such import again (I have rebuilt a sketch for the simple shape I was interested in using since then so this is not blocking anymore).
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Crash on SVG import: next steps?

Post by NormandC »

It is not a matter of v0.17/v0.18, it is a conflict between libraries used to build FreeCAD, as already detailed in the topics you linked. It has been fixed in the freecad-stable and freecad-daily PPA repositories for Ubuntu, it does not mean it has been fixed on other Linux distributions. Your FreeCAD info does not provide your specific Linux info. In fact, your version isn't even properly detected, that's a problem with how the package was built by its maintainer.
__Vinz__
Posts: 29
Joined: Fri Aug 26, 2016 4:07 am

Re: Crash on SVG import: next steps?

Post by __Vinz__ »

Hi Normand,

Thanks for the additional information, this is Fedora 29 as I had indicated below my FreeCAD version info (since it was indeed not properly detected). I see copr has nightly builds enabled, I might look into it too (https://copr.fedorainfracloud.org/coprs ... d/nightly/).

Edit: I have found the master OS-specific issue thread at https://forum.freecadweb.org/viewtopic.php?f=3&t=30573

Vincent
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: [SOLVED] Crash on SVG import: next steps?

Post by NormandC »

__Vinz__ wrote: Wed Feb 13, 2019 7:10 am this is Fedora 29 as I had indicated below my FreeCAD version info
Sorry, I only noticed it after posting and I didn't have time to edit my reply.

How the SVG crash was fixed in Debian experimental and the FreeCAD PPA for Ubuntu is by providing a new Coin3D package that does not embed the old expat/libexpat library. So on fedora, a packager needs to do the same thing.

Besides,
__Vinz__ wrote: Mon Feb 11, 2019 5:14 am OCC version: 6.9.1.oce-0.18
This is an utterly obsolete OCC version. On the FreeCAD Ubuntu PPA, we switched back from OCE to the original OCCT 2 years ago because the OCE project development has been dead for years. It is still based on OCC 6.9.1, a version that was released in September 2015; there were 4 following releases by OCC, the latest being 7.3.0 released in May 2018. They provide many bug fixes as well as new functions that FreeCAD uses. In the upcoming Debian 10 (buster) the opencascade package is making a comeback, the oce package will still remain I think, but I really don't see why projects would continue to be based on an obsolete oce.

I don't understand why nobody has packaged opencascade for fedora yet... :?
__Vinz__
Posts: 29
Joined: Fri Aug 26, 2016 4:07 am

Re: [SOLVED] Crash on SVG import: next steps?

Post by __Vinz__ »

Hi Normand,

I am only seeing this now as I have not logged in the forum since then, thanks for your reply in any case.

I have since then moved to Fedora 30, about to move to 31 and, interestingly FreeCAD has moved on but OCC stil seems stuck at the ancient version you were pointing out. I'll keep that in mind in case I see more issues around geometry.

Interestingly, the repo on Pagure (https://pagure.io/freecad) has just been created for FreeCAD so I don't know how this was packaged before (AFAIK, everything should go via Pagure for packaging on Fedora ...)

OS: Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.Unknown
Build type: Unknown
Python version: 3.7.3
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 6.9.1.oce-0.18
Locale: English/UnitedStates (en_US)
__Vinz__
Posts: 29
Joined: Fri Aug 26, 2016 4:07 am

Re: [SOLVED] Crash on SVG import: next steps?

Post by __Vinz__ »

Hi again,

Just one last note to mention that I picked up the AppImage and it runs successfully under Fedora, with an updated OCC kernel:
OS: Fedora 30 (Workstation Edition)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16146 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.18.4)
Hash: 980bf9060e28555fecd9e3462f68ca74007b70f8
Python version: 3.6.7
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)

As a bonus, I also get all the icons in the menus back, nice!
Post Reply