# Error with "Fill between slices" 

**URL:** https://discourse.slicer.org/t/error-with-fill-between-slices/22090
**Category:** Support
**Tags:** segmentation, python
**Created:** [February 21, 2022, 5:15pm UTC](https://discourse.slicer.org/t/error-with-fill-between-slices/22090 "2022-02-21T17:15:34Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![frmrz](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/frmrz/32/14374_2.png) [@frmrz](https://discourse.slicer.org/u/frmrz)
#### Post date: [February 21, 2022, 5:15pm UTC](https://discourse.slicer.org/t/error-with-fill-between-slices/22090/1 "2022-02-21T17:15:34Z")

</div>

Dear community,

I’m trying to propagate the manual annotations I have, using the “Fill between slices” method.  
In some volume-segmentation pairs, I get the error “Auto-complete operation skipped: all visible segments are empty”. My pipeline is always the same: load volume and segmentation → set segmentation and master volume → set visibility for all segments → initialize “Fill between slices”.  
I have no clear indicator why in some volumes this works, while in others I have this problem. Do you know why this problem might occur? or point me in the direction where to search?

If I can resolve this problem I’d like to automate this process for all the volumes I have. Do you know of any snippets that might be of help?

Thank you all, have a great day!  
Francesco

---

<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 21, 2022, 5:31pm UTC](https://discourse.slicer.org/t/error-with-fill-between-slices/22090/2 "2022-02-21T17:31:01Z")

</div>

You can only initialize “Fill between slices” if you have some non-empty visible segments. Please try with the latest Slicer Preview Release. If the problem persists then the best would be if you could share a scene (upload somewhere and post the link) where initialization fails and there are non-empty segments. Make sure no patient health information is included in publicly shared files.

---

<div class="post-metadata">

### Author: ![frmrz](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/frmrz/32/14374_2.png) [@frmrz](https://discourse.slicer.org/u/frmrz)
#### Post date: [February 22, 2022, 9:41am UTC](https://discourse.slicer.org/t/error-with-fill-between-slices/22090/3 "2022-02-22T09:41:21Z")

</div>

Hi Andras,

thank you for your answer. Here [WeTransfer - Send Large Files & Share Photos Online - Up to 2GB Free](https://we.tl/t-a7f02DBkCi) you can find one of the volume-segmentation pair that raises the error.  
I had no luck in installing the Preview release since it raised the error: libITKniftiio-5.3.so.1: cannot open shared object file: No such file or directory. I don’t know if this is a common problem, I’ll try to solve it later.  
As for automating the “Fill” process, can you point me in the direction of the correct API to use?

---

<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 24, 2022, 5:45am UTC](https://discourse.slicer.org/t/error-with-fill-between-slices/22090/4 "2022-02-24T05:45:52Z")

</div>

The [ITK packaging issue](https://github.com/Slicer/Slicer/issues/6202) will be fixed on Friday. Until then you can use a Slicer Preview Release from 10 days ago: [https://download.slicer.org/?offset=-10](https://download.slicer.org/?offset=-10).

I’ve just tested this on Linux using Slicer-4.13.0-2022-02-14 and it worked well:

[https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/b/7b7809f88f646ab3f69b2124f6853009596eb3aa.mp4](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/b/7b7809f88f646ab3f69b2124f6853009596eb3aa.mp4)

---

<div class="post-metadata">

### Author: ![frmrz](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/frmrz/32/14374_2.png) [@frmrz](https://discourse.slicer.org/u/frmrz)
#### Post date: [February 24, 2022, 7:14am UTC](https://discourse.slicer.org/t/error-with-fill-between-slices/22090/5 "2022-02-24T07:14:36Z")

</div>

I’ll try on the version you mentioned, in the meantime, I’ve managed to do it programmatically, probably I’m messing something up when using the GUI.  
Thanks for the awesome support!
