ANTs: Segmentation fault (core dumped) error on using antsApplyTransforms tool from ants conda pacakge

Operating system and version

Microsoft Windows [Version 10.0.19045.4170]

CPU architecture

x86_64 (PC, Intel Mac, other Intel/AMD)

ANTs code version

2.5.4.dev1-ga8846f1

ANTs installation type

Conda (Please include output of conda list --show-channel-urls | grep ants)

Summary of the problem

Output of conda list --show-channel-urls | grep ants

# packages in environment at /root/miniconda3/envs/ants-env:
ants                      2.5.4                h8c3795b_0    conda-forge

Every time I use ants conda package, more specifically antsApplyTransforms command line tool from ants, I get the following error: Segmentation fault (core dumped). I’m running ants in an isolated docker container with Ubuntu 24.04.1 LTS but the issue still persists on a Linux server with Ubuntu 20.04.5 LTS.

Commands to reproduce the problem.

antsApplyTransforms -i sub-01_desc-preproc_T1w.nii.gz -r sub -01_desc-preproc_T1w.nii.gz -o test_ants.nii.gz

Output of the command with verbose output.

Segmentation fault (core dumped)

Data to reproduce the problem

File too big to upload.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 20 (14 by maintainers)

Most upvoted comments

Thanks for the suggestion! When I installed version 2.5.1 and tried running antsApplyTransforms -d 3 -t Identity -o Linear[ identity.mat, 0 ] --verbose, I got an error antsApplyTransforms: error while loading shared libraries: libITKIOBruker-5.3.so.1: cannot open shared object file: No such file or directory which I believe stems from the version of libITK installed by version 2.5.1 of ants. When I pinned libITK to libitk=5.3.0=h26001f5_8 (5.4rc02-h26001f5_8 --> 5.3.0-h26001f5_8), I was able to run the above mentioned command successfully and got the following output:

Using double precision for computations.
=============================================================================
The composite transform comprises the following transforms (in order): 
  1. Identity (type = MatrixOffsetTransformBase)
=============================================================================
Default pixel value: 0

Another user on the conda feedstock issue reports that ants installs successfully by pinning libitk=5.4.0