# Command 'elastix' died with \<Signals.SIGABRT: 6\>.

**URL:** <https://discourse.slicer.org/t/command-elastix-died-with-signals-sigabrt-6/32970>\
**Category:** Support\
**Created:** [November 22, 2023, 8:31pm UTC](https://discourse.slicer.org/t/command-elastix-died-with-signals-sigabrt-6/32970 "2023-11-22T20:31:21Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Franci](https://avatars.discourse-cdn.com/v4/letter/f/b38774/32.png) [@Franci](https://discourse.slicer.org/u/Franci)\
**Post date:** [November 22, 2023, 8:31pm UTC](https://discourse.slicer.org/t/command-elastix-died-with-signals-sigabrt-6/32970/1 "2023-11-22T20:31:21Z")

</div>

Hi,

I am using a MacBook and Slicer 5.5.0

First I had many issues to find a version that allowed the SlicerElastix downloading.

Now when I put my inputs brain files and output + specify the active volume and the lookup table + click on “apply”, Elastix it not able to compute the results and send back the following error message :  
“Command ‘elastix’ died with \<Signals.SIGABRT: 6\>.”

details:  
Traceback (most recent call last):  
File “/Applications/Slicer.app/Contents/bin/Python/slicer/util.py”, line 3146, in tryWithErrorDisplay  
yield  
File “/Applications/Slicer.app/Contents/Extensions-32158/SlicerElastix/lib/Slicer-5.5/qt-scripted-modules/Elastix.py”, line 241, in onApplyButton  
self.logic.registerVolumesUsingParameterNode(self.\_parameterNode)  
File “/Applications/Slicer.app/Contents/Extensions-32158/SlicerElastix/lib/Slicer-5.5/qt-scripted-modules/Elastix.py”, line 518, in registerVolumesUsingParameterNode  
self.registerVolumes(  
File “/Applications/Slicer.app/Contents/Extensions-32158/SlicerElastix/lib/Slicer-5.5/qt-scripted-modules/Elastix.py”, line 564, in registerVolumes  
self.logProcessOutput(elastixProcess)  
File “/Applications/Slicer.app/Contents/Extensions-32158/SlicerElastix/lib/Slicer-5.5/qt-scripted-modules/Elastix.py”, line 499, in logProcessOutput  
raise subprocess.CalledProcessError(return\_code, “elastix”)  
subprocess.CalledProcessError: Command ‘elastix’ died with \<Signals.SIGABRT: 6\>.

Chat GPT says that it’s an error inside the python script, I don’t know how to access it. And I need this data processing step for my research.

Please if anyone could help with this. 🙂

---

<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:** [November 22, 2023, 8:32pm UTC](https://discourse.slicer.org/t/command-elastix-died-with-signals-sigabrt-6/32970/2 "2023-11-22T20:32:55Z")

</div>

Have you specified some custom Elastix binaries? Was there any issue with the binaries that are bundled with the extension?

---

<div class="post-metadata">

**Author:** ![Franci](https://avatars.discourse-cdn.com/v4/letter/f/b38774/32.png) [@Franci](https://discourse.slicer.org/u/Franci)\
**Post date:** [November 22, 2023, 8:42pm UTC](https://discourse.slicer.org/t/command-elastix-died-with-signals-sigabrt-6/32970/3 "2023-11-22T20:42:18Z")

</div>

Thank you for the quick answer, I just loaded the “SlicerElastix extension” as it was in the “Install Slicer extensions”, without any custom.

---

<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:** [November 23, 2023, 12:35pm UTC](https://discourse.slicer.org/t/command-elastix-died-with-signals-sigabrt-6/32970/4 "2023-11-23T12:35:50Z")

</div>

Could you please try with the latest Slicer Preview Release?

---

<div class="post-metadata">

**Author:** ![Franci](https://avatars.discourse-cdn.com/v4/letter/f/b38774/32.png) [@Franci](https://discourse.slicer.org/u/Franci)\
**Post date:** [November 23, 2023, 1:19pm UTC](https://discourse.slicer.org/t/command-elastix-died-with-signals-sigabrt-6/32970/5 "2023-11-23T13:19:32Z")

</div>

unfortunately, it gave the same error message on Slicer 5.4.0. This is why I tried a more ancien version.

---

<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:** [November 23, 2023, 8:52pm UTC](https://discourse.slicer.org/t/command-elastix-died-with-signals-sigabrt-6/32970/6 "2023-11-23T20:52:45Z")

</div>

Could you please try with the latest Slicer Preview Release (Slicer-5.5.x)?

---

<div class="post-metadata">

**Author:** ![Franci](https://avatars.discourse-cdn.com/v4/letter/f/b38774/32.png) [@Franci](https://discourse.slicer.org/u/Franci)\
**Post date:** [November 29, 2023, 3:46pm UTC](https://discourse.slicer.org/t/command-elastix-died-with-signals-sigabrt-6/32970/7 "2023-11-29T15:46:43Z")

</div>

I tried the latest version stable, slicer 5.6.0, it gave me the same error message. Do you thing we can resolve this?

---

<div class="post-metadata">

**Author:** ![Andrey\_Zhylka](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/andrey_zhylka/32/68825_2.png) [@Andrey\_Zhylka](https://discourse.slicer.org/u/Andrey_Zhylka)\
**Post date:** [December 28, 2023, 12:45pm UTC](https://discourse.slicer.org/t/command-elastix-died-with-signals-sigabrt-6/32970/8 "2023-12-28T12:45:25Z")

</div>

I have the same issue (also on MacBook). The log window says it cannot find libomp.dylib. I have installed that one using Homebrew, but Slicer is not looking for it in the Homebrew directories but in the extension directory and /usr/lib, /usr/local/lib

---

<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:** [January 1, 2024, 5:55pm UTC](https://discourse.slicer.org/t/command-elastix-died-with-signals-sigabrt-6/32970/9 "2024-01-01T17:55:58Z")

</div>

Thank you, this explains it. OpenMP is a pain. You probably have dozens of mostly incompatible variants on your system. Elastix should not try to use that are on your system, because most likely they will not work (because they are probably not the same version as the one used when building Elastix).

A workaround that you can apply immediately is to download Elastix binaries (or build Elastix on your system) and specify that path in the Advanced section of the Elastix module in Slicer.

The root cause of the issue could be fixed by bundling libopenmp.dylib with the SlicerElastix extension or disabling OpenMP when building the extension. Your can monitor the status of the fix here:

> <https://github.com/lassoan/SlicerElastix/issues/44>
>
> Have this issue on macbook air 15inch M2 (Macos 14.0). Please Help!
> 
> Details:
> …
> \`Traceback (most recent call last):
> File “/Applications/Slicer.app/Contents/bin/Python/slicer/util.py”, line 3146, in tryWithErrorDisplay
> yield
> File “/Applications/Slicer.app/Contents/Extensions-32158/SlicerElastix/lib/Slicer-5.5/qt-scripted-modules/Elastix.py”, line 241, in onApplyButton
> self.logic.registerVolumesUsingParameterNode(self.\_parameterNode)
> File “/Applications/Slicer.app/Contents/Extensions-32158/SlicerElastix/lib/Slicer-5.5/qt-scripted-modules/Elastix.py”, line 518, in registerVolumesUsingParameterNode
> self.registerVolumes(
> File “/Applications/Slicer.app/Contents/Extensions-32158/SlicerElastix/lib/Slicer-5.5/qt-scripted-modules/Elastix.py”, line 564, in registerVolumes
> self.logProcessOutput(elastixProcess)
> File “/Applications/Slicer.app/Contents/Extensions-32158/SlicerElastix/lib/Slicer-5.5/qt-scripted-modules/Elastix.py”, line 499, in logProcessOutput
> raise subprocess.CalledProcessError(return\_code, “elastix”)
> subprocess.CalledProcessError: Command ‘elastix’ died with \<Signals.SIGABRT: 6\>.
