Subject: bug#372: freecad: Crash in Path workbench when editing stock

From: Nico Orru <[email-masked]>
Date: Sat, 04 Jan 2020 22:26:32 +0000

Package: freecad
Version: 0.18.4+dfsg1-2
Severity: normal

I am getting this crash quite often in the Path workbench, usually when configuring the workpiece's stock:

Dear Maintainer,Program received signal SIGSEGV, Segmentation fault.
#0  /lib/x86_64-linux-gnu/libc.so.6(+0x3a100) [0x7f05150f2100]
#1  0x7f05155a952a in QString::operator=(QString const&) from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x1a
#2  0x7f0515b3e7cd in QWidget::setToolTip(QString const&) from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x2d
#3  /usr/lib/python3/dist-packages/PySide2/QtWidgets.cpython-37m-x86_64-linux-gnu.so(+0x63f93b) [0x7f04f1e9993b]
#4  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyMethodDef_RawFastCallKeywords+0x274) [0x7f0516288714]
#5  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyCFunction_FastCallKeywords+0x28) [0x7f0516289458]
#6  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x6e250) [0x7f0516099250]
#7  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x68a2) [0x7f051609fc42]
#8  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x7794b) [0x7f05160a294b]
#9  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x6e015) [0x7f0516099015]
#10  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x242d) [0x7f051609b7cd]
#11  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x7794b) [0x7f05160a294b]
#12  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x6e015) [0x7f0516099015]
#13  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x242d) [0x7f051609b7cd]
#14  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalCodeWithName+0x92d) [0x7f05161c15cd]
#15  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyFunction_FastCallKeywords+0x89) [0x7f0516288bc9]
#16  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x6e015) [0x7f0516099015]
#17  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x242d) [0x7f051609b7cd]
#18  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalCodeWithName+0x92d) [0x7f05161c15cd]
#19  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyFunction_FastCallKeywords+0x89) [0x7f0516288bc9]
#20  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x6e015) [0x7f0516099015]
#21  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x242d) [0x7f051609b7cd]
#22  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x7794b) [0x7f05160a294b]
#23  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x6e015) [0x7f0516099015]
#24  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x242d) [0x7f051609b7cd]
#25  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x7794b) [0x7f05160a294b]
#26  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x6e015) [0x7f0516099015]
#27  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x1cde) [0x7f051609b07e]
#28  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x7794b) [0x7f05160a294b]
#29  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x6e015) [0x7f0516099015]
#30  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x242d) [0x7f051609b7cd]
#31  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalCodeWithName+0x92d) [0x7f05161c15cd]
#32  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyFunction_FastCallDict+0x1c7) [0x7f0516288eb7]
#33  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyObject_Call_Prepend+0xcd) [0x7f051628b45d]
#34  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(PyObject_Call+0x75) [0x7f05162896d5]
#35  0x7f05170fc5c7 in Gui::ViewProviderPythonFeatureImp::setEdit(int) from /usr/lib/freecad-python3/lib/libFreeCADGui.so+0x677
#36  0x7f04956dc6d9 in Gui::ViewProviderPythonFeatureT<PartGui::ViewProviderPart>::setEdit(int) from /usr/lib/freecad-python3/lib/PartGui.so+0x19
#37  0x7f05170df11a in Gui::ViewProvider::startEditing(int) from /usr/lib/freecad-python3/lib/libFreeCADGui.so+0x3a
#38  0x7f05170b9c3d in Gui::View3DInventorViewer::setEditingViewProvider(Gui::ViewProvider*, int) from /usr/lib/freecad-python3/lib/libFreeCADGui.so+0x2d
#39  0x7f0516e544ad in Gui::Document::setEdit(Gui::ViewProvider*, int) from /usr/lib/freecad-python3/lib/libFreeCADGui.so+0xfd
#40  0x7f0516e6c8b8 in Gui::DocumentPy::setEdit(_object*) from /usr/lib/freecad-python3/lib/libFreeCADGui.so+0xa8
#41  0x7f0516e6ca6a in Gui::DocumentPy::staticCallback_setEdit(_object*, _object*) from /usr/lib/freecad-python3/lib/libFreeCADGui.so+0x3a
#42  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyMethodDef_RawFastCallKeywords+0x2c9) [0x7f0516288769]
#43  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyCFunction_FastCallKeywords+0x28) [0x7f0516289458]
#44  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(+0x6e250) [0x7f0516099250]
#45  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalFrameDefault+0x68a2) [0x7f051609fc42]
#46  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(_PyEval_EvalCodeWithName+0x92d) [0x7f05161c15cd]
#47  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(PyEval_EvalCodeEx+0x3e) [0x7f05161c184e]
#48  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(PyEval_EvalCode+0x1b) [0x7f05161c207b]
#49  /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0(PyRun_StringFlags+0x8f) [0x7f051619072f]
#50  0x7f051661bba6 in Base::InterpreterSingleton::runString[abi:cxx11](char const*) from /usr/lib/freecad-python3/lib/libFreeCADBase.so+0x66
#51  0x7f0516eae1c0 in Gui::Command::doCommand(Gui::Command::DoCmd_Type, char const*, ...) from /usr/lib/freecad-python3/lib/libFreeCADGui.so+0x130
#52  0x7f04956c3ec9 in PartGui::ViewProviderPart::doubleClicked() from /usr/lib/freecad-python3/lib/PartGui.so+0xa9
#53  0x7f0516faf482 in Gui::TreeWidget::mouseDoubleClickEvent(QMouseEvent*) from /usr/lib/freecad-python3/lib/libFreeCADGui.so+0x1e2
#54  0x7f0515b49816 in QWidget::event(QEvent*) from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x2e6
#55  0x7f0515bf59fe in QFrame::event(QEvent*) from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x1e
#56  0x7f0515d7366e in QAbstractItemView::viewportEvent(QEvent*) from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x6e
#57  0x7f0515de036b in QTreeView::viewportEvent(QEvent*) from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x3b
#58  0x7f05156e9833 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x93
#59  0x7f0515b07c21 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x71
#60  0x7f0515b113e3 in QApplication::notify(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x583
#61  0x7f0516e83c48 in Gui::GUIApplication::notify(QObject*, QEvent*) from /usr/lib/freecad-python3/lib/libFreeCADGui.so+0x88
#62  0x7f05156e9b22 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x182
#63  0x7f0515b104f3 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x1b3
#64  /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x1bf039) [0x7f0515b65039]
#65  /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x1c1ec4) [0x7f0515b67ec4]
#66  0x7f0515b07c32 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x82
#67  0x7f0515b11190 in QApplication::notify(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x330
#68  0x7f0516e83c48 in Gui::GUIApplication::notify(QObject*, QEvent*) from /usr/lib/freecad-python3/lib/libFreeCADGui.so+0x88
#69  0x7f05156e9b22 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x182
#70  0x7f0513ac6962 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5+0x612
#71  0x7f0513ac826b in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5+0x24b
#72  0x7f0513aa2ecb in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5+0xbb
#73  /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5(+0x71cda) [0x7f050fdcbcda]
#74  /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x27d) [0x7f0513160f1d]
#75  /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x501a0) [0x7f05131611a0]
#76  /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x2f) [0x7f051316122f]
#77  0x7f051573f891 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x61
#78  0x7f05156e87ab in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x12b
#79  0x7f05156f0252 in QCoreApplication::exec() from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x92
#80  0x7f0516e15dc7 in Gui::Application::runApplication() from /usr/lib/freecad-python3/lib/libFreeCADGui.so+0x16e7
#81  freecad(main+0x6a6) [0x55ebd3983726]
#82  /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb) [0x7f05150debbb]
#83  freecad(_start+0x2a) [0x55ebd3983a1a]

-- System Information:
Debian Release: 10.0
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C), LANGUAGE=C.UTF-8 (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages freecad depends on:
ii  freecad-python3  0.18.4+dfsg1-2

Versions of packages freecad recommends:
ii  calculix-ccx  2.11-1+b3
ii  graphviz      2.42.2-3

Versions of packages freecad suggests:
pn  povray  <none>

-- no debconf information

---

From: Mark Hindley <[email-masked]>
Date: Thu, 16 Feb 2023 08:34:33 +0000

Control: tags -1 moreinfo debian

Nico,

> I am getting this crash quite often in the Path workbench, usually when configuring the workpiece's stock:

Are you still seeing this? If so, please report directly to Debian's BTS. Devuan
does not fork freecad and we use Debian's packages directly without
recompilation.

Thanks.

Mark