View Issue Details

IDProjectCategoryView StatusLast Update
0002785Slicer4Core: GUIpublic2014-03-06 05:13
Reporterungi Assigned Toalexy  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version 
Target VersionSlicer 4.2.2-1Fixed in VersionSlicer 4.2.2-1 
Summary0002785: Slice disappears in 3D viewer when translating image
Description

I set severity to major because this bug is causing us severe usability issues with our applications. This bug has been there for a long time, and now I could find a clean way to reproduce.

The problem is that image slices in the 3D viewer disappear when the image is moved (using a transform) far enough. I think far means outside the original camera clipping range. Looks like image slices don't update some information that would tell the camera where they are after they are transformed. This bug doesn't happen with model nodes, so model nodes do something that is missing from image slice nodes.

This video shows how to reproduce: https://dl.dropbox.com/u/7771079/SlicerClippingBug.mp4

This causes a problem when we use real-time tracked ultrasound. The ultrasound image is always moving (by a transform node updated through OpenIGTLink), and it often moves to a range where visibility goes wrong because of this bug. So we loose the ultrasound image completely from the 3D view (which would guide needle insertions).

TagsNo tags attached.

Relationships

related to 0002787 closed Slicer3 Slice is partially hidden in the 3D view when visualizing a transformed volume 
related to 0002769 acknowledgedalexy Slicer4 Refactor ModelDisplayableManager 

Activities

ungi

ungi

2012-11-21 15:26

developer   ~0007346

Here is another video illustrating that the renderer and the camera works fine with models. So the problem is probably in the slice widget in the 3D view.
https://dl.dropbox.com/u/7771079/SlicerClippingBug2.mp4

lassoan

lassoan

2012-11-22 03:49

developer   ~0007347

Some info that may help in finding the root cause of the issue: If you first apply the transform and then turn on the slice visibility then the problem does not occur (but if you change the transform later then the problem occurs again). So, it seems that some position-dependent initialization is performed when the slice is first shown and that is not performed again when the applied transform changes.

alexy

alexy

2012-11-22 06:53

developer   ~0007348

My brief investigation didn't produce any leads. Here is some additional information:

  • it is easier reproduce in 4-up layout. If I start in conventional layout I was able reproduce it once out 4-5 tries.
  • if I save the scene in "slice not visible" state and load it back the problem does not occur (even after restarting slicer)
  • there seems to be no difference in MRML process events if the slice is rendered or not.
  • resetting clipping plane in camera does not help.
  • I can reproduce it with or without additional models. The models are always visible unlike slices.
jcfr

jcfr

2012-11-28 08:09

administrator   ~0007377

Email sent to: Alex Yarmarkovich, Tamas Ungi, Julien Finet, Steve Pieper

Hi Folks,

Following yesterday hangout, the plan is to organize a "mini-bugfest" on Friday morning to work together on issue 2785.

See http://www.na-mic.org/Bug/view.php?id=2785

The plan would to use Google Hangout from 10am to noon. Let me know if you have can't attend.

Thanks
Jc

alexy

alexy

2012-11-30 07:43

developer   ~0007385

In vtkMRMLSliceLogic::ProcessLogicEvents() call Modified on vtkPoints to force slice bounds update.
http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=21473

jcfr

jcfr

2012-11-30 09:57

administrator   ~0007388

Back ported to 4.2 branch. See http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=21474

jcfr

jcfr

2014-03-06 05:12

administrator   ~0011005

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

Issue History

Date Modified Username Field Change
2012-11-21 14:25 ungi New Issue
2012-11-21 14:25 ungi Status new => assigned
2012-11-21 14:25 ungi Assigned To => kikinis
2012-11-21 15:26 ungi Note Added: 0007346
2012-11-21 16:06 jcfr Assigned To kikinis => alexy
2012-11-21 16:06 jcfr Target Version => Slicer 4.2.2
2012-11-22 03:49 lassoan Note Added: 0007347
2012-11-22 04:03 lassoan Relationship added related to 0002787
2012-11-22 06:53 alexy Note Added: 0007348
2012-11-28 08:09 jcfr Note Added: 0007377
2012-11-30 06:55 jcfr Relationship added related to 0002769
2012-11-30 07:43 alexy Note Added: 0007385
2012-11-30 07:43 alexy Status assigned => resolved
2012-11-30 07:43 alexy Resolution open => fixed
2012-11-30 09:57 jcfr Note Added: 0007388
2012-12-07 18:29 jcfr Fixed in Version => Slicer 4.2.2
2014-03-06 05:12 jcfr Note Added: 0011005
2014-03-06 05:13 jcfr Status resolved => closed