View Issue Details

IDProjectCategoryView StatusLast Update
0002470Slicer4Module SceneViewspublic2014-03-06 05:10
Reporterspujol Assigned Topieper  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Product VersionSlicer 4.1.1 
Target VersionSlicer 4.2.0Fixed in VersionSlicer 4.2.0 
Summary0002470: Slicer crashes when loading a scene that contains a set of scene views with tracts
Description

Slicer crashes when loading the scene of the Scene views of August 28 and Sept 4 using the 09-03 nightly build. The data are in an Archive called sceneViewBugs_August28-Sept4 in Dropbox.

The SlicerViewBug.mrml contains 1) FA 2) FA labelmap 2) three tracts, 3) three scene views
The SlicerViewBug.mrml contains 1) DTI 2) FA 3) three tracts 4) three scene views.

Thank you in advance for your help

Additional Information

Snow Leopard, 2012-09-03 nightly build

TagsNo tags attached.

Relationships

related to 0002030 closednicole switching between sceneviews results in strange display in the slice viewer 
related to 0002379 closednicole Issue with Close Scene and Scene Views 
related to 0002120 closedpieper MRB does not survive roundtrip 

Activities

pieper

pieper

2012-09-04 09:48

administrator   ~0005947

The crash arose because the fiber bundles were accessing a null pointer. I fixed this, but the scene views are still not working and will require a closer look.

http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=20921

spujol

spujol

2012-09-04 10:37

developer   ~0005952

Link to the test dataset:

https://www.dropbox.com/s/db2e4el64qzui2v/sceneViewBugs_Aug28-Sept4.zip

pieper

pieper

2012-09-05 13:51

administrator   ~0005980

The issue is now almost resolved - the scene reloads and the display is correct. But the SceneViews module display and refresh is still not working and can lead to a crash.

However for testing you can confirm that the scene views themselves are working by manually calling the scene restore methods as shown in the python script below. To use this, load the SceneViewBug_Sept4.mrml file into slicer and then paste the python code below into the python console. It will cycle through all the scene views and when it is done you will be on the last scene view and you can test that display and interactions work as expected.

Note that if you have the SceneViews module open it may lead to a crash.

svns = getNodes('vtkMRMLSceneViewNode*')
for svn in svns:
print('Restoring scene: %s' % svn)
svns[svn].RestoreScene()
qt.QMessageBox.information(slicer.util.mainWindow(), "", 'Restored scene: %s' % svn)

nicole

nicole

2012-09-05 14:57

administrator   ~0005985

I ran that test on my linux dev version, with the scene views module up, no crashes, restores seem to work fine. If there's a crash when you are testing it, could you update this bug?

pieper

pieper

2012-09-06 04:55

administrator   ~0005989

With today's version (r20934) everything seems to be working (!!!!). I'll do a little more testing and then mark this as resolved so we can let Sonia do some testing.

For the record, with yesterday's version I was getting the error pasted below when using the SceneViews module, but I can't replicate it now.

"MRML Scene" Reader has successfully read the file "/Users/pieper/Desktop/sceneViewBugs_Aug28 -Sept4/SceneViewBug_Sept4.mrml"
Show module (name): "SceneViews"
ERROR: In /Users/pieper/slicer4/latest/Slicer/Modules/Loadable/SceneViews/Logic/vtkSlicerSceneViewsModuleLogic.cxx, line 336
vtkSlicerSceneViewsModuleLogic (0x7fdfa78daed0): GetSceneViewName: Could not get sceneView node!

Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

pieper

pieper

2012-09-06 05:15

administrator   ~0005991

Things are working much better now as far as I can tell. Sonia, could you experiment and let us know?

jcfr

jcfr

2014-03-06 05:07

administrator   ~0010965

Closing resolved issues that have not been updated in more than 3 months

Issue History

Date Modified Username Field Change
2012-09-04 09:36 spujol New Issue
2012-09-04 09:36 spujol Status new => assigned
2012-09-04 09:36 spujol Assigned To => nicole
2012-09-04 09:48 pieper Note Added: 0005947
2012-09-04 10:37 spujol Note Added: 0005952
2012-09-04 12:06 jcfr Target Version => Slicer 4.2.0 - Feature freeze Sept 1st 2012
2012-09-04 12:09 pieper Relationship added related to 0002030
2012-09-04 12:09 pieper Assigned To nicole => pieper
2012-09-04 12:11 pieper Relationship added related to 0002379
2012-09-05 13:36 pieper Relationship added related to 0002120
2012-09-05 13:51 pieper Note Added: 0005980
2012-09-05 14:57 nicole Note Added: 0005985
2012-09-06 04:55 pieper Note Added: 0005989
2012-09-06 05:15 pieper Note Added: 0005991
2012-09-06 05:15 pieper Status assigned => resolved
2012-09-06 05:15 pieper Fixed in Version => Slicer 4.2.0 - Feature freeze Sept 1st 2012
2012-09-06 05:15 pieper Resolution open => fixed
2014-03-06 05:07 jcfr Note Added: 0010965
2014-03-06 05:10 jcfr Status resolved => closed