Ticket #911 (closed: fixed)

Opened 11 years ago

Last modified 5 years ago

Deleting a workspace or using clear memory option when a MantidMatrix is open, can cause a crash

Reported by: Martyn Gigg Owned by:
Priority: major Milestone: Iteration 19
Component: Keywords:
Cc: Blocked By:
Blocking: Tester:

Description

Having a plot on screen when deleting a workspace can cause a crash. This also happened when having many workspaces with plots and using the clear Memory option. Unfortunately it did not happen every time

Change History

comment:1 Changed 11 years ago by Martyn Gigg

I managed to get a backtrace when a crash happened:

#0 0x0000000000000000 in ?? ()

#1 0x0000000000867efa in MantidMatrix::removeWindow (this=0x7f4040720de0)

at src/Mantid/MantidMatrix.cpp:775

#2 0x0000000000852a1d in MantidUI::removeWindowFromLists (this=0x2e49e90, m=0x7f4040720de0)

at src/Mantid/MantidUI.cpp:543

#3 0x000000000053b542 in ApplicationWindow::removeWindowFromLists (this=0x2e7def0,

w=0x7f4040720de0) at src/ApplicationWindow.cpp:7885

#4 0x000000000054100a in ApplicationWindow::closeWindow (this=0x2e7def0, window=0x7f4040720de0)

at src/ApplicationWindow.cpp:7899

#5 0x000000000097288e in ApplicationWindow::qt_metacall (this=0x2e7def0,

_c=QMetaObject::InvokeMetaMethod, _id=224, _a=0x7fffcd96b290) at ../tmp/qtiplot/debug/moc_ApplicationWindow.cpp:1378

#6 0x00007f40c0b88134 in QMetaObject::activate () from /usr/lib/libQtCore.so.4 #7 0x0000000000992845 in MdiSubWindow::closedWindow (this=0x7f4040720de0, _t1=0x7f4040720de0)

at ../tmp/qtiplot/debug/moc_MdiSubWindow.cpp:95

#8 0x000000000074eb4a in MdiSubWindow::closeEvent (this=0x7f4040720de0, e=0x7fffcd96bc30)

at src/MdiSubWindow.cpp:121

#9 0x00007f40c1380d77 in QWidget::event () from /usr/lib/libQtGui.so.4 #10 0x00007f40c16b7ccb in QMdiSubWindow::event () from /usr/lib/libQtGui.so.4 #11 0x00007f40c132ec3d in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4 #12 0x00007f40c13369ba in QApplication::notify () from /usr/lib/libQtGui.so.4 #13 0x000000000082672b in MantidApplication::notify (this=0x7fffcd96de00, receiver=0x7f4040720de0,

event=0x7fffcd96bc30) at src/Mantid/MantidApplication.cpp:23

#14 0x00007f40c0b73d61 in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4 #15 0x000000000056ec1b in QCoreApplication::sendEvent (receiver=0x7f4040720de0,

event=0x7fffcd96bc30) at /usr/include/qt4/QtCore/qcoreapplication.h:209

#16 0x00007f40c1383c1b in QWidgetPrivate::close_helper () from /usr/lib/libQtGui.so.4 #17 0x00000000008496fa in MantidUI::clearAllMemory (this=0x2e49e90) at src/Mantid/MantidUI.cpp:1464

comment:2 Changed 11 years ago by Martyn Gigg

  • Summary changed from Deleting a workspace or using clear memory option when a plot is open, can cause a crash to Deleting a workspace or using clear memory option when a MantidMatrix is open, can cause a crash

Note that this actually seems to be related to closing MantidMatrix objects rather than the plots, so I've changed the title

comment:3 Changed 11 years ago by Martyn Gigg

  • Status changed from new to closed
  • Resolution set to fixed

(In [3206]) Fixes curve updating/deleting in response to Mantid ADS signals. Fixes #911, Fixes #912

comment:4 Changed 11 years ago by Nick Draper

  • Milestone changed from Iteration 20 to Iteration 19

included in iteration 19.1 bugfix release

comment:5 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 1759

Note: See TracTickets for help on using tickets.