FreeCAD 0.19dev - PartDesign - Crash

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Post Reply
user1234
Veteran
Posts: 3512
Joined: Mon Jul 11, 2016 5:08 pm

FreeCAD 0.19dev - PartDesign - Crash

Post by user1234 »

Hello!

I found a crash. When i replace a defect path on a addpipe, than FreeCAD crashes. I tried it to reproduce on a minimal example, but then it worked. When i make it complete new, it also works, so the shape is valid. I do not know why it crashes.

Here a the log, maybe it helped.
_addpipe_crash.webm
(973.14 KiB) Downloaded 32 times

Code: Select all

Program received signal SIGSEGV, Segmentation fault.
#0  /lib/x86_64-linux-gnu/libc.so.6(+0x37840) [0x7f6d33151840]
#1  0x7f6cae789147 in ShapeFix_Face::FixOrientation(NCollection_DataMap<TopoDS_Shape, NCollection_List<TopoDS_Shape>, TopTools_ShapeMapHasher>&) from /lib/x86_64-linux-gnu/libTKShHealing.so.7+0x827
#2  0x7f6cae78ea64 in ShapeFix_Face::Perform() from /lib/x86_64-linux-gnu/libTKShHealing.so.7+0xa54
#3  0x7f6cafe4fbb6 in ModelRefine::FaceTypedBSpline::buildFace(std::vector<TopoDS_Face, std::allocator<TopoDS_Face> > const&) const from /home/pc/Programs/FreeCAD_Link/Mod/Part/Part.so+0x3fa
#4  0x7f6cafe50238 in ModelRefine::FaceUniter::process() from /home/pc/Programs/FreeCAD_Link/Mod/Part/Part.so+0x3b2
#5  0x7f6cafe5152d in Part::BRepBuilderAPI_RefineModel::Build() from /home/pc/Programs/FreeCAD_Link/Mod/Part/Part.so+0x3ed
#6  0x7f6cafe510dc in Part::BRepBuilderAPI_RefineModel::BRepBuilderAPI_RefineModel(TopoDS_Shape const&) from /home/pc/Programs/FreeCAD_Link/Mod/Part/Part.so+0x84
#7  0x7f6cb5f705b7 in PartDesign::Boolean::refineShapeIfActive(TopoDS_Shape const&) const from /home/pc/Programs/FreeCAD_Link/Mod/PartDesign/_PartDesign.so+0x55
#8  0x7f6cb5f70073 in PartDesign::Boolean::execute() from /home/pc/Programs/FreeCAD_Link/Mod/PartDesign/_PartDesign.so+0x795
#9  0x7f6d370a683e in App::DocumentObject::recompute() from /home/pc/Programs/FreeCAD_Link/lib/libFreeCADApp.so+0xc2
#10  0x7f6cafbe1c4d in Part::Feature::recompute() from /home/pc/Programs/FreeCAD_Link/Mod/Part/Part.so+0x1b
#11  0x7f6d36fcc404 in App::Document::_recomputeFeature(App::DocumentObject*) from /home/pc/Programs/FreeCAD_Link/lib/libFreeCADApp.so+0x1c8
#12  0x7f6d36fca706 in App::Document::recompute(std::vector<App::DocumentObject*, std::allocator<App::DocumentObject*> > const&, bool, bool*, int) from /home/pc/Programs/FreeCAD_Link/lib/libFreeCADApp.so+0x73e
#13  0x7f6d3711fed5 in App::DocumentPy::recompute(_object*) from /home/pc/Programs/FreeCAD_Link/lib/libFreeCADApp.so+0x355
#14  0x7f6d37117204 in App::DocumentPy::staticCallback_recompute(_object*, _object*) from /home/pc/Programs/FreeCAD_Link/lib/libFreeCADApp.so+0xec
#15  /lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyMethodDef_RawFastCallKeywords+0x2f9) [0x7f6d35c5ccc9]
#16  /lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyCFunction_FastCallKeywords+0x25) [0x7f6d35c5da05]
#17  /lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x7e90) [0x7f6d35a5ecb0]
#18  /lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalCodeWithName+0x996) [0x7f6d35b861e6]
#19  /lib/x86_64-linux-gnu/libpython3.7m.so.1.0(PyEval_EvalCodeEx+0x3e) [0x7f6d35b8646e]
#20  /lib/x86_64-linux-gnu/libpython3.7m.so.1.0(PyEval_EvalCode+0x1b) [0x7f6d35b8723b]
#21  /lib/x86_64-linux-gnu/libpython3.7m.so.1.0(PyRun_StringFlags+0x8b) [0x7f6d35b54feb]
#22  0x7f6d366104ae in Base::InterpreterSingleton::runString[abi:cxx11](char const*) from /home/pc/Programs/FreeCAD_Link/lib/libFreeCADBase.so+0xd8
#23  0x7f6d384cfefc in Gui::Command::_runCommand(char const*, int, Gui::Command::DoCmd_Type, char const*) from /home/pc/Programs/FreeCAD_Link/lib/libFreeCADGui.so+0xca
#24  0x7f6d384cfbc6 in Gui::Command::_doCommand(char const*, int, Gui::Command::DoCmd_Type, char const*, ...) from /home/pc/Programs/FreeCAD_Link/lib/libFreeCADGui.so+0x112
#25  0x7f6c841f5d05 in PartDesignGui::TaskDlgPipeParameters::accept() from /home/pc/Programs/FreeCAD_Link/Mod/PartDesign/PartDesignGui.so+0x905
#26  0x7f6d387defd8 in Gui::TaskView::TaskView::accept() from /home/pc/Programs/FreeCAD_Link/lib/libFreeCADGui.so+0x6e
#27  /home/pc/Programs/FreeCAD_Link/lib/libFreeCADGui.so(+0x1256793) [0x7f6d387df793]
#28  0x7f6d33afa906 in QMetaObject::activate(QObject*, int, int, void**) from /lib/x86_64-linux-gnu/libQt5Core.so.5+0x766
#29  /lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x2e52f0) [0x7f6d345d42f0]
#30  0x7f6d33afa906 in QMetaObject::activate(QObject*, int, int, void**) from /lib/x86_64-linux-gnu/libQt5Core.so.5+0x766
#31  0x7f6d34534642 in QAbstractButton::clicked(bool) from /lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x42
#32  /lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x24585a) [0x7f6d3453485a]
#33  /lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x246c1f) [0x7f6d34535c1f]
#34  0x7f6d34535df5 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) from /lib/x86_64-linux-gnu/libQt5Widgets.so.5+0xe5
#35  0x7f6d3448c588 in QWidget::event(QEvent*) from /lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x1d8
#36  0x7f6d3444e4b1 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x81
#37  0x7f6d34455b98 in QApplication::notify(QObject*, QEvent*) from /lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x458
#38  0x7f6d38497339 in Gui::GUIApplication::notify(QObject*, QEvent*) from /home/pc/Programs/FreeCAD_Link/lib/libFreeCADGui.so+0xff
#39  0x7f6d33ad15a9 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /lib/x86_64-linux-gnu/libQt5Core.so.5+0x179
#40  0x7f6d34454ec9 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) from /lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x1a9
#41  /lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x1b8014) [0x7f6d344a7014]
#42  /lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x1bab9e) [0x7f6d344a9b9e]
#43  0x7f6d3444e4b1 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x81
#44  0x7f6d34455950 in QApplication::notify(QObject*, QEvent*) from /lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x210
#45  0x7f6d38497339 in Gui::GUIApplication::notify(QObject*, QEvent*) from /home/pc/Programs/FreeCAD_Link/lib/libFreeCADGui.so+0xff
#46  0x7f6d33ad15a9 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /lib/x86_64-linux-gnu/libQt5Core.so.5+0x179
#47  0x7f6d33e7efe3 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) from /lib/x86_64-linux-gnu/libQt5Gui.so.5+0x703
#48  0x7f6d33e80e25 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) from /lib/x86_64-linux-gnu/libQt5Gui.so.5+0x135
#49  0x7f6d33e5b06b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /lib/x86_64-linux-gnu/libQt5Gui.so.5+0xab
#50  /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5(+0xdd3eb) [0x7f6d2e0133eb]
#51  0x7f6d33ad027b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /lib/x86_64-linux-gnu/libQt5Core.so.5+0x13b
#52  0x7f6d33ad8262 in QCoreApplication::exec() from /lib/x86_64-linux-gnu/libQt5Core.so.5+0x92
#53  0x7f6d383849fb in Gui::Application::runApplication() from /home/pc/Programs/FreeCAD_Link/lib/libFreeCADGui.so+0x228f
#54  ./FreeCAD(main+0xae7) [0x55dfb4aaf0d6]
#55  /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb) [0x7f6d3313e09b]
#56  ./FreeCAD(_start+0x2a) [0x55dfb4aae4ba]

Version:

Code: Select all

OS: Debian GNU/Linux 10 (buster) (X-Cinnamon/lightdm-xsession)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.Unknown
Build type: DebWithRelInfo
Python version: 3.7.3
Qt version: 5.11.3
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
on git commit commit 24d29cff33d58b9650c7da0b962bdb41f86a44e0 on link merge, which is simmilar to

Code: Select all

OS: Debian GNU/Linux 10 (buster) (X-Cinnamon/lightdm-xsession)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.17798 (Git)
Build type: Release
Branch: master
Hash: 7e60631239109c632a8f6cca83f6e7e5502e43a1
Python version: 3.7.3
Qt version: 5.11.3
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
File is unfortunately too big.

Greetings
user

edit: added version
Post Reply