[SOLVED] Crash on SVG import: next steps?

Post here for help on using FreeCAD's graphical user interface (GUI).
__Vinz__
Posts: 19
Joined: Fri Aug 26, 2016 4:07 am

[SOLVED] Crash on SVG import: next steps?

Postby __Vinz__ » Mon Feb 11, 2019 5:14 am

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 2 times
FreeCAD_crash.txt
(4.29 KiB) Downloaded 2 times
Heart_icon_red_hollow.svg
(315 Bytes) Not downloaded yet
Last edited by __Vinz__ on Wed Feb 13, 2019 7:10 am, edited 1 time in total.
chrisb
Posts: 13294
Joined: Tue Mar 17, 2015 9:14 am

Re: Crash on SVG import: next steps?

Postby chrisb » Mon Feb 11, 2019 6:14 am

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.
__Vinz__
Posts: 19
Joined: Fri Aug 26, 2016 4:07 am

Re: Crash on SVG import: next steps?

Postby __Vinz__ » Tue Feb 12, 2019 3:30 pm

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
Posts: 17779
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Crash on SVG import: next steps?

Postby NormandC » Wed Feb 13, 2019 4:05 am

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: 19
Joined: Fri Aug 26, 2016 4:07 am

Re: Crash on SVG import: next steps?

Postby __Vinz__ » Wed Feb 13, 2019 7:10 am

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
Posts: 17779
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

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

Postby NormandC » Thu Feb 14, 2019 5:42 am

__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... :?