Error when removing skull from anat data

Hi experts,
I am currently working on an analysis using AFNI, and I have encountered an error during the preprocessing stage. Below are the details of the issue:

#++ Removing skull from anat data
#Script is running (command trimmed):
3dSkullStrip -orig_vol -input ./__tt_FR-T1-1R+orig -prefix ./__tt_FR-T1-1R_ns

Fatal Signal 11 (SIGSEGV) received
3dSkullStrip
Bottom of Debug Stack
** AFNI version = AFNI_20.3.01 Compile date = Oct 19 2020
** [[Precompiled binary linux_centos_7_64: Oct 19 2020]]
** Program Death **
** If you report this crash to the AFNI message board,
** please copy the error messages EXACTLY, and give
** the command line you used to run the program, and
** any other information needed to repeat the problem.
** You may later be asked to upload data to help debug.
** Crash log is appended to file /home/rshuang/.afni.crashlog
** ERROR: Could not strip skull

** ERROR - script failed

------ CRASH LOG ------------------------------**
Fatal Signal 11 (SIGSEGV) received
.......... recent internal history .........................................
++++SUMA_append_replace_string_eng [4]: {ENTRY (file=suma_utils.c line=2806) from SUMA_ParseFname_eng {1 ms}
----SUMA_append_replace_string_eng [4]: EXIT} (file=suma_utils.c line=2871) to SUMA_ParseFname_eng {1 ms}
++++SUMA_append_replace_string_eng [4]: {ENTRY (file=suma_utils.c line=2806) from SUMA_ParseFname_eng {1 ms}
----SUMA_append_replace_string_eng [4]: EXIT} (file=suma_utils.c line=2871) to SUMA_ParseFname_eng {1 ms}
++++SUMA_append_replace_string_eng [4]: {ENTRY (file=suma_utils.c line=2806) from SUMA_ParseFname_eng {1 ms}
----SUMA_append_replace_string_eng [4]: EXIT} (file=suma_utils.c line=2871) to SUMA_ParseFname_eng {1 ms}
++++SUMA_append_replace_string_eng [4]: {ENTRY (file=suma_utils.c line=2806) from SUMA_ParseFname_eng {1 ms}
----SUMA_append_replace_string_eng [4]: EXIT} (file=suma_utils.c line=2871) to SUMA_ParseFname_eng {1 ms}
++++SUMA_append_replace_string_eng [4]: {ENTRY (file=suma_utils.c line=2806) from SUMA_ParseFname_eng {1 ms}
----SUMA_append_replace_string_eng [4]: EXIT} (file=suma_utils.c line=2871) to SUMA_ParseFname_eng {1 ms}
++++find_filename_extension [4]: {ENTRY (file=thd_opendset.c line=674) from SUMA_ParseFname_eng {1 ms}
----find_filename_extension [4]: EXIT} (file=thd_opendset.c line=683) to SUMA_ParseFname_eng {1 ms}
++++SUMA_copy_string [4]: {ENTRY (file=suma_utils.c line=2543) from SUMA_ParseFname_eng {1 ms}
----SUMA_copy_string [4]: EXIT} (file=suma_utils.c line=2556) to SUMA_ParseFname_eng {1 ms}
++++SUMA_copy_string [4]: {ENTRY (file=suma_utils.c line=2543) from SUMA_ParseFname_eng {1 ms}
----SUMA_copy_string [4]: EXIT} (file=suma_utils.c line=2556) to SUMA_ParseFname_eng {1 ms}
++++SUMA_copy_string [4]: {ENTRY (file=suma_utils.c line=2543) from SUMA_ParseFname_eng {1 ms}
----SUMA_copy_string [4]: EXIT} (file=suma_utils.c line=2556) to SUMA_ParseFname_eng {1 ms}
++++SUMA_append_string [4]: {ENTRY (file=suma_utils.c line=2735) from SUMA_ParseFname_eng {1 ms}
----SUMA_append_string [4]: EXIT} (file=suma_utils.c line=2766) to SUMA_ParseFname_eng {1 ms}
++++SUMA_append_string [4]: {ENTRY (file=suma_utils.c line=2735) from SUMA_ParseFname_eng {1 ms}
----SUMA_append_string [4]: EXIT} (file=suma_utils.c line=2766) to SUMA_ParseFname_eng {1 ms}
++++SUMA_append_replace_string_eng [4]: {ENTRY (file=suma_utils.c line=2806) from SUMA_ParseFname_eng {1 ms}
----SUMA_append_replace_string_eng [4]: EXIT} (file=suma_utils.c line=2871) to SUMA_ParseFname_eng {1 ms}
++++SUMA_append_replace_string_eng [4]: {ENTRY (file=suma_utils.c line=2806) from SUMA_ParseFname_eng {1 ms}
----SUMA_append_replace_string_eng [4]: EXIT} (file=suma_utils.c line=2871) to SUMA_ParseFname_eng {1 ms}
++++SUMA_append_replace_string_eng [4]: {ENTRY (file=suma_utils.c line=2806) from SUMA_ParseFname_eng {1 ms}
----SUMA_append_replace_string_eng [4]: EXIT} (file=suma_utils.c line=2871) to SUMA_ParseFname_eng {1 ms}
---SUMA_ParseFname_eng [3]: EXIT} (file=suma_utils.c line=1439) to SUMA_SetAutoRecord {1 ms}
--SUMA_SetAutoRecord [2]: EXIT} (file=SUMA_SVmanip.c line=4594) to Bottom of Debug Stack {1 ms}
++3dSkullStrip [2]: {ENTRY (file=SUMA_3dSkullStrip.c line=1357) from Bottom of Debug Stack {1 ms}
............................................................................
3dSkullStrip
** AFNI compile date = Oct 19 2020
** [[Precompiled binary linux_centos_7_64: Oct 19 2020]]
** Program Crash **
when i input afni_system_check.py -check_all, the output is that:
rshuang@90.1:/RAID/fspace/FJW/image>afni_system_check.py -check_all
-------------------------------- general ---------------------------------
architecture: 64bit ELF
system: Linux
release: 4.18.0-240.10.1.el8_3.x86_64
version: #1 SMP Mon Jan 18 17:05:51 UTC 2021
distribution: CentOS Linux 8
number of CPUs: 64
apparent login shell: tcsh
shell RC file: .tcshrc (exists)

--------------------- AFNI and related program tests ---------------------
which afni : /home/rshuang/AFNI/afni
afni version : Precompiled binary linux_centos_7_64: Oct 19 2020
: AFNI_20.3.01 'Vespasian'
AFNI_version.txt : AFNI_20.3.01, linux_centos_7_64, Oct 19 2020
which python : /home/packages/fsl/fslpython/bin/python
python version : 3.9.16
which R : which: no R in (/home/packages/fsl/bin:/usr/sbin:/sbin:/usr/bin:/usr0/bin:/usr/bin/X11:/bin:/etc:/usr/etc:/home/rshuang/bin:/home/rshuang/AFNI:/home/packages/R2019a/bin:/home/packages/fsl/bin:/home/packages/fsl/fslpython/bin:/home/rshuang/csurf/bin/noarch/:/home/rshuang/csurf/bin/Linux-x86_64:/usr/local/bin:/usr/local/lib:/usr/local/pbmplus/bin:.)

which tcsh : /usr/bin/tcsh

instances of various programs found in PATH:
afni : 1 (/home/rshuang/AFNI/afni)
R : 0
python : 2
/home/rshuang/.local/bin
/home/packages/fsl/fslpython/bin/python3.9
python2 : 1 (/usr/bin/python2.7)
python3 : 2
/usr/libexec/platform-python3.6
/home/packages/fsl/fslpython/bin/python3.9

testing ability to start various programs...
afni : success
suma : success
3dSkullStrip : FAILURE

    Fatal Signal 11 (SIGSEGV) received
      3dSkullStrip
     Bottom of Debug Stack
    ** AFNI version = AFNI_20.3.01  Compile date = Oct 19 2020
    ** [[Precompiled binary linux_centos_7_64: Oct 19 2020]]
    ** Program Death **
    ** If you report this crash to the AFNI message board,
    ** please copy the error messages EXACTLY, and give
    ** the command line you used to run the program, and
    ** any other information needed to repeat the problem.
    ** You may later be asked to upload data to help debug.
    ** Crash log is appended to file /home/rshuang/.afni.crashlog
uber_subject.py      : success
3dAllineate          : success
3dRSFC               : success
SurfMesh             : success
3dClustSim           : success
3dMVM                : success

checking for R packages...
rPkgsInstall -pkgs ALL -check : FAILURE
R: Command not found.

R RHOME : R: Command not found.

checking for $HOME files...
.afnirc : found
.sumarc : found
.afni/help/all_progs.COMP : found

------------------------------ python libs -------------------------------
** failed to load module PyQt4
-- PyQt4 is no longer needed for an AFNI bootcamp

++ module loaded: matplotlib.pyplot
module file : /home/packages/fsl/fslpython/lib/python3.9/site-packages/matplotlib/pyplot.py

-------------------------------- env vars --------------------------------
PATH = /home/packages/fsl/bin:/usr/sbin:/sbin:/usr/bin:/usr0/bin:/usr/bin/X11:/bin:/etc:/usr/etc:/home/rshuang/bin:/home/rshuang/AFNI:/home/packages/R2019a/bin:/home/packages/fsl/bin:/home/packages/fsl/fslpython/bin:/home/rshuang/csurf/bin/noarch/:/home/rshuang/csurf/bin/Linux-x86_64:/usr/local/bin:/usr/local/lib:/usr/local/pbmplus/bin:.

PYTHONPATH =
R_LIBS =
LD_LIBRARY_PATH = /home/rshuang/AFNI/

DYLD_LIBRARY_PATH =
DYLD_FALLBACK_LIBRARY_PATH =

------------------------------ data checks -------------------------------
data dir : missing AFNI_data6
data dir : missing AFNI_demos
data dir : missing suma_demo
data dir : missing afni_handouts
atlas : found TT_N27+tlrc under /home/rshuang/AFNI

------------------------------ OS specific -------------------------------
which dnf : /usr/bin/dnf
dnf version : 4.7.0
which yum : /usr/bin/yum
yum version : 4.7.0

========================= summary, please fix: =========================

  • failure under initial "AFNI and related program tests"
  • AFNI programs show FAILURE
  • missing R packages (see rPkgsInstall)
  • insufficient data for AFNI bootcamp

Hi Megan,

I suspect there is some library that is not appropriate for 3dSkullStrip, as it is crashing even running -help. It is perhaps a separate point that you are running binaries that are 4 years old. There are lots of good updates since then. :)

What is the output from:

ldd ~/AFNI/3dSkullStrip

Thanks,

  • rick

Hi Rick,
Thank for your reply. The output from ldd ~/AFNI/3dSkullStrip is:

rshuang@10.113.90.1:/home/rshuang>ldd ~/AFNI/3dSkullStrip
linux-vdso.so.1 (0x00007fff1f7eb000)
libSUMA.so => /home/rshuang/AFNI/libSUMA.so (0x00007f0706b6e000)
libmri.so => /home/rshuang/AFNI/libmri.so (0x00007f070614a000)
libf2c.so => /home/rshuang/AFNI/libf2c.so (0x00007f0705f2d000)
libGLw.so.1 => /lib64/libGLw.so.1 (0x00007f0705d26000)
libGLU.so.1 => /lib64/libGLU.so.1 (0x00007f0705ab6000)
libGL.so.1 => /lib64/libGL.so.1 (0x00007f0705823000)
libXm.so.4 => /lib64/libXm.so.4 (0x00007f0705346000)
libXt.so.6 => /lib64/libXt.so.6 (0x00007f07050db000)
libXft.so.2 => /lib64/libXft.so.2 (0x00007f0704ec4000)
libXpm.so.4 => /lib64/libXpm.so.4 (0x00007f0704cb1000)
libXext.so.6 => /lib64/libXext.so.6 (0x00007f0704a9e000)
libXmu.so.6 => /lib64/libXmu.so.6 (0x00007f0704883000)
libSM.so.6 => /lib64/libSM.so.6 (0x00007f070467a000)
libICE.so.6 => /lib64/libICE.so.6 (0x00007f070445d000)
libX11.so.6 => /lib64/libX11.so.6 (0x00007f0704119000)
libpython2.7.so.1.0 => /lib64/libpython2.7.so.1.0 (0x00007f0703d33000)
libpng15.so.15 => /lib64/libpng15.so.15 (0x00007f0703b08000)
libz.so.1 => /lib64/libz.so.1 (0x00007f07038f1000)
libexpat.so.1 => /lib64/libexpat.so.1 (0x00007f07036b6000)
libm.so.6 => /lib64/libm.so.6 (0x00007f0703334000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f0703130000)
libc.so.6 => /lib64/libc.so.6 (0x00007f0702d6b000)
libgsl.so.0 => /home/rshuang/AFNI/libgsl.so.0 (0x00007f070288e000)
libgslcblas.so.0 => /home/rshuang/AFNI/libgslcblas.so.0 (0x00007f070264f000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f07022ba000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f07020a2000)
libGLX.so.0 => /lib64/libGLX.so.0 (0x00007f0701e70000)
libGLdispatch.so.0 => /lib64/libGLdispatch.so.0 (0x00007f0701bb4000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f0701994000)
libXp.so.6 => /lib64/libXp.so.6 (0x00007f070178a000)
libjpeg.so.62 => /lib64/libjpeg.so.62 (0x00007f0701521000)
libpng16.so.16 => /lib64/libpng16.so.16 (0x00007f07012ec000)
libfontconfig.so.1 => /lib64/libfontconfig.so.1 (0x00007f07010a7000)
libfreetype.so.6 => /lib64/libfreetype.so.6 (0x00007f0700deb000)
libXrender.so.1 => /lib64/libXrender.so.1 (0x00007f0700be0000)
libuuid.so.1 => /lib64/libuuid.so.1 (0x00007f07009d8000)
libxcb.so.1 => /lib64/libxcb.so.1 (0x00007f07007af000)
libutil.so.1 => /lib64/libutil.so.1 (0x00007f07005ab000)
/lib64/ld-linux-x86-64.so.2 (0x00007f0707539000)
libXau.so.6 => /lib64/libXau.so.6 (0x00007f07003a7000)
libbz2.so.1 => /lib64/libbz2.so.1 (0x00007f0700196000)

Hi Megan,

Sorry for letting this go for a bit. Are you still having the same problem.

Note that your package is more than 4 years old. It would be good to test whether the current package has the same problem.

If the current package does have the same problem, it should be fairly easy to figure out how to compile this on your system (though that would required some update, to get the current build_afni.py program and related code). Let me know if you would like to try this.

-rick