Bug #2461: Crash when creating loft between two sketches

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
User avatar
Kunda1
Posts: 3243
Joined: Thu Jan 05, 2017 9:03 pm

Bug #2461: Crash when creating loft between two sketches

Postby Kunda1 » Thu Jan 26, 2017 9:54 pm

issue #2461: Crash when creating loft between two sketches
Please test if this is indeed an upstream OCC issue. Thanks!
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
Kunda1
Posts: 3243
Joined: Thu Jan 05, 2017 9:03 pm

Re: Bug #2461: Crash when creating loft between two sketches

Postby Kunda1 » Fri Jun 08, 2018 11:56 pm

Can still be reproduced with 0.17 OCC7.2
https://freecadweb.org/tracker/view.php?id=2461#c11373
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
hirnsalat
Posts: 1
Joined: Sat Jun 09, 2018 12:07 am

Re: Bug #2461: Crash when creating loft between two sketches

Postby hirnsalat » Sat Jun 09, 2018 12:29 am

Some additional information from testing:
  • It only happened to me with more than 2 sketches.
  • Doesn't happen with a ruled surface.
  • Both the additive loft in the Part Design workbench and the loft tool in the Part workbench produce the crash.
  • Interestingly, in the file I uploaded, setting Constraint43 in spline2 to 60mm fixes the crash for spline1/spline2/spline3. Adding spline4 to the loft still crashes.
  • Sketches in that file have the same number of points. They were actually created by duplicating the same sketch and just moving points.
  • I could only reproduce it with b-splines in the sketches. Unfortunately, I didn't manage to save more than one of these files.
Could be a bug in OCC, but it doesn't seem like the entire Application should crash ;)

I attached a stack trace, I was running the AppImage. Maybe that helps.
Attachments
stacktrace.txt
(4.2 KiB) Downloaded 9 times
ghedger42
Posts: 5
Joined: Fri Jun 08, 2018 1:57 pm

Re: Bug #2461: Crash when creating loft between two sketches

Postby ghedger42 » Sat Jun 09, 2018 1:41 am

I did a loft this morning, with three sketches actually. No crash. My system/build info:

OS: Ubuntu 16.04.4 LTS
Word size of OS: 64-bit
Version: 0.18.13920 (Git)
Build type: None
Branch: master
Hash: 08910e71e423c02da46018c47e34002df4fde1f9
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: English/UnitedStates (en_US)
User avatar
NormandC
Posts: 16995
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Bug #2461: Crash when creating loft between two sketches

Postby NormandC » Sun Jun 10, 2018 5:10 am

Regarding OCC-related crashes, wmayer wrote that on the 7.x series, OCC disabled exception handling. We need to re-enable it when building OCC to reduce the crash occurrences which have raised a lot since we build FreeCAD with OCCT 7.x.

https://forum.freecadweb.org/viewtopic. ... 36#p229436
https://forum.freecadweb.org/viewtopic. ... 20#p238310