Segfault when updating Hole Parameters (Part Design Workbench)

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!
leoheck
Veteran
Posts: 1223
Joined: Tue Mar 13, 2018 5:56 pm
Location: Coffee shop

Segfault when updating Hole Parameters (Part Design Workbench)

Post by leoheck »

Hello, I am experiencing segfaults with 0.21

It is happening when I try to update the depth in the Hole parameters (Part Design Workbench)
If I use 1.99999 it works fine, if I use 2.01 it works too.
When I use 2.0 it segfaults. This happens when it aligns with another feature.

Code: Select all

freecad-daily
FreeCAD 0.21, Libs: 0.21R
© Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2022
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

Assembly4 workbench (v0.12.3) loaded
Path WB not found
connect failed: No such file or directory
^LAttachEngine3D::calculateAttachedPlacement:InertialCS: inertia tensor has axis of symmetry. Second and third axes of inertia are undefined.
AttachEngine3D::calculateAttachedPlacement:InertialCS: inertia tensor has axis of symmetry. Second and third axes of inertia are undefined.
AttachEngine3D::calculateAttachedPlacement:InertialCS: inertia tensor has axis of symmetry. Second and third axes of inertia are undefined.
AttachEngine3D::calculateAttachedPlacement:InertialCS: inertia tensor has axis of symmetry. Second and third axes of inertia are undefined.
AttachEngine3D::calculateAttachedPlacement: path curve second derivative is below 1e-14, can't align x axis.
PositionBySupport: AttachEngine3D::calculateAttachedPlacement: Frenet-Serret normal is undefined. Can't align to TN plane.
AttachEngine3D::calculateAttachedPlacement: path curve second derivative is below 1e-14, can't align x axis.
AttachEngine3D::calculateAttachedPlacement: path curve second derivative is below 1e-14, can't align x axis.
PositionBySupport: AttachEngine3D::calculateAttachedPlacement: Frenet-Serret normal is undefined. Can't align to TN plane.
AttachEngine3D::calculateAttachedPlacement: path curve second derivative is below 1e-14, can't align x axis.
AttachEngine3D::calculateAttachedPlacement: path curve second derivative is below 1e-14, can't align x axis.
PositionBySupport: AttachEngine3D::calculateAttachedPlacement: Frenet-Serret normal is undefined. Can't align to TN plane.
AttachEngine3D::calculateAttachedPlacement: path curve second derivative is below 1e-14, can't align x axis.
AttachEngine3D::calculateAttachedPlacement:InertialCS: inertia tensor has axis of symmetry. Second and third axes of inertia are undefined.
AttachEngine3D::calculateAttachedPlacement:InertialCS: inertia tensor has axis of symmetry. Second and third axes of inertia are undefined.
AttachEngine3D::calculateAttachedPlacement:InertialCS: inertia tensor has axis of symmetry. Second and third axes of inertia are undefined.
AttachEngine3D::calculateAttachedPlacement:InertialCS: inertia tensor has axis of symmetry. Second and third axes of inertia are undefined.
AttachEngine3D::calculateAttachedPlacement:InertialCS: inertia tensor has axis of symmetry. Second and third axes of inertia are undefined.
AttachEngine3D::calculateAttachedPlacement:InertialCS: inertia tensor has axis of symmetry. Second and third axes of inertia are undefined.
Recompute failed! Please check report view.
Transformed: Result has multiple solids. Only keeping the first.
Recompute failed! Please check report view.
Program received signal SIGSEGV, Segmentation fault.
#0  /lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7f34afcc1520]
#1  0x7f342dc03568 in Geom2d_Curve::Value(double) const from /lib/x86_64-linux-gnu/libTKG2d.so.7+0x18
#2  0x7f34250c6abf in ChFi3d_Builder::PerformMoreThreeCorner(int, int) from /lib/x86_64-linux-gnu/libTKFillet.so.7+0xbaff
#3  0x7f34250aa41b in ChFi3d_Builder::PerformIntersectionAtEnd(int) from /lib/x86_64-linux-gnu/libTKFillet.so.7+0x790b
#4  0x7f342509ea1f in ChFi3d_Builder::PerformOneCorner(int, bool) from /lib/x86_64-linux-gnu/libTKFillet.so.7+0x1c9f
#5  0x7f3425057551 in ChFi3d_Builder::PerformFilletOnVertex(int) from /lib/x86_64-linux-gnu/libTKFillet.so.7+0x491
#6  0x7f342505a6ce in ChFi3d_Builder::Compute() from /lib/x86_64-linux-gnu/libTKFillet.so.7+0xc7e
#7  0x7f34251b7e6b in BRepFilletAPI_MakeFillet::Build() from /lib/x86_64-linux-gnu/libTKFillet.so.7+0x2b
#8  0x7f339a124d60 in PartDesign::Fillet::execute() from /usr/lib/freecad-daily-python3/lib/_PartDesign.so+0x670
#9  0x7f34b1d2943a in App::DocumentObject::recompute() from /usr/lib/freecad-daily-python3/lib/libFreeCADApp.so+0x3ba
#10  0x7f342de73dad in Part::Feature::recompute() from /usr/lib/freecad-daily-python3/lib/Part.so+0xd
#11  0x7f34b1cefccd in App::Document::_recomputeFeature(App::DocumentObject*) from /usr/lib/freecad-daily-python3/lib/libFreeCADApp.so+0x2fd
#12  0x7f34b1cf430d in App::Document::recompute(std::vector<App::DocumentObject*, std::allocator<App::DocumentObject*> > const&, bool, bool*, int) from /usr/lib/freecad-daily-python3/lib/libFreeCADApp.so+0x53d
#13  0x7f34b1d62261 in App::DocumentPy::recompute(_object*) from /usr/lib/freecad-daily-python3/lib/libFreeCADApp.so+0x2f1
#14  0x7f34b1d58a6c in App::DocumentPy::staticCallback_recompute(_object*, _object*) from /usr/lib/freecad-daily-python3/lib/libFreeCADApp.so+0x2c
#15  /lib/x86_64-linux-gnu/libpython3.10.so.1.0(+0x12b048) [0x7f34b151e048]
#16  /lib/x86_64-linux-gnu/libpython3.10.so.1.0(_PyObject_MakeTpCall+0x8c) [0x7f34b14d8d9c]
#17  /lib/x86_64-linux-gnu/libpython3.10.so.1.0(_PyEval_EvalFrameDefault+0x9dcc) [0x7f34b146ea0c]
#18  /lib/x86_64-linux-gnu/libpython3.10.so.1.0(+0x1c61ff) [0x7f34b15b91ff]
#19  /lib/x86_64-linux-gnu/libpython3.10.so.1.0(PyEval_EvalCode+0xbe) [0x7f34b15b41ae]
#20  /lib/x86_64-linux-gnu/libpython3.10.so.1.0(+0x20fcfd) [0x7f34b1602cfd]
#21  /lib/x86_64-linux-gnu/libpython3.10.so.1.0(PyRun_StringFlags+0x79) [0x7f34b1603d29]
#22  0x7f34b1ab182c in Base::InterpreterSingleton::runString[abi:cxx11](char const*) from /usr/lib/freecad-daily-python3/lib/libFreeCADBase.so+0x6c
#23  0x7f34b240fd09 in Gui::Command::_runCommand(char const*, int, Gui::Command::DoCmd_Type, char const*) from /usr/lib/freecad-daily-python3/lib/libFreeCADGui.so+0x99
#24  /usr/lib/freecad-daily-python3/lib/PartDesignGui.so(+0x105bcb) [0x7f3399de8bcb]
#25  0x7f3399de92bc in PartDesignGui::TaskDlgFeatureParameters::accept() from /usr/lib/freecad-daily-python3/lib/PartDesignGui.so+0x10c
#26  0x7f3399de95b5 in PartDesignGui::TaskDlgSketchBasedParameters::accept() from /usr/lib/freecad-daily-python3/lib/PartDesignGui.so+0x75
#27  0x7f34b265555a in Gui::TaskView::TaskView::accept() from /usr/lib/freecad-daily-python3/lib/libFreeCADGui.so+0x6a
#28  /lib/x86_64-linux-gnu/libQt5Core.so.5(+0x2f17b8) [0x7f34b03e47b8]
#29  /lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x30e670) [0x7f34b1040670]
#30  /lib/x86_64-linux-gnu/libQt5Core.so.5(+0x2f17b8) [0x7f34b03e47b8]
#31  0x7f34b0f94116 in QAbstractButton::clicked(bool) from /lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x46
#32  /lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x26239e) [0x7f34b0f9439e]
#33  /lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x263fc4) [0x7f34b0f95fc4]
#34  0x7f34b0f961e7 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) from /lib/x86_64-linux-gnu/libQt5Widgets.so.5+0xf7
#35  0x7f34b0ee14ee in QWidget::event(QEvent*) from /lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x20e
#36  0x7f34b0e9e713 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x83
#37  0x7f34b0ea6364 in QApplication::notify(QObject*, QEvent*) from /lib/x86_64-linux-gnu/libQt5Widgets.so.5+0xa84
#38  0x7f34b23e5ea0 in Gui::GUIApplication::notify(QObject*, QEvent*) from /usr/lib/freecad-daily-python3/lib/libFreeCADGui.so+0x90
#39  0x7f34b03ace2a in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /lib/x86_64-linux-gnu/libQt5Core.so.5+0x13a
#40  0x7f34b0ea4e47 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) from /lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x1b7
#41  /lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x1c8d40) [0x7f34b0efad40]
#42  /lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x1cbfd5) [0x7f34b0efdfd5]
#43  0x7f34b0e9e713 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x83
#44  0x7f34b23e5ea0 in Gui::GUIApplication::notify(QObject*, QEvent*) from /usr/lib/freecad-daily-python3/lib/libFreeCADGui.so+0x90
#45  0x7f34b03ace2a in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /lib/x86_64-linux-gnu/libQt5Core.so.5+0x13a
#46  0x7f34b0793307 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) from /lib/x86_64-linux-gnu/libQt5Gui.so.5+0x697
#47  0x7f34b0768a2c in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /lib/x86_64-linux-gnu/libQt5Gui.so.5+0xac
#48  /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5(+0x73d6e) [0x7f34a9f5ad6e]
#49  /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x26b) [0x7f34adfa8d1b]
#50  /lib/x86_64-linux-gnu/libglib-2.0.so.0(+0xaa6f8) [0x7f34adffd6f8]
#51  /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x33) [0x7f34adfa63c3]
#52  0x7f34b04060a8 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /lib/x86_64-linux-gnu/libQt5Core.so.5+0x68
#53  0x7f34b03ab74b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /lib/x86_64-linux-gnu/libQt5Core.so.5+0x12b
#54  0x7f34b03b3ce4 in QCoreApplication::exec() from /lib/x86_64-linux-gnu/libQt5Core.so.5+0x94
#55  0x7f34b237b932 in Gui::Application::runApplication() from /usr/lib/freecad-daily-python3/lib/libFreeCADGui.so+0x1e92
#56  freecad-daily(+0x50cb) [0x559b1ec5f0cb]
#57  /lib/x86_64-linux-gnu/libc.so.6(+0x29d90) [0x7f34afca8d90]
#58  /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80) [0x7f34afca8e40]
#59  freecad-daily(+0x60d5) [0x559b1ec600d5]

Code: Select all

OS: Ubuntu 22.04.1 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.21.
Build type: Release
Branch: unknown
Hash: 1faf86c3da12c1712e1d5ec015721d9aa02f8672
Python 3.10.4, Qt 5.15.3, Coin 4.0.0, Vtk 9.1.0, OCC 7.5.1
Locale: English/United States (en_US)
Installed mods: 
  * A2plus 0.4.56a
  * Curves 0.5.6
  * fasteners 0.4.2
  * Assembly4 0.12.3
  * kicadStepUpMod 10.14.5
  * Help 1.0.3
  * ExplodedAssembly
Last edited by leoheck on Thu Aug 18, 2022 11:37 pm, edited 2 times in total.
chrisb
Veteran
Posts: 53930
Joined: Tue Mar 17, 2015 9:14 am

Re: Segfault

Post by chrisb »

And what did you do to provoke this?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
leoheck
Veteran
Posts: 1223
Joined: Tue Mar 13, 2018 5:56 pm
Location: Coffee shop

Re: Segfault when updating Hole Parameters (Part Design Workbench)

Post by leoheck »

Editing to update Hole007 (lol) and when Depth=2.0 it breaks Freecad,

Yeah, I know there are some issues with the file. But I am working to fix that.

This is the file, https://www.dropbox.com/s/ru702bgz0b226 ... FCStd?dl=0
chrisb
Veteran
Posts: 53930
Joined: Tue Mar 17, 2015 9:14 am

Re: Segfault when updating Hole Parameters (Part Design Workbench)

Post by chrisb »

No crash here (but still the other errors in your file). Can you retry with the Appimage?

Code: Select all

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.21.29997 (Git)
Build type: Release
Branch: master
Hash: b52967d52ac46eff7c59e74d991f3f5b298944ef
Python 3.10.5, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.2
Locale: C/Default (C)
Installed mods: 
  * FC_SU
  * FeedsAndSpeeds 0.4.0
  * fcgear 1.0.0
  * fasteners 0.3.51
  * sheetmetal 0.2.56
  * ExplodedAssembly
  * Curves 0.5.4
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
leoheck
Veteran
Posts: 1223
Joined: Tue Mar 13, 2018 5:56 pm
Location: Coffee shop

Re: Segfault when updating Hole Parameters (Part Design Workbench)

Post by leoheck »

Just donwload the AppImage now.

It does not crash, it instead shows a red line in the Report View.

Code: Select all

21:58:40  Recompute failed! Please check report view.
The AppImage file was this one: FreeCAD_weekly-builds-30121-2022-08-18-conda-Linux-x86_64-py310.AppImage

Code: Select all

OS: Ubuntu 22.04.1 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.21.30121 (Git) AppImage
Build type: Release
Branch: master
Hash: 9c929897ac46f2309e2bf34b7106f49fcb737a1d
Python 3.10.5, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.2
Locale: English/United States (en_US)
Installed mods: 
  * A2plus 0.4.56a
  * Curves 0.5.6
  * fasteners 0.4.2
  * Assembly4 0.12.3
  * kicadStepUpMod 10.14.5
  * Help 1.0.3
  * ExplodedAssembly
user1234
Veteran
Posts: 3343
Joined: Mon Jul 11, 2016 5:08 pm

Re: Segfault when updating Hole Parameters (Part Design Workbench)

Post by user1234 »

No crash here, also no error. But it cuts nothing (no change) since the cut is in the void. I ignore the other errors.

Code: Select all

OS: Debian GNU/Linux 11 (bullseye) (X-Cinnamon/lightdm-xsession)
Word size of FreeCAD: 64-bit
Version: 0.21.30134 (Git)
Build type: Release
Branch: master
Hash: d6806167e1255a58af05ec6ccc089dce5b8b4fb1
Python 3.9.2, Qt 5.15.2, Coin 4.0.0, Vtk 9.0.1, OCC 7.6.3
Locale: English/United States (en_US)

Greetings
user1234
chrisb
Veteran
Posts: 53930
Joined: Tue Mar 17, 2015 9:14 am

Re: Segfault when updating Hole Parameters (Part Design Workbench)

Post by chrisb »

leoheck wrote: Fri Aug 19, 2022 1:01 am It does not crash, it instead shows a red line in the Report View.

Code: Select all

21:58:40  Recompute failed! Please check report view.
This comes from the other errors.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Segfault when updating Hole Parameters (Part Design Workbench)

Post by thomas-neemann »

leoheck wrote: Thu Aug 18, 2022 11:34 pm ....
The problem described does not appear here either

Code: Select all

OS: Ubuntu 20.04.1 LTS (XFCE/xubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.20)
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.9.13, Qt 5.12.9, Coin 4.0.0, Vtk 9.1.0, OCC 7.5.3
Locale: German/Germany (de_DE)
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
leoheck
Veteran
Posts: 1223
Joined: Tue Mar 13, 2018 5:56 pm
Location: Coffee shop

Re: Segfault when updating Hole Parameters (Part Design Workbench)

Post by leoheck »

Is it possible that it is related to the Assembly4 workbench in the version I am using?
It is version 0.12.3 (8/15/22)

Do you have the same version installed?
Last edited by leoheck on Sat Aug 20, 2022 3:46 am, edited 1 time in total.
chrisb
Veteran
Posts: 53930
Joined: Tue Mar 17, 2015 9:14 am

Re: Segfault when updating Hole Parameters (Part Design Workbench)

Post by chrisb »

leoheck wrote: Fri Aug 19, 2022 6:30 pm Do you have the same version installed?
I don't have it currently installed.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply