View Issue Details

IDProjectCategoryView StatusLast Update
0003895PartBugpublic2019-03-10 11:28
Reporternormandc Assigned Towmayer  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Product Version0.18 
Target Version0.18Fixed in Version0.18 
Summary0003895: FreeCAD segfaults when pressing "Clear All" in Measure tasks dialogue with no opened document
DescriptionWhen closing a document while the Measure dialogue is active in the Tasks tab, the dialogue is not closed and remains active. If one presses the "Clear All" button, then FreeCAD crashes with a segmentation fault.
Steps To Reproduce
  1. Create new document
  2. From the Part workbench, create a Part Cube or any other solid
  3. Press the Part_Measure_Linear or Part_Measure_Angular button
  4. The Measure dialogue appears in the Tasks tab, this is essential for the crash (if the selection is made before launching the measure tool, then the dialogue does not open)
  5. Make Selection 01 and 02 to create a measurement
  6. Close the document, but do not close the dialogue. Press "Discard" at the dialog to close the document without saving it
  7. The Measure dialogue remains in the Tasks tab in active mode.
  8. Press Clear All in the Tasks tab.
  9. Instant crash.
Additional InformationForum topic https://forum.freecadweb.org/viewtopic.php?f=3&t=34749

Terminal log:
Program received signal SIGSEGV, Segmentation fault.
#0  /lib/x86_64-linux-gnu/libc.so.6(+0x3ef20) [0x7f58a1fb3f20]
#1  0x7f58a4bebeba in Gui::Document::getMDIViews[abi:cxx11]() const from /home/normand2/compilation/FreeCAD/freecad-build/lib/libFreeCADGui.so+0x1a
0000002  0x7f58a4bec799 in Gui::Document::getActiveView() const from /home/normand2/compilation/FreeCAD/freecad-build/lib/libFreeCADGui.so+0x39
0000003  0x7f5806230d1b in PartGui::eraseAllDimensions() from /home/normand2/compilation/FreeCAD/freecad-build/Mod/Part/PartGui.so+0x1b
0000004  0x7f58a2bc05b5 in QMetaObject::activate(QObject*, int, int, void**) from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x865
0000005  0x7f58a3297b82 in QAbstractButton::clicked(bool) from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x42
0000006  /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x245d9a) [0x7f58a3297d9a]
0000007  /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x24717a) [0x7f58a329917a]
0000008  0x7f58a329936d in QAbstractButton::mouseReleaseEvent(QMouseEvent*) from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0xfd
0000009  0x7f58a31e5038 in QWidget::event(QEvent*) from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x1f8
0000010  0x7f58a31a682c in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x9c
0000011  0x7f58a31ae64f in QApplication::notify(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x7ff
0000012  0x7f58a4c28d68 in Gui::GUIApplication::notify(QObject*, QEvent*) from /home/normand2/compilation/FreeCAD/freecad-build/lib/libFreeCADGui.so+0x88
0000013  0x7f58a2b919a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x118
0000014  0x7f58a31ad622 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x1d2
0000015  /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x1ae14b) [0x7f58a320014b]
0000016  /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x1b07ba) [0x7f58a32027ba]
0000017  0x7f58a31a682c in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x9c
0000018  0x7f58a31ae0f4 in QApplication::notify(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x2a4
0000019  0x7f58a4c28d68 in Gui::GUIApplication::notify(QObject*, QEvent*) from /home/normand2/compilation/FreeCAD/freecad-build/lib/libFreeCADGui.so+0x88
0000020  0x7f58a2b919a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x118
0000021  0x7f589eabc523 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5+0x6f3
0000022  0x7f589eabdff5 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5+0x135
0000023  0x7f589ea952eb in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5+0xab
0000024  /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5(+0x9d1c0) [0x7f58921f81c0]
0000025  /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x2e7) [0x7f589ce13387]
0000026  /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x4c5c0) [0x7f589ce135c0]
0000027  /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x2c) [0x7f589ce1364c]
0000028  0x7f58a2bea8ef in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x5f
0000029  0x7f58a2b8f9ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x13a
0000030  0x7f58a2b98a84 in QCoreApplication::exec() from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x94
0000031  0x7f58a4bae227 in Gui::Application::runApplication() from /home/normand2/compilation/FreeCAD/freecad-build/lib/libFreeCADGui.so+0x1437
0000032  ./FreeCAD(main+0x695) [0x5636c9a544d5]
0000033  /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x7f58a1f96b97]
0000034  ./FreeCAD(_start+0x2a) [0x5636c9a5519a]
TagsNo tags attached.
FreeCAD Information

Activities

normandc

2019-03-09 20:23

manager   ~0012870

Tested with

OS: Ubuntu 18.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16078 (Git)
Build type: Release
Branch: master
Hash: 67df9f3a828fbb0fec29d039792d4baf3d9ee8e0
Python version: [color=#0000FF]3.6.7[/color]
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: French/Canada (fr_CA)

and

OS: Ubuntu 18.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16079 (Git)
Build type: Release
Branch: master
Hash: 6363c90a20b296ab69d7b52230009928199d90df
Python version: [color=#0040FF]2.7.15rc1[/color]
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: French/Canada (fr_CA)

wmayer

2019-03-10 11:28

administrator   ~0012875

https://github.com/FreeCAD/FreeCAD/commit/3e713d918c353fdcbe06edb058a00b47ee97b026

Issue History

Date Modified Username Field Change
2019-03-09 20:23 normandc New Issue
2019-03-09 20:23 normandc Note Added: 0012870
2019-03-10 11:28 wmayer Assigned To => wmayer
2019-03-10 11:28 wmayer Status new => closed
2019-03-10 11:28 wmayer Resolution open => fixed
2019-03-10 11:28 wmayer Fixed in Version => 0.18
2019-03-10 11:28 wmayer Note Added: 0012875