# Error with flood fill in the nightly

**URL:** <https://discourse.slicer.org/t/error-with-flood-fill-in-the-nightly/7814>\
**Category:** Support\
**Created:** [July 30, 2019, 1:58pm UTC](https://discourse.slicer.org/t/error-with-flood-fill-in-the-nightly/7814 "2019-07-30T13:58:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/83011_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [July 30, 2019, 1:58pm UTC](https://discourse.slicer.org/t/error-with-flood-fill-in-the-nightly/7814/1 "2019-07-30T13:58:03Z")

</div>

I am getting this error when I try to use the flood fill with the editable intensity range option enabled with the MRHead.nrrd. Things work fine when the editable intensity range is unchecked.

Switch to module: “SegmentEditor”  
Execute: image ScalarType (4) must match out ScalarType (4), and mask scalar type (4) must be unsigned char.

---

<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:** [July 30, 2019, 4:13pm UTC](https://discourse.slicer.org/t/error-with-flood-fill-in-the-nightly/7814/2 "2019-07-30T16:13:47Z")

</div>

Masking was not implemented for Flood fill effect. I’ve added it and will be available in releases downloaded tomorrow or later.

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/83011_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [July 30, 2019, 5:03pm UTC](https://discourse.slicer.org/t/error-with-flood-fill-in-the-nightly/7814/3 "2019-07-30T17:03:01Z")

</div>

Thanks Andras!!!

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/83011_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [August 2, 2019, 9:34pm UTC](https://discourse.slicer.org/t/error-with-flood-fill-in-the-nightly/7814/4 "2019-08-02T21:34:54Z")

</div>

Hi Andras,  
I just tried with today’s preview (on Linux), and I am still getting this error message.

**Execute: image ScalarType (4) must match out ScalarType (4), and mask scalar type (4) must be unsigned char.**

---

<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:** [August 2, 2019, 11:18pm UTC](https://discourse.slicer.org/t/error-with-flood-fill-in-the-nightly/7814/5 "2019-08-02T23:18:52Z")

</div>

I could reproduce and fix the problem in the Preview Release (r28426).
