VTK failure and Segment Editor failure

For some reason when I go to apply my newly created segmentation using the segment editor (mainly using fastmarching) the segment disappears and is irretrievable.

In addition, I have gotten warnings about a VTK leak. I’ve attached my log file from when I go the leak below, not sure if this helps:

[WARNING][VTK] 09.08.2017 11:52:17 [] (unknown:0) - Generic Warning: In c:\d\n\e-0\markupstomodel\markupstomodel\logic\CreateClosedSurfaceUtil.h, line 466
Surface extrusion amount smaller than 0.01 : 0. Consider checking the points for singularity. Setting surface extrusion amount to default 0.01.
[WARNING][VTK] 09.08.2017 11:52:17 [] (unknown:0) - Generic Warning: In c:\d\n\e-0\markupstomodel\markupstomodel\logic\CreateClosedSurfaceUtil.h, line 466
Surface extrusion amount smaller than 0.01 : 0. Consider checking the points for singularity. Setting surface extrusion amount to default 0.01.
[WARNING][VTK] 09.08.2017 11:52:54 [] (unknown:0) - Generic Warning: In c:\d\n\e-0\markupstomodel\markupstomodel\logic\CreateClosedSurfaceUtil.h, line 368
Extent ranges not provided in order largest to smallest. Unexpected results may occur.
[WARNING][VTK] 09.08.2017 11:52:54 [] (unknown:0) - Generic Warning: In c:\d\n\e-0\markupstomodel\markupstomodel\logic\CreateClosedSurfaceUtil.h, line 368
Extent ranges not provided in order largest to smallest. Unexpected results may occur.

[ERROR][VTK] 09.08.2017 11:54:14 [vtkMRMLScene (00000253B4BD29D0)] (C:\D\N\Slicer-0\Modules\Loadable\Segmentations\Logic\vtkSlicerSegmentationsModuleLogic.cxx:674) - vtkSlicerSegmentationsModuleLogic::GetSegmentForSegmentSubjectHierarchyItem: Segmentation does not contain segment with given ID: Segment_2
[WARNING][VTK] 09.08.2017 11:54:15 [vtkSegmentationHistory (00000253C1DCA980)] (C:\D\N\Slicer-0\Libs\vtkSegmentationCore\vtkSegmentationHistory.cxx:207) - vtkSegmentation::RestorePreviousState failed: There are no previous state available for restore
[WARNING][VTK] 09.08.2017 11:54:15 [vtkSegmentationHistory (00000253C1DCA980)] (C:\D\N\Slicer-0\Libs\vtkSegmentationCore\vtkSegmentationHistory.cxx:207) - vtkSegmentation::RestorePreviousState failed: There are no previous state available for restore
[WARNING][VTK] 09.08.2017 11:54:15 [vtkSegmentationHistory (00000253C1DCA980)] (C:\D\N\Slicer-0\Libs\vtkSegmentationCore\vtkSegmentationHistory.cxx:207) - vtkSegmentation::RestorePreviousState failed: There are no previous state available for restore
[WARNING][VTK] 09.08.2017 11:54:15 [vtkSegmentationHistory (00000253C1DCA980)] (C:\D\N\Slicer-0\Libs\vtkSegmentationCore\vtkSegmentationHistory.cxx:207) - vtkSegmentation::RestorePreviousState failed: There are no previous state available for restore
[WARNING][VTK] 09.08.2017 11:54:15 [vtkSegmentationHistory (00000253C1DCA980)] (C:\D\N\Slicer-0\Libs\vtkSegmentationCore\vtkSegmentationHistory.cxx:207) - vtkSegmentation::RestorePreviousState failed: There are no previous state available for restore
[WARNING][VTK] 09.08.2017 11:54:16 [vtkSegmentationHistory (00000253C1DCA980)] (C:\D\N\Slicer-0\Libs\vtkSegmentationCore\vtkSegmentationHistory.cxx:207) - vtkSegmentation::RestorePreviousState failed: There are no previous state available for restore
[WARNING][VTK] 09.08.2017 11:54:16 [vtkSegmentationHistory (00000253C1DCA980)] (C:\D\N\Slicer-0\Libs\vtkSegmentationCore\vtkSegmentationHistory.cxx:207) - vtkSegmentation::RestorePreviousState failed: There are no previous state available for restore
[...]
[WARNING][VTK] 09.08.2017 11:54:20 [vtkSegmentationHistory (00000253C1DCA980)] (C:\D\N\Slicer-0\Libs\vtkSegmentationCore\vtkSegmentationHistory.cxx:207) - vtkSegmentation::RestorePreviousState failed: There are no previous state available for restore

[CRITICAL][Qt] 09.08.2017 11:54:24 [] (unknown:0) - class QString __cdecl qSlicerSegmentEditorAbstractEffect::parameter(class QString) : Parameter named  "PercentMax"  cannot be found for effect  "Fast Marching"
[CRITICAL][Qt] 09.08.2017 11:54:24 [] (unknown:0) - double __cdecl qSlicerSegmentEditorAbstractEffect::doubleParameter(class QString) : Parameter named  "PercentMax"  cannot be converted to floating point number!
[...]
[CRITICAL][Qt] 09.08.2017 11:54:24 [] (unknown:0) - double __cdecl qSlicerSegmentEditorAbstractEffect::doubleParameter(class QString) : Parameter named  "PercentMax"  cannot be converted to floating point number!
[CRITICAL][Qt] 09.08.2017 11:54:24 [] (unknown:0) - class QString __cdecl qSlicerSegmentEditorAbstractEffect::parameter(class QString) : Parameter named  "PercentMax"  cannot be found for effect  "Fast Marching"
[CRITICAL][Qt] 09.08.2017 11:54:24 [] (unknown:0) - double __cdecl qSlicerSegmentEditorAbstractEffect::doubleParameter(class QString) : Parameter named  "PercentMax"  cannot be converted to floating point number!

[WARNING][Qt] 09.08.2017 11:54:25 [] (unknown:0) - libpng warning: iCCP: known incorrect sRGB profile
[WARNING][Qt] 09.08.2017 11:54:25 [] (unknown:0) - libpng warning: iCCP: known incorrect sRGB profile

Can you please describe what steps did you exactly took on what input?

Based on the log the problem doesn’t seem to be in VTK but in SegmentEditor, when interpreting the parameters. Can you please elaborate on what parameters you use? A screenshot about right before clicking Apply could also help.

Thanks!

I opened a volume of dicom images, through the dicom browser, switched to the segment editor, used the pain effect to label some pixel values, then switched to the fast marching effect and initialized it, and clicked apply and the segmentation disappeared. Then I switched and tried a fast grow cut after relabeling pixels with the paint effect, initialized it, and after it ran and I had a good segmentation, I clicked apply again and it did the same thing. So I shut the program down to restart it, and that’s when it gave me the VTK leak error. I restarted and tried several more Segment Editor effects but got the same results.

Thanks for reporting this. Could you please send the application log? You can find the logs of the last 10 sessions in menu: Help / Report a bug. Make sure there is no patient information is includes in the text.

I reported the log file above with the errors and warnings from Slicer. I redownloaded the nightly build that you suggested in a different post today because of the extension issues, so I doubt I will be able to give you anything more. I am able to do all the segmentation effects on that build it seems though.

I would need the complete logs but at least the log file header that shows exact version information etc.