# Slicer 5.8.0 totalsegmentator erro

**URL:** https://discourse.slicer.org/t/slicer-5-8-0-totalsegmentator-erro/41856
**Category:** Support
**Created:** [February 24, 2025, 11:47am UTC](https://discourse.slicer.org/t/slicer-5-8-0-totalsegmentator-erro/41856 "2025-02-24T11:47:05Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![hepato](https://avatars.discourse-cdn.com/v4/letter/h/3da27b/32.png) [@hepato](https://discourse.slicer.org/u/hepato)
#### Post date: [February 24, 2025, 11:47am UTC](https://discourse.slicer.org/t/slicer-5-8-0-totalsegmentator-erro/41856/1 "2025-02-24T11:47:05Z")

</div>

I installed slicer 5.8.0 and extension of total segmentator .But total segmentator did not work successfully. And total segmentator run successfully in slicer 5.6.2.  
I reinstalled slicer 5.8.0 and extension of total segmentator several times, but problem is still not resolved.  
Could you give me some suggestion to resolve this problem?

error window pops up：

```auto
Failed to compute results.

Command '['/Applications/Slicer 2.app/Contents/bin/../bin/PythonSlicer', '/Applications/Slicer 2.app/Contents/lib/Python/bin/TotalSegmentator', '-i', '/private/var/folders/xm/g5xx81wd55b1rvslqnrdgwv80000gn/T/Slicer-cy/ __SlicerTemp__ 2025-02-24_19+49+25.194/total-segmentator-input.nii', '-o', '/private/var/folders/xm/g5xx81wd55b1rvslqnrdgwv80000gn/T/Slicer-cy/ __SlicerTemp__ 2025-02-24_19+49+25.194/segmentation', '--ml', '--task', 'total', '--fast']' returned non-zero exit status 1.

Traceback (most recent call last):
  File "/Applications/Slicer 2.app/Contents/bin/Python/slicer/util.py", line 3303, in tryWithErrorDisplay
    yield
  File "/Applications/Slicer 2.app/Contents/Extensions-33216/TotalSegmentator/lib/Slicer-5.8/qt-scripted-modules/TotalSegmentator.py", line 307, in onApplyButton
    self.logic.process(self.ui.inputVolumeSelector.currentNode(), self.ui.outputSegmentationSelector.currentNode(),
  File "/Applications/Slicer 2.app/Contents/Extensions-33216/TotalSegmentator/lib/Slicer-5.8/qt-scripted-modules/TotalSegmentator.py", line 1037, in process
    self.processVolume(inputFile, inputVolume,
  File "/Applications/Slicer 2.app/Contents/Extensions-33216/TotalSegmentator/lib/Slicer-5.8/qt-scripted-modules/TotalSegmentator.py", line 1104, in processVolume
    self.logProcessOutput(proc)
  File "/Applications/Slicer 2.app/Contents/Extensions-33216/TotalSegmentator/lib/Slicer-5.8/qt-scripted-modules/TotalSegmentator.py", line 883, in logProcessOutput
    raise CalledProcessError(retcode, proc.args, output=proc.stdout, stderr=proc.stderr)
subprocess.CalledProcessError: Command '['/Applications/Slicer 2.app/Contents/bin/../bin/PythonSlicer', '/Applications/Slicer 2.app/Contents/lib/Python/bin/TotalSegmentator', '-i', '/private/var/folders/xm/g5xx81wd55b1rvslqnrdgwv80000gn/T/Slicer-cy/ __SlicerTemp__ 2025-02-24_19+49+25.194/total-segmentator-input.nii', '-o', '/private/var/folders/xm/g5xx81wd55b1rvslqnrdgwv80000gn/T/Slicer-cy/ __SlicerTemp__ 2025-02-24_19+49+25.194/segmentation', '--ml', '--task', 'total', '--fast']' returned non-zero exit status 1.

```

---

<div class="post-metadata">

### Author: ![MasatoshiOBA](https://avatars.discourse-cdn.com/v4/letter/m/b487fb/32.png) [@MasatoshiOBA](https://discourse.slicer.org/u/MasatoshiOBA)
#### Post date: [February 24, 2025, 12:15pm UTC](https://discourse.slicer.org/t/slicer-5-8-0-totalsegmentator-erro/41856/2 "2025-02-24T12:15:16Z")

</div>

**Are you using a GPU?**  
If so, could it be that GPU memory is not being released properly or is occupied by another process?

I had a similar issue before, and in my case, an **“out of memory”** error didn’t appear, which made it difficult to figure out the cause. You might want to check if GPU memory is still in use by running:

sh

```auto
nvidia-smi

```

If some process is occupying the memory, try terminating it and then running TotalSegmentator again.

---

<div class="post-metadata">

### Author: ![hepato](https://avatars.discourse-cdn.com/v4/letter/h/3da27b/32.png) [@hepato](https://discourse.slicer.org/u/hepato)
#### Post date: [February 24, 2025, 12:23pm UTC](https://discourse.slicer.org/t/slicer-5-8-0-totalsegmentator-erro/41856/3 "2025-02-24T12:23:41Z")

</div>

thanks for your reply！  
I use MacBook Air m1,which gpu not available.  
And total segmentation work well in 5.6.2 version of slicer installed in my Macbook for long time.

---

<div class="post-metadata">

### Author: ![MasatoshiOBA](https://avatars.discourse-cdn.com/v4/letter/m/b487fb/32.png) [@MasatoshiOBA](https://discourse.slicer.org/u/MasatoshiOBA)
#### Post date: [February 24, 2025, 12:44pm UTC](https://discourse.slicer.org/t/slicer-5-8-0-totalsegmentator-erro/41856/4 "2025-02-24T12:44:12Z")

</div>

Since you’re using a **CPU** , this topic might be relevant to your issue:

[How to solve PyTorch version error in TotalSegmentator using CPU](https://discourse.slicer.org/t/how-to-solve-pytorch-version-error-in-totalsegmentator-using-cpu/36269)

It seems that there could be a **PyTorch version compatibility issue** when running TotalSegmentator on CPU. You might want to check if updating or downgrading PyTorch helps resolve the problem.

---

<div class="post-metadata">

### Author: ![hepato](https://avatars.discourse-cdn.com/v4/letter/h/3da27b/32.png) [@hepato](https://discourse.slicer.org/u/hepato)
#### Post date: [February 24, 2025, 12:59pm UTC](https://discourse.slicer.org/t/slicer-5-8-0-totalsegmentator-erro/41856/5 "2025-02-24T12:59:07Z")

</div>

I check PyTorch module. and PyTorch 2.2.2 already installed ,using cpu.
