# Cannot close contour in Segment editor drawing effect

**URL:** <https://discourse.slicer.org/t/cannot-close-contour-in-segment-editor-drawing-effect/1774>\
**Category:** Support\
**Created:** [January 6, 2018, 4:03pm UTC](https://discourse.slicer.org/t/cannot-close-contour-in-segment-editor-drawing-effect/1774 "2018-01-06T16:03:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MimiPoon](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@MimiPoon](https://discourse.slicer.org/u/MimiPoon)\
**Post date:** [January 6, 2018, 4:03pm UTC](https://discourse.slicer.org/t/cannot-close-contour-in-segment-editor-drawing-effect/1774/1 "2018-01-06T16:03:50Z")

</div>

Problem report for Slicer 4.8.1 macosx-amd64: [please describe expected and actual behavior]  
Try to segment a tumor with draw but unable to do it with Enter key and ‘a’ key.

log message as follows:

[DEBUG][Qt] 06.01.2018 07:49:25 [] (unknown:0) - Session start time …: 2018-01-06 07:49:25  
[DEBUG][Qt] 06.01.2018 07:49:25 [] (unknown:0) - Slicer version …: 4.8.1 (revision 26813) macosx-amd64 - installed  
[DEBUG][Qt] 06.01.2018 07:49:25 [] (unknown:0) - Operating system …: Mac OS X / 10.12.6 / 16G1114 - 64-bit  
[DEBUG][Qt] 06.01.2018 07:49:25 [] (unknown:0) - Memory …: 16384 MB physical, 0 MB virtual  
[DEBUG][Qt] 06.01.2018 07:49:25 [] (unknown:0) - CPU …: GenuineIntel Intel® Core™ i7-4750HQ CPU @ 2.00GHz, 4 cores, 8 logical processors  
[DEBUG][Qt] 06.01.2018 07:49:25 [] (unknown:0) - Developer mode enabled …: no  
[DEBUG][Qt] 06.01.2018 07:49:25 [] (unknown:0) - Prefer executable CLI …: yes  
[DEBUG][Qt] 06.01.2018 07:49:25 [] (unknown:0) - Additional module paths …: /Applications/Slicer 2.app/Contents/Extensions-26813/SlicerRadiomics/lib/Slicer-4.8/qt-scripted-modules  
[DEBUG][Python] 06.01.2018 07:49:29 [Python] (/Applications/Slicer 2.app/Contents/lib/Python/lib/python2.7/site-packages/git/cmd.py:719) - Popen(%s, cwd=%s, universal\_newlines=%s, shell=%s)  
[DEBUG][Python] 06.01.2018 07:49:29 [Python] (/Applications/Slicer 2.app/Contents/lib/Python/lib/python2.7/site-packages/git/cmd.py:719) - Popen(%s, cwd=%s, universal\_newlines=%s, shell=%s)  
[INFO][Python] 06.01.2018 07:49:30 [Python] (/Applications/Slicer 2.app/Contents/Extensions-26813/SlicerRadiomics/lib/python2.7/site-packages/radiomics/ **init**.py:85) - Enabling C extensions  
[DEBUG][Python] 06.01.2018 07:49:30 [Python] (/Applications/Slicer 2.app/Contents/Extensions-26813/SlicerRadiomics/lib/python2.7/site-packages/pykwalify/compat.py:20) - Using yaml library: /Applications/Slicer 2.app/Contents/Extensions-26813/SlicerRadiomics/lib/python2.7/site-packages/yaml/ **init**.pyc  
[DEBUG][Python] 06.01.2018 07:49:37 [Python] (/Applications/Slicer 2.app/Contents/lib/Slicer-4.8/qt-scripted-modules/SubjectHierarchyPlugins/AbstractScriptedSubjectHierarchyPlugin.py:36) - Scripted subject hierarchy plugin registered: Annotations  
[DEBUG][Python] 06.01.2018 07:49:38 [Python] (/Applications/Slicer 2.app/Contents/lib/Slicer-4.8/qt-scripted-modules/SubjectHierarchyPlugins/AbstractScriptedSubjectHierarchyPlugin.py:36) - Scripted subject hierarchy plugin registered: SegmentEditor  
[DEBUG][Python] 06.01.2018 07:49:38 [Python] (/Applications/Slicer 2.app/Contents/lib/Slicer-4.8/qt-scripted-modules/SubjectHierarchyPlugins/AbstractScriptedSubjectHierarchyPlugin.py:36) - Scripted subject hierarchy plugin registered: SegmentStatistics  
[DEBUG][Qt] 06.01.2018 07:49:28 [] (unknown:0) - Number of registered modules: 136  
[INFO][Stream] 06.01.2018 07:49:30 [] (unknown:0) - Enabling C extensions  
[DEBUG][Qt] 06.01.2018 07:49:30 [] (unknown:0) - Number of instantiated modules: 136  
[DEBUG][Qt] 06.01.2018 07:49:38 [] (unknown:0) - Number of loaded modules: 136  
[DEBUG][Qt] 06.01.2018 07:49:38 [] (unknown:0) - Switch to module: “Welcome”  
[CRITICAL][FD] 06.01.2018 07:50:19 [] (unknown:0) - 2018-01-06 07:50:19.350 Slicer[3045:24445] modalSession has been exited prematurely - check for a reentrant call to endModalSession:  
[CRITICAL][FD] 06.01.2018 07:50:20 [] (unknown:0) - 2018-01-06 07:50:20.384 Slicer[3045:24445] modalSession has been exited prematurely - check for a reentrant call to endModalSession:  
[INFO][VTK] 06.01.2018 07:50:20 [vtkMRMLVolumeArchetypeStorageNode (0x137488960)] (/Users/kitware/Dashboards/Package/Slicer-481/Libs/MRML/Core/vtkMRMLVolumeArchetypeStorageNode.cxx:465) - Loaded volume from file: /Users/mimipoon/Documents/Images/MB49/Combo/ComboNrrd/Day10\_18F\_ARaG\_Group2\_Combo\_CST\_PET 18F\_Static\_600s Acquisitio.nrrd. Dimensions: 128x128x159. Number of components: 1. Pixel type: double.  
[DEBUG][Qt] 06.01.2018 07:50:20 [] (unknown:0) - “Volume” Reader has successfully read the file “/Users/mimipoon/Documents/Images/MB49/Combo/ComboNrrd/Day10\_18F\_ARaG\_Group2\_Combo\_CST\_PET 18F\_Static\_600s Acquisitio.nrrd” “[0.18s]”  
[INFO][VTK] 06.01.2018 07:50:27 [vtkMRMLVolumeArchetypeStorageNode (0x13bc7b500)] (/Users/kitware/Dashboards/Package/Slicer-481/Libs/MRML/Core/vtkMRMLVolumeArchetypeStorageNode.cxx:465) - Loaded volume from file: /Users/mimipoon/Documents/Images/MB49/Combo/ComboNrrd/Day10\_18F\_ARaG\_Group2\_Combo\_CST\_v1.ct modified.nrrd. Dimensions: 512x512x700. Number of components: 1. Pixel type: double.  
[DEBUG][Qt] 06.01.2018 07:50:27 [] (unknown:0) - “Volume” Reader has successfully read the file “/Users/mimipoon/Documents/Images/MB49/Combo/ComboNrrd/Day10\_18F\_ARaG\_Group2\_Combo\_CST\_v1.ct modified.nrrd” “[6.80s]”  
[DEBUG][Qt] 06.01.2018 07:50:30 [] (unknown:0) - Switch to module: “Data”  
[DEBUG][Qt] 06.01.2018 07:52:43 [] (unknown:0) - Switch to module: “SegmentEditor”  
[CRITICAL][FD] 06.01.2018 07:52:50 [] (unknown:0) - 2018-01-06 07:52:50.636 Slicer[3045:24445] modalSession has been exited prematurely - check for a reentrant call to endModalSession:  
[CRITICAL][FD] 06.01.2018 07:52:56 [] (unknown:0) - 2018-01-06 07:52:56.969 Slicer[3045:24445] modalSession has been exited prematurely - check for a reentrant call to endModalSession:

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [January 6, 2018, 4:34pm UTC](https://discourse.slicer.org/t/cannot-close-contour-in-segment-editor-drawing-effect/1774/2 "2018-01-06T16:34:34Z")

</div>

Thanks for the report! Unfortunately the log does not contain meaningful information so we need to reproduce. I tried on Windows and both ‘a’ and Enter keys work for me with the Draw effect using the latert trunk. Need to try on Mac.

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [January 6, 2018, 5:08pm UTC](https://discourse.slicer.org/t/cannot-close-contour-in-segment-editor-drawing-effect/1774/3 "2018-01-06T17:08:10Z")

</div>

Enter and ‘a’ both work for me with 4.8 Draw effect in Segment Editor on mac.

---

<div class="post-metadata">

**Author:** ![MimiPoon](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@MimiPoon](https://discourse.slicer.org/u/MimiPoon)\
**Post date:** [January 6, 2018, 10:09pm UTC](https://discourse.slicer.org/t/cannot-close-contour-in-segment-editor-drawing-effect/1774/4 "2018-01-06T22:09:29Z")

</div>

Draw effect in segment editor works well in 4.8 but not successful every  
time in 4.8.1.

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [January 6, 2018, 10:27pm UTC](https://discourse.slicer.org/t/cannot-close-contour-in-segment-editor-drawing-effect/1774/5 "2018-01-06T22:27:01Z")

</div>

I tried 4.8.1 on mac and still had no problems. Any idea how to reproduce the issue?
