View Issue Details

IDProjectCategoryView StatusLast Update
0004581Slicer4Module SceneViewspublic2018-07-18 12:15
Reporterpieper Assigned Tonicole  
PrioritynormalSeveritycrashReproducibilityalways
Status assignedResolutionopen 
PlatformmacOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0004581: restoring scene views leads to subject hierarchy crash
Description

Reloading a scene that has scene views and switching back and forth between views leads to a crash.

Steps To Reproduce
  • load the attached mrb
  • switch back and forth between scene views (crashes with stack trace pasted below).
Additional Information

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libMRMLCore.dylib 0x00000001137ea56a vtkMRMLScene::RemoveNode(vtkMRMLNode) + 42
1 libMRMLCore.dylib 0x0000000113863f51 vtkMRMLSubjectHierarchyNode::GetSubjectHierarchyNode(vtkMRMLScene
) + 1473
2 org.qt-project.QtCore 0x0000000118697b61 QMetaObject::activate(QObject*, int, int, void) + 913
3 libCTKVisualizationVTKCore.0.1.dylib 0x0000000110384a63 ctkVTKConnection::emitExecute(vtkObject, void, unsigned long, void) + 99
4 libCTKVisualizationVTKCore.0.1.dylib 0x000000011037d8b1 ctkVTKConnectionPrivate::execute(vtkObject
, unsigned long, void, void) + 625
5 libvtkCommon-9.0.1.dylib 0x000000011badb801 vtkCallbackCommand::Execute(vtkObject, unsigned long, void) + 33
6 libMRMLCore.dylib 0x00000001136f32c8 vtkEventBroker::InvokeObservation(vtkObservation, unsigned long, void) + 168
7 libMRMLCore.dylib 0x00000001136f2dc0 vtkEventBroker::ProcessEvent(vtkObservation, vtkObject, unsigned long, void) + 144
8 libvtkCommon-9.0.1.dylib 0x000000011badb801 vtkCallbackCommand::Execute(vtkObject
, unsigned long, void) + 33
9 libvtkCommon-9.0.1.dylib 0x000000011bcecd0c vtkSubjectHelper::InvokeEvent(unsigned long, void
, vtkObject) + 1020
10 libMRMLCore.dylib 0x00000001137ea3d1 vtkMRMLScene::EndState(unsigned long) + 849
11 libMRMLCore.dylib 0x0000000113800647 vtkMRMLSceneViewNode::RestoreScene(bool) + 2663
12 libqSlicerSceneViewsModule.dylib 0x000000012a1f11ef qSlicerSceneViewsModuleWidget::restoreSceneView(QString const&) + 1535
13 libqSlicerSceneViewsModule.dylib 0x000000012a1f1dcd qSlicerSceneViewsModuleWidget::onRestoreButtonClicked() + 205
14 org.qt-project.QtCore 0x0000000118697b61 QMetaObject::activate(QObject
, int, int, void
) + 913
15 org.qt-project.QtWidgets 0x00000001177531b0 QAbstractButtonPrivate::emitClicked() + 112
16 org.qt-project.QtWidgets 0x000000011775303f QAbstractButtonPrivate::click() + 255
17 org.qt-project.QtWidgets 0x00000001177540ce QAbstractButton::mouseReleaseEvent(QMouseEvent) + 270
18 org.qt-project.QtWidgets 0x00000001177c50cf QToolButton::mouseReleaseEvent(QMouseEvent
) + 15
19 org.qt-project.QtWidgets 0x0000000117612306 QWidget::event(QEvent) + 1670
20 org.qt-project.QtWidgets 0x0000000117753e2f QAbstractButton::event(QEvent
) + 175
21 org.qt-project.QtWidgets 0x00000001177c5683 QToolButton::event(QEvent) + 323
22 org.qt-project.QtWidgets 0x00000001175da33d QApplicationPrivate::notify_helper(QObject
, QEvent) + 269
23 org.qt-project.QtWidgets 0x00000001175dd8d3 QApplication::notify(QObject
, QEvent) + 9123
24 libqSlicerBaseQTGUI.dylib 0x0000000108e8160e qSlicerApplication::notify(QObject
, QEvent) + 14
25 org.qt-project.QtCore 0x00000001186662e4 QCoreApplication::notifyInternal2(QObject
, QEvent) + 164
26 org.qt-project.QtWidgets 0x00000001175dac67 QApplicationPrivate::sendMouseEvent(QWidget
, QMouseEvent, QWidget, QWidget*, QWidget*, QPointer<QWidget>&, bool) + 871
27 org.qt-project.QtWidgets 0x00000001176329e1 QWidgetWindow::handleMouseEvent(QMouseEvent
) + 1377
28 org.qt-project.QtWidgets 0x0000000117631a3f QWidgetWindow::event(QEvent) + 175
29 org.qt-project.QtWidgets 0x00000001175da33d QApplicationPrivate::notify_helper(QObject
, QEvent) + 269
30 org.qt-project.QtWidgets 0x00000001175dcc0c QApplication::notify(QObject
, QEvent) + 5852
31 libqSlicerBaseQTGUI.dylib 0x0000000108e8160e qSlicerApplication::notify(QObject
, QEvent) + 14
32 org.qt-project.QtCore 0x00000001186662e4 QCoreApplication::notifyInternal2(QObject
, QEvent) + 164
33 org.qt-project.QtGui 0x0000000117f732d1 QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent
) + 2849
34 org.qt-project.QtGui 0x0000000117f5aa8b QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 155
35 libqcocoa.dylib 0x0000000121660eb1 QCocoaEventDispatcherPrivate::postedEventsSourceCallback(void*) + 33
36 com.apple.CoreFoundation 0x00007fff48a0bd31 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
37 com.apple.CoreFoundation 0x00007fff48ac360c CFRunLoopDoSource0 + 108
38 com.apple.CoreFoundation 0x00007fff489eed3c
CFRunLoopDoSources0 + 300
39 com.apple.CoreFoundation 0x00007fff489ee15d __CFRunLoopRun + 1293
40 com.apple.CoreFoundation 0x00007fff489ed9b7 CFRunLoopRunSpecific + 487
41 com.apple.HIToolbox 0x00007fff47ccdd96 RunCurrentEventLoopInMode + 286
42 com.apple.HIToolbox 0x00007fff47ccda0f ReceiveNextEventCommon + 366
43 com.apple.HIToolbox 0x00007fff47ccd884 _BlockUntilNextEventMatchingListInModeWithFilter + 64
44 com.apple.AppKit 0x00007fff45f7ea73 _DPSNextEvent + 2085
45 com.apple.AppKit 0x00007fff46714e34 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044
46 com.apple.AppKit 0x00007fff45f73885 -[NSApplication run] + 764
47 libqcocoa.dylib 0x000000012165fd4f QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2143
48 org.qt-project.QtCore 0x0000000118661f31 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 401
49 org.qt-project.QtCore 0x00000001186669b9 QCoreApplication::exec() + 393
50 0x0000000108b30d96 main + 518
51 libdyld.dylib 0x00007fff708cb015 start + 1

TagsNo tags attached.

Activities

lassoan

lassoan

2018-07-17 21:26

developer   ~0015918

I don't find an .mrb file attached.

pieper

pieper

2018-07-18 12:13

administrator   ~0015920

This file can be used to replicate the crash. (turns out the other mrb was too big to upload)



2018-07-18-Scene.mrb (329,492 bytes)
pieper

pieper

2018-07-18 12:15

administrator   ~0015921

This was tested with 4d8f8bbd1070145dc41c963f1972b2364d482d60

https://github.com/lassoan/Slicer/commit/4d8f8bbd1070145dc41c963f1972b2364d482d60

Issue History

Date Modified Username Field Change
2018-07-17 19:22 pieper New Issue
2018-07-17 19:22 pieper Status new => assigned
2018-07-17 19:22 pieper Assigned To => nicole
2018-07-17 21:26 lassoan Note Added: 0015918
2018-07-18 12:13 pieper File Added: 2018-07-18-Scene.mrb
2018-07-18 12:13 pieper Note Added: 0015920
2018-07-18 12:15 pieper Platform => mac
2018-07-18 12:15 pieper Note Added: 0015921