# loading failed: Unable to allocate 113 GiB

**URL:** <https://discourse.slicer.org/t/loading-failed-unable-to-allocate-113-gib/34801>\
**Category:** Support\
**Created:** [March 9, 2024, 5:19pm UTC](https://discourse.slicer.org/t/loading-failed-unable-to-allocate-113-gib/34801 "2024-03-09T17:19:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aochaoyu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/aochaoyu/32/69616_2.png) [@aochaoyu](https://discourse.slicer.org/u/aochaoyu)\
**Post date:** [March 9, 2024, 5:19pm UTC](https://discourse.slicer.org/t/loading-failed-unable-to-allocate-113-gib/34801/1 "2024-03-09T17:19:45Z")

</div>

I use the Image Stacks module, and a Slicer error window pops up. The content is “loading failed: Unable to allocate 113 GiB for an array with shape (206,19200,30720) and data type uint8”. I would like to ask the seniors if there is a suitable solution. I’m trying to find the settings for importing images, hoping to use an ssd to process the images instead. Thanks!

---

<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:** [March 9, 2024, 5:39pm UTC](https://discourse.slicer.org/t/loading-failed-unable-to-allocate-113-gib/34801/2 "2024-03-09T17:39:53Z")

</div>

That means you don’t have enough memory. See the docs for info on reducing the size:

> <https://github.com/SlicerMorph/SlicerMorph/tree/master/Docs/ImageStacks>
>
> //github.com/SlicerMorph/SlicerMorph/tree/master/Docs/ImageStacks

If you really need to operate at the full volume you’ll need to find a bigger computer (5x or more memory than the size of the volume). One option is to rent a big memory cloud VM.

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [March 9, 2024, 10:41pm UTC](https://discourse.slicer.org/t/loading-failed-unable-to-allocate-113-gib/34801/3 "2024-03-09T22:41:52Z")

</div>

Based on the numbers you reported, you have more than 30,000 slices! The other dimensions are also very awkward 206x19200.

What is this dataset of? Given the number of slices, I would suggest using the skip slice option ImageStacks, and perhaps use every other or every third slice. But again, dimensions are very unusual…
