#4225 : BUG : FreeCAD crash when making draft in PartDesign

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!
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: BUG : FreeCAD crash when making draft in PartDesign

Post by openBrain »

Zolko wrote: Sun Dec 15, 2019 4:35 pm yes, it crashes with FreeCAD_0.19-18846.AppImage exactly as described
Many thanks. :+1:
Doom-fr wrote: Tue Dec 10, 2019 12:09 pm Ping
@Doom-fr : good Zolko can reproduce. Could you know open an issue in the tracker please ?
Doom-fr
Posts: 5
Joined: Tue Dec 10, 2019 11:57 am

Re: BUG : FreeCAD crash when making draft in PartDesign

Post by Doom-fr »

Zolko wrote: Sun Dec 15, 2019 4:35 pm yes, it crashes with FreeCAD_0.19-18846.AppImage exactly as described
Great


openBrain wrote: Sun Dec 15, 2019 4:44 pm @Doom-fr : good Zolko can reproduce. Could you know open an issue in the tracker please ?
Done !

https://www.freecadweb.org/tracker/view.php?id=4225
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: BUG : FreeCAD crash when making draft in PartDesign

Post by openBrain »

Doom-fr wrote: Sun Dec 15, 2019 6:22 pm Great
No, not great. :lol:
You can use the BUG tag that gives : issue #4225

Could you also add the bug number in the title please (you can do it by editing the OP and changing its title) ? Thx
wmayer
Founder
Posts: 20300
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: #4225 : BUG : FreeCAD crash when making draft in PartDesign

Post by wmayer »

The crash might be related to with which build options OCCT is compiled. By default there are no range checks active any more and when accessing an element outside an array a segmentation fault occurs.
If the range checks are active then an exception is raised instead and that's probably the difference between the AppImage build and other builds.

When I do the steps as described an exception NCollection_Sequence::Value is raised. Now when debugging through the code of FeatureDraft.cpp then there seems to be a somewhat weird behaviour of GeomAPI_IntSS. It claims that the intersection was done but when trying to access its first element then the exception is raised.

For me git commit 2c13387ce fixes the exception and draft succeeds without error. Hopefully this fixes the crash for the AppImage build, too. Please report as soon as you have a new AppImage build.
Post Reply