# Slicer app crashing when SegmentEditor Islands effect is run on an empty segment

**URL:** <https://discourse.slicer.org/t/slicer-app-crashing-when-segmenteditor-islands-effect-is-run-on-an-empty-segment/10348>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [February 19, 2020, 2:53am UTC](https://discourse.slicer.org/t/slicer-app-crashing-when-segmenteditor-islands-effect-is-run-on-an-empty-segment/10348 "2020-02-19T02:53:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ezgimercan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ezgimercan/32/4584_2.png) [@ezgimercan](https://discourse.slicer.org/u/ezgimercan)\
**Post date:** [February 19, 2020, 2:53am UTC](https://discourse.slicer.org/t/slicer-app-crashing-when-segmenteditor-islands-effect-is-run-on-an-empty-segment/10348/1 "2020-02-19T02:53:11Z")

</div>

Slicer Preview version 4.11.0-2020-02-17, on both Windows 10 and Mac OS X. All extensions disabled.  
When I download sample data, MRHead, create a segmentation, add a segment, and run Islands tool with any of the enabled options, Slicer crashes. The expected behavior is that nothing happens.

It doesn’t happen with the version 4.11.0-2019-08-30.

The log doesn’t have any errors, the last entry is:  
[INFO][Python] 18.02.2020 18:50:46 [Python] (C:\Users\ezgim\Documents\Slicer 4.11.0-2020-02-17\lib\Slicer-4.11\qt-scripted-modules\SegmentEditorEffects\SegmentEditorIslandsEffect.py:155) - 0 islands created (0 ignored)

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [February 19, 2020, 2:58am UTC](https://discourse.slicer.org/t/slicer-app-crashing-when-segmenteditor-islands-effect-is-run-on-an-empty-segment/10348/2 "2020-02-19T02:58:30Z")

</div>

@Sunderlandkyl could you have a look at this?

---

<div class="post-metadata">

**Author:** ![Sunderlandkyl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunderlandkyl/32/79987_2.png) [@Sunderlandkyl](https://discourse.slicer.org/u/Sunderlandkyl)\
**Post date:** [February 19, 2020, 6:20pm UTC](https://discourse.slicer.org/t/slicer-app-crashing-when-segmenteditor-islands-effect-is-run-on-an-empty-segment/10348/3 "2020-02-19T18:20:44Z")

</div>

This should be fixed in the preview version tomorrow.

---

<div class="post-metadata">

**Author:** ![Demi\_Trimino](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/demi_trimino/32/7806_2.png) [@Demi\_Trimino](https://discourse.slicer.org/u/Demi_Trimino)\
**Post date:** [May 8, 2020, 4:47pm UTC](https://discourse.slicer.org/t/slicer-app-crashing-when-segmenteditor-islands-effect-is-run-on-an-empty-segment/10348/4 "2020-05-08T16:47:52Z")

</div>

This was happening to me. I had to downsample my data and then it worked afterwards.

---

<div class="post-metadata">

**Author:** ![Sunderlandkyl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunderlandkyl/32/79987_2.png) [@Sunderlandkyl](https://discourse.slicer.org/u/Sunderlandkyl)\
**Post date:** [May 8, 2020, 5:13pm UTC](https://discourse.slicer.org/t/slicer-app-crashing-when-segmenteditor-islands-effect-is-run-on-an-empty-segment/10348/5 "2020-05-08T17:13:09Z")

</div>

@Demi_Trimino What version of Slicer were you using, and how large was your volume?

---

<div class="post-metadata">

**Author:** ![Demi\_Trimino](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/demi_trimino/32/7806_2.png) [@Demi\_Trimino](https://discourse.slicer.org/u/Demi_Trimino)\
**Post date:** [May 8, 2020, 5:33pm UTC](https://discourse.slicer.org/t/slicer-app-crashing-when-segmenteditor-islands-effect-is-run-on-an-empty-segment/10348/6 "2020-05-08T17:33:31Z")

</div>

4.11.0-2020-03-15 and I’m not sure how large the volume was. My computer will only tell me the size of each individual stack, not the entire folder size

---

<div class="post-metadata">

**Author:** ![Sunderlandkyl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunderlandkyl/32/79987_2.png) [@Sunderlandkyl](https://discourse.slicer.org/u/Sunderlandkyl)\
**Post date:** [May 8, 2020, 5:52pm UTC](https://discourse.slicer.org/t/slicer-app-crashing-when-segmenteditor-islands-effect-is-run-on-an-empty-segment/10348/7 "2020-05-08T17:52:23Z")

</div>

Sorry, I meant to ask what the dimensions of the volume are?

---

<div class="post-metadata">

**Author:** ![Demi\_Trimino](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/demi_trimino/32/7806_2.png) [@Demi\_Trimino](https://discourse.slicer.org/u/Demi_Trimino)\
**Post date:** [May 8, 2020, 6:05pm UTC](https://discourse.slicer.org/t/slicer-app-crashing-when-segmenteditor-islands-effect-is-run-on-an-empty-segment/10348/8 "2020-05-08T18:05:04Z")

</div>

0.0026921mm for all dimensions

---

<div class="post-metadata">

**Author:** ![Sunderlandkyl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunderlandkyl/32/79987_2.png) [@Sunderlandkyl](https://discourse.slicer.org/u/Sunderlandkyl)\
**Post date:** [May 8, 2020, 6:07pm UTC](https://discourse.slicer.org/t/slicer-app-crashing-when-segmenteditor-islands-effect-is-run-on-an-empty-segment/10348/9 "2020-05-08T18:07:13Z")

</div>

How many voxels are there in each axis? Ex 512x512x256.
