View Issue Details

IDProjectCategoryView StatusLast Update
0004291FreeCADBugpublic2021-12-29 03:50
ReporterYohannFra Assigned Tochennes  
PrioritynormalSeveritycrashReproducibilityrandom
Status closedResolutionfixed 
PlatformPCOSManjaro Linux x86_64OS VersionKernel: 5.4.23-1
Product Version0.18 
Target Version0.20Fixed in Version0.20 
Summary0004291: Freecad crashes when creating filet
DescriptionFreecad crashes when creating a filet in Part design mode. It worked for another filet on the same model but this one always crashes.
Steps To ReproduceI tried to reproduce the crash on an easy small piece but it didn't work.
Additional InformationHere is the trace of the crash

Program received signal SIGSEGV, Segmentation fault.
#0  /usr/lib/libc.so.6(+0x3bd70) [0x7fc24d20dd70]
#1  0x7fc1b43a0d4e in TopoDS_Iterator::Initialize(TopoDS_Shape const&, bool, bool) from /tmp/.mount_FreecaQ3FJYU/usr/lib/./libTKBRep.so.7+0x4e
0000002  0x7fc1b43a3220 in TopExp::FirstVertex(TopoDS_Edge const&, bool) from /tmp/.mount_FreecaQ3FJYU/usr/lib/./libTKBRep.so.7+0x60
0000003  0x7fc1b76f4a8f in ChFi3d_Builder::PerformMoreThreeCorner(int, int) from /tmp/.mount_FreecaQ3FJYU/usr/lib/./libTKFillet.so.7+0x5cdf
0000004  0x7fc1b772ddc5 in ChFi3d_FilBuilder::PerformTwoCorner(int) from /tmp/.mount_FreecaQ3FJYU/usr/lib/./libTKFillet.so.7+0x13f5
0000005  0x7fc1b7680ace in ChFi3d_Builder::PerformFilletOnVertex(int) from /tmp/.mount_FreecaQ3FJYU/usr/lib/./libTKFillet.so.7+0x41e
0000006  0x7fc1b7681229 in ChFi3d_Builder::Compute() from /tmp/.mount_FreecaQ3FJYU/usr/lib/./libTKFillet.so.7+0x619
0000007  0x7fc1b77ff9c0 in BRepFilletAPI_MakeFillet::Build() from /tmp/.mount_FreecaQ3FJYU/usr/lib/./libTKFillet.so.7+0x20
0000008  0x7fc1cdc0d988 in PartDesign::Fillet::execute() from /tmp/.mount_FreecaQ3FJYU/usr/lib/_PartDesign.so+0x3d8
0000009  0x7fc2521bf6ad in App::DocumentObject::recompute() from /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libFreeCADApp.so+0x8d
0000010  0x7fc1cd67452b in Part::Feature::recompute() from /tmp/.mount_FreecaQ3FJYU/usr/lib/./Part.so+0xb
0000011  0x7fc252180b9c in App::Document::_recomputeFeature(App::DocumentObject*) from /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libFreeCADApp.so+0x9c
0000012  0x7fc2521850e1 in App::Document::recompute() from /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libFreeCADApp.so+0x1e1
0000013  0x7fc2521f1324 in App::DocumentPy::recompute(_object*) from /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libFreeCADApp.so+0x34
0000014  0x7fc2521f1457 in App::DocumentPy::staticCallback_recompute(_object*, _object*) from /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libFreeCADApp.so+0x27
0000015  /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libpython3.6m.so.1.0(_PyCFunction_FastCallDict+0x18e) [0x7fc251813c1e]
0000016  /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libpython3.6m.so.1.0(+0x1650da) [0x7fc2518ad0da]
0000017  /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libpython3.6m.so.1.0(_PyEval_EvalFrameDefault+0x3002) [0x7fc2518b0902]
0000018  /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libpython3.6m.so.1.0(+0x164cde) [0x7fc2518accde]
0000019  /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libpython3.6m.so.1.0(PyEval_EvalCodeEx+0x6d) [0x7fc2518ad30d]
0000020  /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libpython3.6m.so.1.0(PyEval_EvalCode+0x3b) [0x7fc2518ad35b]
0000021  /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libpython3.6m.so.1.0(PyRun_StringFlags+0x92) [0x7fc2518e8772]
0000022  0x7fc251d46274 in Base::InterpreterSingleton::runString(char const*) from /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libFreeCADBase.so+0x54
0000023  0x7fc252988f4a in Gui::Command::doCommand(Gui::Command::DoCmd_Type, char const*, ...) from /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libFreeCADGui.so+0x12a
0000024  0x7fc2529893e4 in Gui::Command::updateActive() from /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libFreeCADGui.so+0x24
0000025  0x7fc1adc63be5 in finishFeature(Gui::Command const*, std::string const&, App::DocumentObject*, bool, bool) from /tmp/.mount_FreecaQ3FJYU/usr/lib/PartDesignGui.so+0x125
0000026  0x7fc1adc64360 in finishDressupFeature(Gui::Command const*, std::string const&, Part::Feature*, std::vector<std::string, std::allocator<std::string> > const&) from /tmp/.mount_FreecaQ3FJYU/usr/lib/PartDesignGui.so+0x300
0000027  0x7fc1adc66223 in makeChamferOrFillet(Gui::Command*, std::string const&) from /tmp/.mount_FreecaQ3FJYU/usr/lib/PartDesignGui.so+0xe3
0000028  0x7fc1adc663cd in CmdPartDesignFillet::activated(int) from /tmp/.mount_FreecaQ3FJYU/usr/lib/PartDesignGui.so+0x2d
0000029  0x7fc25298d14c in Gui::Command::invoke(int) from /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libFreeCADGui.so+0x4c
0000030  0x7fc24df6a8d1 in QMetaObject::activate(QObject*, int, int, void**) from /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libQt5Core.so.5+0x2c1
0000031  0x7fc24e8e5372 in QAction::triggered(bool) from /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libQt5Widgets.so.5+0x32
0000032  0x7fc24e8e809d in QAction::activate(QAction::ActionEvent) from /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libQt5Widgets.so.5+0x5d
0000033  /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libQt5Widgets.so.5(+0x25952d) [0x7fc24e9ea52d]
0000034  0x7fc24e9ea664 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) from /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libQt5Widgets.so.5+0xd4
0000035  0x7fc24eab164a in QToolButton::mouseReleaseEvent(QMouseEvent*) from /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libQt5Widgets.so.5+0xa
0000036  0x7fc24e93173a in QWidget::event(QEvent*) from /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libQt5Widgets.so.5+0x96a
0000037  0x7fc24eab1729 in QToolButton::event(QEvent*) from /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libQt5Widgets.so.5+0x69
0000038  0x7fc24e8eec6c in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libQt5Widgets.so.5+0x9c
#39  0x7fc24e8f3b5d in QApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libQt5Widgets.so.5+0xc6d
#40  0x7fc252964371 in Gui::GUIApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libFreeCADGui.so+0x41
0000041  0x7fc24df40425 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libQt5Core.so.5+0x75
0000042  0x7fc24e8f2860 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) from /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libQt5Widgets.so.5+0x1a0
0000043  /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libQt5Widgets.so.5(+0x1b9cd1) [0x7fc24e94acd1]
0000044  /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libQt5Widgets.so.5(+0x1bc2c3) [0x7fc24e94d2c3]
0000045  0x7fc24e8eec6c in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libQt5Widgets.so.5+0x9c
0000046  0x7fc24e8f32ea in QApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libQt5Widgets.so.5+0x3fa
0000047  0x7fc252964371 in Gui::GUIApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libFreeCADGui.so+0x41
0000048  0x7fc24df40425 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libQt5Core.so.5+0x75
0000049  0x7fc24e2e47db in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) from /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libQt5Gui.so.5+0x40b
0000050  0x7fc24e2e5f75 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) from /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libQt5Gui.so.5+0x115
0000051  0x7fc24e2c774b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libQt5Gui.so.5+0x7b
0000052  /tmp/.mount_FreecaQ3FJYU/usr/lib/libQt5XcbQpa.so.5(+0xa05d0) [0x7fc2475d25d0]
0000053  /tmp/.mount_FreecaQ3FJYU/usr/lib/libglib-2.0.so.0(+0x569be) [0x7fc24a50b9be]
0000054  /tmp/.mount_FreecaQ3FJYU/usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x33) [0x7fc24a50c826]
0000055  /tmp/.mount_FreecaQ3FJYU/usr/lib/libglib-2.0.so.0(+0x57a0b) [0x7fc24a50ca0b]
0000056  /tmp/.mount_FreecaQ3FJYU/usr/lib/libglib-2.0.so.0(g_main_context_iteration+0x4a) [0x7fc24a50cacf]
0000057  0x7fc24df9198c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libQt5Core.so.5+0x5c
0000058  0x7fc24df3e53b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libQt5Core.so.5+0xfb
0000059  0x7fc24df46466 in QCoreApplication::exec() from /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libQt5Core.so.5+0x86
0000060  0x7fc25290125c in Gui::Application::runApplication() from /tmp/.mount_FreecaQ3FJYU/usr/bin/../lib/libFreeCADGui.so+0x16bc
0000061  /tmp/.mount_FreecaQ3FJYU/usr/bin/FreeCAD(main+0x6c9) [0x403829]
0000062  /usr/lib/libc.so.6(__libc_start_main+0xf3) [0x7fc24d1f9023]
0000063  /tmp/.mount_FreecaQ3FJYU/usr/bin/FreeCAD() [0x404699]
Tagscrash, fillet, OCC Bug, upstream
FreeCAD InformationOS: Manjaro Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16146 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.18.4)
Hash: 980bf9060e28555fecd9e3462f68ca74007b70f8
Python version: 3.6.7
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)

Relationships

duplicate of 0004543 closedchennes FreeCAD crashes when OCC fails with fillets and chamfers 

Activities

openBrain

2020-03-20 09:18

developer   ~0014245

@YohannFra : this is already (well) known. You may easily have found information by searching the tracker and/or the forum. Also please please process as per our reporting guidelines and open a new topic in our forum if you want to discuss your issue further. Thanks

Kunda1

2020-03-20 14:03

administrator   ~0014249

@YohannFra as openBrain wrote, please follow our tracker guidelines.
@openBrain shall we close this ticket then ?

openBrain

2020-03-20 19:57

developer   ~0014251

@Kunda1 : I let it open just in case this could be a crash in a context that we didn't already know (hard to know : no file, no reproducing procedure). But this is very probably a duplicate. Up to you. :)

chennes

2021-02-04 05:20

administrator   ~0015261

While I cannot test, that backtrace is very familiar, and I believe this is resolved by the fix discussed in 0004543.

Kunda1

2021-02-27 13:29

administrator   ~0015449

@chennes has created a downstream patch that fixes the crash. It is slowly being integrated in to downstream packages (ATM libpack is the only one but more will follow). This issue is therefore being marked as resolved. It will be closed once all packages are patched or when (if) upstream merges.

chennes

2021-12-29 03:50

administrator   ~0016145

This patch has been merged into OpenCASCADE 7.6, and the patch for earlier OCCT versions has been incorporated into all packages of FreeCAD 0.19.3 that I am aware of.

Issue History

Date Modified Username Field Change
2020-03-20 08:40 YohannFra New Issue
2020-03-20 09:18 openBrain Status new => feedback
2020-03-20 09:18 openBrain Note Added: 0014245
2020-03-20 14:03 Kunda1 Note Added: 0014249
2020-03-20 19:57 openBrain Note Added: 0014251
2021-02-03 16:56 Kunda1 Tag Attached: crash
2021-02-03 16:56 Kunda1 Tag Attached: fillet
2021-02-03 16:56 Kunda1 Tag Attached: upstream
2021-02-03 16:56 Kunda1 Tag Attached: OCC Bug
2021-02-04 05:20 chennes Note Added: 0015261
2021-02-06 06:49 abdullah Target Version => 0.20
2021-02-27 13:29 Kunda1 Assigned To => chennes
2021-02-27 13:29 Kunda1 Status feedback => resolved
2021-02-27 13:29 Kunda1 Resolution open => fixed
2021-02-27 13:29 Kunda1 Fixed in Version => 0.20
2021-02-27 13:29 Kunda1 Note Added: 0015449
2021-02-27 13:29 Kunda1 Relationship added duplicate of 0004543
2021-12-29 03:50 chennes Status resolved => closed
2021-12-29 03:50 chennes Note Added: 0016145