View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002621 | Slicer4 | Module VolumeRendering | public | 2012-10-06 08:33 | 2012-10-09 06:22 |
Reporter | fedorov | Assigned To | finetjul | ||
Priority | high | Severity | crash | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | |||||
Target Version | Slicer 4.2.0 | Fixed in Version | Slicer 4.2.0 | ||
Summary | 0002621: Switching to VR after manually creating display node causes crash | ||||
Description | When VR display nodes are created and initialized outside the VR module as in the attached script, switching to VR causes crash. Steps to reproduce: 1) go to any module that is not VR crash stack: Thread 0 Crashed: Dispatch queue: com.apple.main-thread | ||||
Additional Information | Python script to execute for reproducing the issue: vrNode = slicer.modules.volumerendering.logic().CreateVolumeRenderingDisplayNode() rs = slicer.mrmlScene.GetNodesByClass('vtkMRMLAnnotationROINode') vrLogic = slicer.modules.volumerendering.logic() if propNode == None: vrNode.SetAndObserveVolumePropertyNodeID(propNode.GetID()) | ||||
Tags | No tags attached. | ||||
parent of | 0002623 | feedback | finetjul | Change vtkMRMLVolumeRenderingDisplayableManager::DisplayNodes from map to vector |
parent of | 0002628 | acknowledged | finetjul | VR displayable manager should not show display node that are not referenced by displayable node |
related to | 0002590 | closed | jcfr | Tutorial 9 - Part3 - Switch module -> Closing slicer leads to crash |
related to | 0002588 | closed | fedorov | Tutorial 9 - Part3 - Memory leaks after closing scene and then slice |
related to | 0002622 | closed | jcfr | assert crash in scene model closing scene after change tracker |
related to | 0002626 | closed | finetjul | Uniformize Get/New/Create/CreateAndAdd |
child of | 0002589 | closed | fedorov | Tutorial 9 - Part3 - Exiting and re-entering module does NOT re-display volume rendered tumor |
Not all the children of this issue are yet resolved or closed. |
Also, if you don't switch to VR, but just try to quit Slicer, it hangs, and if I force quite, here's where it gets stuck: Julien -- is there anything wrong with that VR DIsplay node initialization code that I use? Thread 2835cc DispatchQueue 1 |
|
Crash is fixed in r21118: For the hang, the problem comes from your code:
|
|
Julien, I admit I didn't read the code or doxygen. The same code was there last year, and I don't remember this issue come up. From my perspective, it is not clear from the "CreateNode" name that the node would be added to the scene. I would call it something like "CreateAndAdd". To me the use of "CreateNode" is ambiguous, since there are other similar calls (e.g., MRMLScene:CreateNodeByClass()) that create but do not add the node to the scene. Now, back to the issue: 1) if I run the script and then switch to VT, volume rendering visibility is toggled. Is this expected behavior? I would think not, because I set visibility on display node. 2) if I run the script (excluding the AddNode line), switch to VR and quit Slicer, I have the following memory leaks. If I don't switch to VR and exit, no leaks. Class "vtkCellData" has 10 instances still around. |
|
0) "CreateXXX": See issue 0002626 |
|
You are absolutely correct. The irony is, I just fixed this in another place before you updated this, but missed right in front of my face in this test! |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2012-10-06 08:33 | fedorov | New Issue | |
2012-10-06 08:33 | fedorov | Status | new => assigned |
2012-10-06 08:33 | fedorov | Assigned To | => finetjul |
2012-10-06 08:33 | fedorov | Relationship added | child of 0002589 |
2012-10-06 08:42 | fedorov | Note Added: 0006422 | |
2012-10-06 08:44 | fedorov | Relationship added | related to 0002590 |
2012-10-06 08:44 | fedorov | Relationship added | related to 0002588 |
2012-10-07 05:46 | pieper | Target Version | => Slicer 4.2.0 - coming release |
2012-10-07 18:06 | finetjul | Relationship added | parent of 0002623 |
2012-10-07 19:39 | finetjul | Note Added: 0006428 | |
2012-10-07 19:39 | finetjul | Status | assigned => resolved |
2012-10-07 19:39 | finetjul | Fixed in Version | => Slicer 4.2.0 - coming release |
2012-10-07 19:39 | finetjul | Resolution | open => fixed |
2012-10-07 19:44 | finetjul | Relationship added | related to 0002622 |
2012-10-08 05:33 | fedorov | Note Added: 0006430 | |
2012-10-08 05:33 | fedorov | Status | resolved => feedback |
2012-10-08 05:33 | fedorov | Resolution | fixed => reopened |
2012-10-08 08:39 | finetjul | Relationship added | related to 0002626 |
2012-10-08 21:12 | finetjul | Relationship added | parent of 0002628 |
2012-10-08 21:27 | finetjul | Note Added: 0006442 | |
2012-10-09 06:22 | fedorov | Note Added: 0006456 | |
2012-10-09 06:22 | fedorov | Status | feedback => closed |
2012-10-09 06:22 | fedorov | Resolution | reopened => fixed |