Curves & Surface WB segfault

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
drmacro
Veteran
Posts: 8866
Joined: Sun Mar 02, 2014 4:35 pm

Curves & Surface WB segfault

Post by drmacro »

When I attempt to make a surface between the yellow curves shown FC segfaults.

There is a significant amount of error output at the terminal (the beginning is shown below) I'm guessing from the words handle, bspline, and opencascade the segfault is coming from OCCT and probably much can be done by FC?)
Snip macro screenshot-9881c1.png
Snip macro screenshot-9881c1.png (78.7 KiB) Viewed 1593 times

Code: Select all

Program received signal SIGSEGV, Segmentation fault.
#0  /lib/x86_64-linux-gnu/libc.so.6(+0x37840) [0x7f8a82d6f840]
#1  0x7f8a29d33220 in Geom_BSplineCurve::Degree() const from /home/mac/occt760b-install/lib/libTKG3d.so.7+0
#2  0x7f8a2a78f73e in GeomFill_BSplineCurves::Init(opencascade::handle<Geom_BSplineCurve> const&, opencascade::handle<Geom_BSplineCurve> const&, opencascade::handle<Geom_BSplineCurve> const&, opencascade::handle<Geom_BSplineCurve> const&, GeomFill_FillingStyle) from /home/mac/occt760b-install/lib/libTKGeomAlgo.so.7+0x4ce
#3  0x7f8a2a791aed in GeomFill_BSplineCurves::Init(opencascade::handle<Geom_BSplineCurve> const&, opencascade::handle<Geom_BSplineCurve> const&, opencascade::handle<Geom_BSplineCurve> const&, GeomFill_FillingStyle) from /home/mac/occt760b-install/lib/libTKGeomAlgo.so.7+0x42d
#4  0x7f8a1f61e202 in Surface::GeomFillSurface::createBSplineSurface(TopoDS_Wire&) from /home/mac/fc-daily-build-occt760b/Mod/Surface/Surface.so+0x622
#5  0x7f8a1f61e38b in Surface::GeomFillSurface::execute() from /home/mac/fc-daily-build-occt760b/Mod/Surface/Surface.so+0xab
#6  0x7f8a8636a3a2 in App::DocumentObject::recompute() from /home/mac/fc-daily-build-occt760b/lib/libFreeCADApp.so+0x102
#7  0x7f8a3198ef6b in Part::Feature::recompute() from /home/mac/fc-daily-build-occt760b/Mod/Part/Part.so+0xb
#8  0x7f8a863081fc in App::Document::_recomputeFeature(App::DocumentObject*) from /home/mac/fc-daily-build-occt760b/lib/libFreeCADApp.so+0x2dc
OS: Debian GNU/Linux 10 (buster) (XFCE/lightdm-xsession)
Word size of FreeCAD: 64-bit
Version: 0.20.26507 (Git)
Build type: Release
Branch: master
Hash: 9d70589d6c2f08f3339c40e9b990fde5863b45b7
Python version: 3.7.3
Qt version: 5.11.3
Coin version: 4.0.0a
OCC version: 7.6.0
Locale: English/UnitedStates (en_US)
Attachments
AdvancedFillet.FCStd
(25.93 KiB) Downloaded 18 times
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
User avatar
Vincent B
Veteran
Posts: 4713
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Curves & Surface WB segfault

Post by Vincent B »

Your file seems corrupted. :roll:
Attachments
AdvancedFillet2.FCStd
(89.1 KiB) Downloaded 10 times
user1234
Veteran
Posts: 3342
Joined: Mon Jul 11, 2016 5:08 pm

Re: Curves & Surface WB segfault

Post by user1234 »

0.png
0.png (189.43 KiB) Viewed 1498 times
AdvancedFillet_edit.FCStd
(24.49 KiB) Downloaded 14 times

Greetings
user1234
drmacro
Veteran
Posts: 8866
Joined: Sun Mar 02, 2014 4:35 pm

Re: Curves & Surface WB segfault

Post by drmacro »

Vincent B wrote: Mon Nov 29, 2021 9:42 pm Your file seems corrupted. :roll:
Hmm...same file worked later making the surface with Sweep on two rails.

I thinking the OpenGL and the gpu on this machine get some sort of issue. :roll:
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
user1234
Veteran
Posts: 3342
Joined: Mon Jul 11, 2016 5:08 pm

Re: Curves & Surface WB segfault

Post by user1234 »

drmacro wrote: Mon Nov 29, 2021 10:44 pm Hmm...same file worked later making the surface with Sweep on two rails.
Sweeps on two rails? Please tell me more! I never was able to do that, not in Part or PartDesign. Of course i also look in the wiki.

Greetings
user1234

edit: removed unnecessary comment
drmacro
Veteran
Posts: 8866
Joined: Sun Mar 02, 2014 4:35 pm

Re: Curves & Surface WB segfault

Post by drmacro »

user1234 wrote: Tue Nov 30, 2021 12:59 am ...

Sweeps on two rails? Please tell me more! I never was able to do that, not in Part or PartDesign. Of course i also look in the wiki.

...
Curves workbench, MangoJelly covers it pretty well:
https://youtu.be/8JO3kU3Lg-U
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
drmacro
Veteran
Posts: 8866
Joined: Sun Mar 02, 2014 4:35 pm

Re: Curves & Surface WB segfault

Post by drmacro »

Vincent B wrote: Mon Nov 29, 2021 9:42 pm Your file seems corrupted.
Actually during work on other posts, I've determined that files saved with OCCT 7.6 appear empty of shape data when opened with FC using less than OCCT 7.6.

But, it makes no difference to the error:
Peek 2021-11-30 08-25.gif
Peek 2021-11-30 08-25.gif (347.64 KiB) Viewed 1309 times
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
drmacro
Veteran
Posts: 8866
Joined: Sun Mar 02, 2014 4:35 pm

Re: Curves & Surface WB segfault

Post by drmacro »

But, if I change the order of selection it works. :o
Peek 2021-11-30 08-43.gif
Peek 2021-11-30 08-43.gif (490.59 KiB) Viewed 1287 times
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
user1234
Veteran
Posts: 3342
Joined: Mon Jul 11, 2016 5:08 pm

Re: Curves & Surface WB segfault

Post by user1234 »

Yes, it seems to work very selective.

Greetings
user1234
User avatar
onekk
Veteran
Posts: 6146
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: Curves & Surface WB segfault

Post by onekk »

In some post, @Chris_G has told me that Sweep2rails, is "old code" and Gordon Surface has to be used instead.

https://forum.freecadweb.org/viewtopic. ... 26#p561226

Maybe it is better to ask him about this thing.

Regards

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
Post Reply