FreeCAD reproducibly crashes when using the TechDraw workbench. Steps to reproduce:
- open attached file
- select TD workbench
- Edit → Preferences → TechDraw → HLR → Show Hard Lines (ticked)
- select bottom view
- insert section view
- click first cut (horizontal)
- click on the “down” arrow on the “Scale” parameter
→ segfault
Code: Select all
Program received signal SIGSEGV, Segmentation fault.
#0 /lib/x86_64-linux-gnu/libc.so.6(+0x37840) [0x7f48b505e840]
#1 0x7f48421dd93a in TechDrawGui::QGIViewPart::drawFace(TechDraw::Face*, int) from /tmp/.mount_FreeCA4I9FXC/usr/lib/TechDrawGui.so+0x14a
#2 0x7f48421e147b in TechDrawGui::QGIViewSection::drawSectionFace() from /tmp/.mount_FreeCA4I9FXC/usr/lib/TechDrawGui.so+0x31b
#3 0x7f48421e1b09 in TechDrawGui::QGIViewSection::updateView(bool) from /tmp/.mount_FreeCA4I9FXC/usr/lib/TechDrawGui.so+0x69
#4 /tmp/.mount_FreeCA4I9FXC/usr/lib/./TechDraw.so(+0x116d6a) [0x7f4840666d6a]
#5 0x7f48406686c7 in TechDraw::DrawView::execute() from /tmp/.mount_FreeCA4I9FXC/usr/lib/./TechDraw.so+0x27
#6 0x7f48406b0351 in TechDraw::DrawViewSection::execute() from /tmp/.mount_FreeCA4I9FXC/usr/lib/./TechDraw.so+0x1e1
#7 0x7f48b6e12ea2 in App::DocumentObject::recompute() from /tmp/.mount_FreeCA4I9FXC/usr/bin/../lib/libFreeCADApp.so+0xf2
#8 0x7f48b6da506c in App::Document::_recomputeFeature(App::DocumentObject*) from /tmp/.mount_FreeCA4I9FXC/usr/bin/../lib/libFreeCADApp.so+0x31c
#9 0x7f48b6dff58c in App::Document::recomputeFeature(App::DocumentObject*, bool) from /tmp/.mount_FreeCA4I9FXC/usr/bin/../lib/libFreeCADApp.so+0xdc
#10 0x7f4842156793 in TechDrawGui::TaskSectionView::applyQuick(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) from /tmp/.mount_FreeCA4I9FXC/usr/lib/TechDrawGui.so+0x73
#11 0x7f4842156d4e in TechDrawGui::TaskSectionView::apply() from /tmp/.mount_FreeCA4I9FXC/usr/lib/TechDrawGui.so+0xae
#12 0x7f48b55720d2 in QMetaObject::activate(QObject*, int, int, void**) from /tmp/.mount_FreeCA4I9FXC/usr/bin/../lib/libQt5Core.so.5+0x780
#13 0x7f48b7cb3af4 in Gui::QuantitySpinBox::valueChanged(double) from /tmp/.mount_FreeCA4I9FXC/usr/bin/../lib/libFreeCADGui.so+0x44
#14 0x7f48b7cb5227 in Gui::QuantitySpinBox::updateFromCache(bool) from /tmp/.mount_FreeCA4I9FXC/usr/bin/../lib/libFreeCADGui.so+0xb7
#15 0x7f48b7cb6a0d in Gui::QuantitySpinBox::stepBy(int) from /tmp/.mount_FreeCA4I9FXC/usr/bin/../lib/libFreeCADGui.so+0x14d
#16 /tmp/.mount_FreeCA4I9FXC/usr/bin/../lib/libQt5Widgets.so.5(+0x27b74e) [0x7f48b5e8d74e]
#17 0x7f48b5e8d923 in QAbstractSpinBox::mousePressEvent(QMouseEvent*) from /tmp/.mount_FreeCA4I9FXC/usr/bin/../lib/libQt5Widgets.so.5+0x9d
#18 0x7f48b5db1c0f in QWidget::event(QEvent*) from /tmp/.mount_FreeCA4I9FXC/usr/bin/../lib/libQt5Widgets.so.5+0x121
#19 0x7f48b5e90457 in QAbstractSpinBox::event(QEvent*) from /tmp/.mount_FreeCA4I9FXC/usr/bin/../lib/libQt5Widgets.so.5+0xc9
#20 0x7f48b5d8683a in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /tmp/.mount_FreeCA4I9FXC/usr/bin/../lib/libQt5Widgets.so.5+0xde
#21 0x7f48b5d8b0a9 in QApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCA4I9FXC/usr/bin/../lib/libQt5Widgets.so.5+0x79d
#22 0x7f48b789d0c9 in Gui::GUIApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCA4I9FXC/usr/bin/../lib/libFreeCADGui.so+0x89
#23 0x7f48b555ba9c in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /tmp/.mount_FreeCA4I9FXC/usr/bin/../lib/libQt5Core.so.5+0x88
#24 0x7f48b5d8a553 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) from /tmp/.mount_FreeCA4I9FXC/usr/bin/../lib/libQt5Widgets.so.5+0x283
#25 /tmp/.mount_FreeCA4I9FXC/usr/bin/../lib/libQt5Widgets.so.5(+0x1af580) [0x7f48b5dc1580]
#26 /tmp/.mount_FreeCA4I9FXC/usr/bin/../lib/libQt5Widgets.so.5(+0x1b03d2) [0x7f48b5dc23d2]
#27 0x7f48b5d8683a in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /tmp/.mount_FreeCA4I9FXC/usr/bin/../lib/libQt5Widgets.so.5+0xde
#28 0x7f48b5d8c405 in QApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCA4I9FXC/usr/bin/../lib/libQt5Widgets.so.5+0x1af9
#29 0x7f48b789d0c9 in Gui::GUIApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCA4I9FXC/usr/bin/../lib/libFreeCADGui.so+0x89
#30 0x7f48b555ba9c in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /tmp/.mount_FreeCA4I9FXC/usr/bin/../lib/libQt5Core.so.5+0x88
#31 0x7f48b5902724 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) from /tmp/.mount_FreeCA4I9FXC/usr/bin/../lib/libQt5Gui.so.5+0x684
#32 0x7f48b59032f7 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) from /tmp/.mount_FreeCA4I9FXC/usr/bin/../lib/libQt5Gui.so.5+0x175
#33 0x7f48b58f0020 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_FreeCA4I9FXC/usr/bin/../lib/libQt5Gui.so.5+0x64
#34 /tmp/.mount_FreeCA4I9FXC/usr/plugins/platforms/../../lib/libQt5XcbQpa.so.5(+0x5b1ea) [0x7f48b127f1ea]
#35 /tmp/.mount_FreeCA4I9FXC/usr/bin/../lib/./libglib-2.0.so.0(g_main_context_dispatch+0x2cb) [0x7f48b24d2dab]
#36 /tmp/.mount_FreeCA4I9FXC/usr/bin/../lib/./libglib-2.0.so.0(+0x54ff1) [0x7f48b24d2ff1]
#37 /tmp/.mount_FreeCA4I9FXC/usr/bin/../lib/./libglib-2.0.so.0(g_main_context_iteration+0x2e) [0x7f48b24d307e]
#38 0x7f48b558ad23 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_FreeCA4I9FXC/usr/bin/../lib/libQt5Core.so.5+0x63
#39 0x7f48b55584d7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_FreeCA4I9FXC/usr/bin/../lib/libQt5Core.so.5+0x187
#40 0x7f48b555c34f in QCoreApplication::exec() from /tmp/.mount_FreeCA4I9FXC/usr/bin/../lib/libQt5Core.so.5+0x105
#41 0x7f48b78134f2 in Gui::Application::runApplication() from /tmp/.mount_FreeCA4I9FXC/usr/bin/../lib/libFreeCADGui.so+0x15a2
#42 /tmp/.mount_FreeCA4I9FXC/usr/bin/freecad(+0x37cd) [0x55a8fcd537cd]
#43 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb) [0x7f48b504b09b]
#44 /tmp/.mount_FreeCA4I9FXC/usr/bin/freecad(+0x4521) [0x55a8fcd54521]
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.22665 (Git) AppImage
Build type: Release
Branch: master
Hash: b0d7850406e046f3b7a8cd5da261e7d54df6bd99
Python version: 3.8.6
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/Ireland (en_IE)