# Problem with General Registration (Elastix)

**URL:** <https://discourse.slicer.org/t/problem-with-general-registration-elastix/31603>\
**Category:** Support\
**Tags:** registration, segmentation\
**Created:** [September 7, 2023, 12:04pm UTC](https://discourse.slicer.org/t/problem-with-general-registration-elastix/31603 "2023-09-07T12:04:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![xiangchaodong1](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/xiangchaodong1/32/67362_2.png) [@xiangchaodong1](https://discourse.slicer.org/u/xiangchaodong1)\
**Post date:** [September 7, 2023, 12:04pm UTC](https://discourse.slicer.org/t/problem-with-general-registration-elastix/31603/1 "2023-09-07T12:04:13Z")

</div>

For example, when I want to use this tool for registration, there is an error. I have tried many cases and the data are the same. Could someone please help me solve it? The error code is as follows:  
`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\>.

I am MAC version 5.50, and the elastix plug-in version is the latest.`

---

<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:** [September 8, 2023, 4:20am UTC](https://discourse.slicer.org/t/problem-with-general-registration-elastix/31603/2 "2023-09-08T04:20:40Z")

</div>

@xiangchaodong1 Does registration work with default settings on the `MRBrainTumor1` and `MRBrainTumor2` data sets?

@pieper, @jcfr or others who have access to a mac: could you check that Elastix (and in general, C++ modules in extensions) work well in Slicer-5.4/5.5 on macOS?  
Today I helped someone on a macOS computer and there were a number of errors about some shared libraries in extensions could not be loaded.

---

<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:** [September 8, 2023, 4:01pm UTC](https://discourse.slicer.org/t/problem-with-general-registration-elastix/31603/3 "2023-09-08T16:01:09Z")

</div>

Yes, I’ve confirmed VMTK is broken too.

> [@New extensions can not work on Slicer 5.4.0 on MacOS](https://discourse.slicer.org/t/new-extensions-can-not-work-on-slicer-5-4-0-on-macos/31535):
>
> Hello, I have just updated Slicer VMTK to 144582e (2023-08-22). It showed the following error: dlopen(/Applications/Slicer 5.4.0.app/Contents/Extensions-31938/SlicerVMTK/lib/Slicer-5.4/qt-loadable-modules/qSlicerBranchClipperModuleWidgetsPythonQt.so, 0x0002): Library not loaded: /Users/svc-dashboard/D/S/A/ITK-build/lib/libitkgdcmjpeg8-5.3.1.dylib Referenced from: \<8228E9E9-AE1B-31B6-BEEB-4F916BF21B91\> /Applications/Slicer 5.4.0.app/Contents/Extensions-31938/SlicerVMTK/lib/Slicer-5.4/libitkgdc…

---

<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:** [September 8, 2023, 10:03pm UTC](https://discourse.slicer.org/t/problem-with-general-registration-elastix/31603/4 "2023-09-08T22:03:38Z")

</div>

This is a very significant issue with the 5.4 release then.

@jcfr Could you have a look at this?

---

<div class="post-metadata">

**Author:** ![xiangchaodong1](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/xiangchaodong1/32/67362_2.png) [@xiangchaodong1](https://discourse.slicer.org/u/xiangchaodong1)\
**Post date:** [September 9, 2023, 1:58am UTC](https://discourse.slicer.org/t/problem-with-general-registration-elastix/31603/5 "2023-09-09T01:58:28Z")

</div>

Yes, the default registration: General Registration (BRIAN) can be used, but I am not skilled in using it.
