View Issue Details

IDProjectCategoryView StatusLast Update
0004078FreeCADBugpublic2021-12-29 03:50
Reporterroipoussiere Assigned Tochennes  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Product Version0.18 
Target Version0.20Fixed in Version0.20 
Summary0004078: Crash when applying a fillet on a arc.
DescriptionFreecad crash when I try to apply a fillet on a arc. You just have to select the fillet tool and select the edge (the fillet menu is not even opened). This arc has been generated by an other fillet.

Stacktrace:

Delete: Selection not restricted to one sketch and its subelementsProgram received signal SIGSEGV, Segmentation fault.
#0  /usr/lib/libc.so.6(+0x3a7e0) [0x7f89ba6dd7e0]
#1  0x7f8932daae88 in Geom2d_Curve::Value(double) const from /tmp/.mount_FreeCAMZHBBs/usr/lib/./libTKG2d.so.7+0x8
0000002  0x7f8937406478 in ChFi3d_Builder::PerformOneCorner(int, bool) from /tmp/.mount_FreeCAMZHBBs/usr/lib/./libTKFillet.so.7+0x2988
0000003  0x7f89373a5b27 in ChFi3d_Builder::PerformFilletOnVertex(int) from /tmp/.mount_FreeCAMZHBBs/usr/lib/./libTKFillet.so.7+0x477
0000004  0x7f89373a6229 in ChFi3d_Builder::Compute() from /tmp/.mount_FreeCAMZHBBs/usr/lib/./libTKFillet.so.7+0x619
0000005  0x7f89375249c0 in BRepFilletAPI_MakeFillet::Build() from /tmp/.mount_FreeCAMZHBBs/usr/lib/./libTKFillet.so.7+0x20
0000006  0x7f895190d988 in PartDesign::Fillet::execute() from /tmp/.mount_FreeCAMZHBBs/usr/lib/_PartDesign.so+0x3d8
0000007  0x7f89bf85f6ad in App::DocumentObject::recompute() from /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libFreeCADApp.so+0x8d
0000008  0x7f895137452b in Part::Feature::recompute() from /tmp/.mount_FreeCAMZHBBs/usr/lib/./Part.so+0xb
0000009  0x7f89bf820b9c in App::Document::_recomputeFeature(App::DocumentObject*) from /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libFreeCADApp.so+0x9c
0000010  0x7f89bf8250e1 in App::Document::recompute() from /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libFreeCADApp.so+0x1e1
0000011  0x7f89bf891324 in App::DocumentPy::recompute(_object*) from /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libFreeCADApp.so+0x34
0000012  0x7f89bf891457 in App::DocumentPy::staticCallback_recompute(_object*, _object*) from /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libFreeCADApp.so+0x27
0000013  /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libpython3.6m.so.1.0(_PyCFunction_FastCallDict+0x18e) [0x7f89beeb3c1e]
0000014  /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libpython3.6m.so.1.0(+0x1650da) [0x7f89bef4d0da]
0000015  /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libpython3.6m.so.1.0(_PyEval_EvalFrameDefault+0x3002) [0x7f89bef50902]
0000016  /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libpython3.6m.so.1.0(+0x164cde) [0x7f89bef4ccde]
0000017  /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libpython3.6m.so.1.0(PyEval_EvalCodeEx+0x6d) [0x7f89bef4d30d]
0000018  /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libpython3.6m.so.1.0(PyEval_EvalCode+0x3b) [0x7f89bef4d35b]
0000019  /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libpython3.6m.so.1.0(PyRun_StringFlags+0x92) [0x7f89bef88772]
0000020  0x7f89bf3e6274 in Base::InterpreterSingleton::runString(char const*) from /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libFreeCADBase.so+0x54
0000021  0x7f89c0028f4a in Gui::Command::doCommand(Gui::Command::DoCmd_Type, char const*, ...) from /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libFreeCADGui.so+0x12a
0000022  0x7f89c00293e4 in Gui::Command::updateActive() from /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libFreeCADGui.so+0x24
0000023  0x7f89319cbbe5 in finishFeature(Gui::Command const*, std::string const&, App::DocumentObject*, bool, bool) from /tmp/.mount_FreeCAMZHBBs/usr/lib/PartDesignGui.so+0x125
0000024  0x7f89319cc360 in finishDressupFeature(Gui::Command const*, std::string const&, Part::Feature*, std::vector<std::string, std::allocator<std::string> > const&) from /tmp/.mount_FreeCAMZHBBs/usr/lib/PartDesignGui.so+0x300
0000025  0x7f89319ce223 in makeChamferOrFillet(Gui::Command*, std::string const&) from /tmp/.mount_FreeCAMZHBBs/usr/lib/PartDesignGui.so+0xe3
0000026  0x7f89319ce3cd in CmdPartDesignFillet::activated(int) from /tmp/.mount_FreeCAMZHBBs/usr/lib/PartDesignGui.so+0x2d
0000027  0x7f89c002d14c in Gui::Command::invoke(int) from /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libFreeCADGui.so+0x4c
0000028  0x7f89bb5fe8d1 in QMetaObject::activate(QObject*, int, int, void**) from /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libQt5Core.so.5+0x2c1
0000029  0x7f89bbf79372 in QAction::triggered(bool) from /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libQt5Widgets.so.5+0x32
0000030  0x7f89bbf7c09d in QAction::activate(QAction::ActionEvent) from /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libQt5Widgets.so.5+0x5d
0000031  /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libQt5Widgets.so.5(+0x25952d) [0x7f89bc07e52d]
0000032  0x7f89bc07e664 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) from /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libQt5Widgets.so.5+0xd4
0000033  0x7f89bc14564a in QToolButton::mouseReleaseEvent(QMouseEvent*) from /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libQt5Widgets.so.5+0xa
0000034  0x7f89bbfc573a in QWidget::event(QEvent*) from /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libQt5Widgets.so.5+0x96a
0000035  0x7f89bc145729 in QToolButton::event(QEvent*) from /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libQt5Widgets.so.5+0x69
0000036  0x7f89bbf82c6c in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libQt5Widgets.so.5+0x9c
0000037  0x7f89bbf87b5d in QApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libQt5Widgets.so.5+0xc6d
0000038  0x7f89c0004371 in Gui::GUIApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libFreeCADGui.so+0x41
#39  0x7f89bb5d4425 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libQt5Core.so.5+0x75
#40  0x7f89bbf86860 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) from /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libQt5Widgets.so.5+0x1a0
0000041  /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libQt5Widgets.so.5(+0x1b9cd1) [0x7f89bbfdecd1]
0000042  /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libQt5Widgets.so.5(+0x1bc2c3) [0x7f89bbfe12c3]
0000043  0x7f89bbf82c6c in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libQt5Widgets.so.5+0x9c
0000044  0x7f89bbf872ea in QApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libQt5Widgets.so.5+0x3fa
0000045  0x7f89c0004371 in Gui::GUIApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libFreeCADGui.so+0x41
0000046  0x7f89bb5d4425 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libQt5Core.so.5+0x75
0000047  0x7f89bb9787db in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) from /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libQt5Gui.so.5+0x40b
0000048  0x7f89bb979f75 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) from /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libQt5Gui.so.5+0x115
0000049  0x7f89bb95b74b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libQt5Gui.so.5+0x7b
0000050  /tmp/.mount_FreeCAMZHBBs/usr/lib/libQt5XcbQpa.so.5(+0xa05d0) [0x7f89b53805d0]
0000051  /tmp/.mount_FreeCAMZHBBs/usr/lib/libglib-2.0.so.0(+0x569be) [0x7f89b74589be]
0000052  /tmp/.mount_FreeCAMZHBBs/usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x33) [0x7f89b7459826]
0000053  /tmp/.mount_FreeCAMZHBBs/usr/lib/libglib-2.0.so.0(+0x57a0b) [0x7f89b7459a0b]
0000054  /tmp/.mount_FreeCAMZHBBs/usr/lib/libglib-2.0.so.0(g_main_context_iteration+0x4a) [0x7f89b7459acf]
0000055  0x7f89bb62598c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libQt5Core.so.5+0x5c
0000056  0x7f89bb5d253b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libQt5Core.so.5+0xfb
0000057  0x7f89bb5da466 in QCoreApplication::exec() from /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libQt5Core.so.5+0x86
0000058  0x7f89bffa125c in Gui::Application::runApplication() from /tmp/.mount_FreeCAMZHBBs/usr/bin/../lib/libFreeCADGui.so+0x16bc
0000059  /tmp/.mount_FreeCAMZHBBs/usr/bin/FreeCAD(main+0x6c9) [0x403829]
0000060  /usr/lib/libc.so.6(__libc_start_main+0xf3) [0x7f89ba6c9ee3]
0000061  /tmp/.mount_FreeCAMZHBBs/usr/bin/FreeCAD() [0x404699]
Steps To ReproducePlease note that all images below will be accessible until 4th august, 2020. Do backups if you think that this issue will still be here at this date.

1. in Part Design mode, create new sketch with a square and on hole:



2. Extrude this shape:



3. On the front face of this piece, create a new sketch, with an other square and an arc that fit the diameter of the previously created hole:



4. And extrude it:



5. Now create a fillet on the inner arc:


6. Freecad crashes when you click on the fillet button then select one of these edges below:
Additional InformationOS: Manjaro Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16131 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.18.3)
Hash: 3129ae4296e40ed20e7b3d460b86e6969acbe1c3
Python version: 3.6.7
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: French/France (fr_FR)
Tagscrash, fillet, OCC Bug, upstream
FreeCAD Information

Relationships

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

Activities

roipoussiere

2019-08-04 10:10

reporter  

bug_freecad.FCStd (20,184 bytes)

roipoussiere

2019-08-04 10:23

reporter  

chennes

2021-02-04 05:18

administrator   ~0015260

In my testing, this is resolved by the fix discussed in 0004543.

Kunda1

2021-02-27 13:27

administrator   ~0015448

Last edited: 2021-02-27 13:27

@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   ~0016144

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
2019-08-04 10:10 roipoussiere New Issue
2019-08-04 10:10 roipoussiere File Added: bug_freecad.FCStd
2019-08-04 10:23 roipoussiere File Added: 2019-08-04-124454_1680x1050_scrot.png
2019-08-04 10:23 roipoussiere File Added: 2019-08-04-124520_1680x1050_scrot.png
2019-08-04 10:23 roipoussiere File Added: 2019-08-04-124540_1680x1050_scrot.png
2019-08-04 10:23 roipoussiere File Added: 2019-08-04-124548_1680x1050_scrot.png
2019-08-04 10:23 roipoussiere File Added: 2019-08-04-124606_1680x1050_scrot.png
2019-08-04 10:23 roipoussiere File Added: 2019-08-04-124645_1680x1050_scrot.png
2021-02-03 16:55 Kunda1 Tag Attached: crash
2021-02-03 16:55 Kunda1 Tag Attached: fillet
2021-02-03 16:55 Kunda1 Tag Attached: upstream
2021-02-03 16:55 Kunda1 Tag Attached: OCC Bug
2021-02-04 05:18 chennes Note Added: 0015260
2021-02-06 06:49 abdullah Target Version => 0.20
2021-02-27 13:27 Kunda1 Assigned To => chennes
2021-02-27 13:27 Kunda1 Status new => resolved
2021-02-27 13:27 Kunda1 Resolution open => fixed
2021-02-27 13:27 Kunda1 Fixed in Version => 0.20
2021-02-27 13:27 Kunda1 Note Added: 0015448
2021-02-27 13:27 Kunda1 Relationship added duplicate of 0004543
2021-02-27 13:27 Kunda1 Note Edited: 0015448
2021-12-29 03:50 chennes Status resolved => closed
2021-12-29 03:50 chennes Note Added: 0016144