View Issue Details

IDProjectCategoryView StatusLast Update
0002154FreeCADBugpublic2016-02-28 18:54
Reporterbrycenesbitt Assigned Towmayer  
PrioritylowSeveritycrashReproducibilityalways
Status closedResolutionfixed 
PlatformLinuxOSUbuntuOS Version14.04LTS
Product Version0.14 
Fixed in Version0.16 
Summary0002154: Crash on delete measurements (every time for me)
Description  ##### #### ### ####
  # # # # # #
  # ## #### #### # # # # #
  #### # # # # # # # ##### # #
  # # #### #### # # # # #
  # # # # # # # # # ## ## ##
  # # #### #### ### # # #### ## ## ##

[New Thread 0x7fffdeb89700 (LWP 28886)]
[New Thread 0x7fffdced1700 (LWP 28887)]
[New Thread 0x7fffd5874700 (LWP 28888)]
[New Thread 0x7fffd5073700 (LWP 28889)]
[New Thread 0x7fffd4872700 (LWP 28890)]
[Thread 0x7fffd5073700 (LWP 28889) exited]
[New Thread 0x7fffd5073700 (LWP 28893)]
[New Thread 0x7fffc0315700 (LWP 28897)]
[Thread 0x7fffd4872700 (LWP 28890) exited]
DocumentItem::slotNewObject: Cannot add view provider twice.
DocumentItem::slotNewObject: Cannot add view provider twice.
DocumentItem::slotNewObject: Cannot add view provider twice.
DocumentItem::slotNewObject: Cannot add view provider twice.
No point picked.

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff5e45a61 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
(gdb) bt
#0 0x00007ffff5e45a61 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#1 0x00007ffff5cd7f5f in QWidgetPrivate::paintBackground(QPainter*, QRegion const&, int) const ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
0000002 0x00007ffff5cd89b1 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
0000003 0x00007ffff5e9b8fa in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
0000004 0x00007ffff5ccdea0 in QWidgetPrivate::syncBackingStore() ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
0000005 0x00007ffff5cdde7a in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
0000006 0x00007ffff6098a33 in QMainWindow::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
0000007 0x00007ffff77bc89b in Gui::MainWindow::event(QEvent*) () from /usr/lib/freecad/lib/libFreeCADGui.so
0000008 0x00007ffff5c8ee2c in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
0000009 0x00007ffff5c954a0 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
0000010 0x00007ffff75b51df in Gui::GUIApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/freecad/lib/libFreeCADGui.so
0000011 0x00007ffff55184dd in QCoreApplication::notifyInternal(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
0000012 0x00007ffff551bb3d in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
0000013 0x00007ffff5545f83 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
0000014 0x00007fffee7ffe04 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
---Type <return> to continue, or q <return> to quit---
0000015 0x00007fffee800048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
0000016 0x00007fffee8000ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
0000017 0x00007ffff55457a1 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
0000018 0x00007ffff5d30be6 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
0000019 0x00007ffff55170af in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
0000020 0x00007ffff55173a5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
0000021 0x00007ffff551cb79 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
0000022 0x00007ffff75acc58 in Gui::Application::runApplication() () from /usr/lib/freecad/lib/libFreeCADGui.so
0000023 0x0000000000404268 in main ()
(gdb)
Steps To Reproduce
1) Enter the part workbench
2) Load a model
3) Select View->Measure Distance
4) Add a measurement. Do it again. Do it again.
5) Regret step 0000004
6) Press CTRL-Z or Undo
7) Regret step 0000006
8) Enter the tree view and delete the measurements.
Additional Information
OS: Ubuntu 14.04.2 LTS
Platform: 64-bit
Version: 0.14.2935 (Git)
Branch: master
Hash: eab159b6ee675012bf79de838c206a311e911d85
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
SoQt version: 1.6.0a
OCC version: 6.7.0
TagsNo tags attached.
FreeCAD Information

Activities

wmayer

2016-02-28 18:54

administrator   ~0006857

There was a bug the way how the measurement object was added to the document causing undefined behaviour. This was fixed with git show 718982cdcf6f1735e. The same commit also fixed 0002223

Issue History

Date Modified Username Field Change
2015-06-12 01:07 brycenesbitt New Issue
2016-02-28 18:51 wmayer Relationship added related to 0002223
2016-02-28 18:51 wmayer Relationship deleted related to 0002223
2016-02-28 18:54 wmayer Note Added: 0006857
2016-02-28 18:54 wmayer Status new => closed
2016-02-28 18:54 wmayer Assigned To => wmayer
2016-02-28 18:54 wmayer Resolution open => fixed
2016-02-28 18:54 wmayer Fixed in Version => 0.16