AFNI segmentation error on SLOMOCO

Hi,

we’ve been trying to get PESTICA/SLOMOCO running on the Ubuntu systems of our clinic, using the most recent AFNI version. I had been using the same scripts for running PESTICA/SLOMOCO analyses on my iMac (OS Big Sur, however with a somewhat older AFNI version, 19.2.23). Now, as we try to run the scripts on the Ubuntu systems, PESTICA works fine, but SLOMOCO always gives us a segmentation error halfway through. I’m posting the head of the error log below (if you would like to see more, please tell me, but I couldn’t attach the entire thing here for the file format). Does anybody have an idea why this is happening? As I said, it all works fine on the Mac - so it could be an error related to the operating system, or also to AFNI (notice the differing version). Do you think it’s worthwhile to try and downgrade AFNI on the Ubuntu systems? It’s not quite that straightforward to do that, this is why we haven’t yet tried.

Any help would be appreciated. Thanks in advance!
Marlene.

— head of the crashlog ----

------ CRASH LOG ------------------------------**
Fatal Signal 11 (SIGSEGV) received
… recent internal history …
THD_mask_erode – redilating {40 ms}
----THD_mask_erode [4]: EXIT} (file=thd_automask.c line=1210) to mri_warp3D_align_setup {40 ms}
++++THD_mask_clust [4]: {ENTRY (file=thd_automask.c line=959) from mri_warp3D_align_setup {40 ms}
----THD_mask_clust [4]: EXIT} (file=thd_automask.c line=1034) to mri_warp3D_align_setup {40 ms}
++++mri_free [4]: {ENTRY (file=mri_free.c line=49) from mri_warp3D_align_setup {40 ms}
mri_free – call killpurge {40 ms}
+++++mri_killpurge [5]: {ENTRY (file=mri_purger.c line=259) from mri_free {40 ms}
mri_killpurge – check if im==NULL ptr=0x11d2820
mri_killpurge – can’t killpurge NULL fname! {40 ms}
-----mri_killpurge [5]: EXIT} (file=mri_purger.c line=270) to mri_free {40 ms}
mri_free – free ptr {40 ms}
mri_free – free im {40 ms}
----mri_free [4]: EXIT} (file=mri_free.c line=69) to mri_warp3D_align_setup {40 ms}
++++mri_free [4]: {ENTRY (file=mri_free.c line=49) from mri_warp3D_align_setup {40 ms}
mri_free – call killpurge {40 ms}
+++++mri_killpurge [5]: {ENTRY (file=mri_purger.c line=259) from mri_free {40 ms}
mri_killpurge – check if im==NULL ptr=0x11f3ec0
mri_killpurge – can’t killpurge NULL fname! {40 ms}
-----mri_killpurge [5]: EXIT} (file=mri_purger.c line=270) to mri_free {40 ms}
mri_free – free ptr {40 ms}
mri_free – free im {40 ms}
----mri_free [4]: EXIT} (file=mri_free.c line=69) to mri_warp3D_align_setup {40 ms}
—mri_warp3D_align_setup [3]: EXIT} (file=mri_warp3D_align.c line=581) to 3dWarpDrive main {40 ms}
+++mri_scale_to_float [3]: {ENTRY (file=mri_to_float.c line=106) from 3dWarpDrive main {40 ms}
++++mri_new_7D_generic [4]: {ENTRY (file=mri_new.c line=48) from mri_scale_to_float {40 ms}
----mri_new_7D_generic [4]: EXIT} (file=mri_new.c line=143) to mri_scale_to_float {40 ms}
++++mri_add_name [4]: {ENTRY (file=mri_add_name.c line=19) from mri_scale_to_float {40 ms}
----mri_add_name [4]: EXIT} (file=mri_add_name.c line=24) to mri_scale_to_float {40 ms}
—mri_scale_to_float [3]: EXIT} (file=mri_to_float.c line=180) to 3dWarpDrive main {40 ms}
+++mri_scaled_diff [3]: {ENTRY (file=mri_scaled_diff.c line=38) from 3dWarpDrive main {40 ms}
—mri_scaled_diff [3]: EXIT} (file=mri_scaled_diff.c line=77) to 3dWarpDrive main {40 ms}

3dWarpDrive main
** AFNI compile date = Jan 12 2022
** [[Precompiled binary linux_ubuntu_16_64: Jan 12 2022]]
** Program Crash **

------ CRASH LOG ------------------------------**
Fatal Signal 11 (SIGSEGV) received
… recent internal history …
THD_mask_erode – redilating {37 ms}
----THD_mask_erode [4]: EXIT} (file=thd_automask.c line=1210) to mri_warp3D_align_setup {37 ms}
++++THD_mask_clust [4]: {ENTRY (file=thd_automask.c line=959) from mri_warp3D_align_setup {37 ms}
----THD_mask_clust [4]: EXIT} (file=thd_automask.c line=1034) to mri_warp3D_align_setup {37 ms}
++++mri_free [4]: {ENTRY (file=mri_free.c line=49) from mri_warp3D_align_setup {37 ms}
mri_free – call killpurge {37 ms}
+++++mri_killpurge [5]: {ENTRY (file=mri_purger.c line=259) from mri_free {37 ms}
mri_killpurge – check if im==NULL ptr=0xc61820
mri_killpurge – can’t killpurge NULL fname! {37 ms}
-----mri_killpurge [5]: EXIT} (file=mri_purger.c line=270) to mri_free {37 ms}
mri_free – free ptr {37 ms}
mri_free – free im {37 ms}
----mri_free [4]: EXIT} (file=mri_free.c line=69) to mri_warp3D_align_setup {37 ms}
++++mri_free [4]: {ENTRY (file=mri_free.c line=49) from mri_warp3D_align_setup {37 ms}
mri_free – call killpurge {37 ms}
+++++mri_killpurge [5]: {ENTRY (file=mri_purger.c line=259) from mri_free {37 ms}
mri_killpurge – check if im==NULL ptr=0xc82ec0
mri_killpurge – can’t killpurge NULL fname! {37 ms}
-----mri_killpurge [5]: EXIT} (file=mri_purger.c line=270) to mri_free {37 ms}
mri_free – free ptr {37 ms}
mri_free – free im {37 ms}
----mri_free [4]: EXIT} (file=mri_free.c line=69) to mri_warp3D_align_setup {37 ms}
—mri_warp3D_align_setup [3]: EXIT} (file=mri_warp3D_align.c line=581) to 3dWarpDrive main {37 ms}
+++mri_scale_to_float [3]: {ENTRY (file=mri_to_float.c line=106) from 3dWarpDrive main {37 ms}
++++mri_new_7D_generic [4]: {ENTRY (file=mri_new.c line=48) from mri_scale_to_float {37 ms}
----mri_new_7D_generic [4]: EXIT} (file=mri_new.c line=143) to mri_scale_to_float {37 ms}
++++mri_add_name [4]: {ENTRY (file=mri_add_name.c line=19) from mri_scale_to_float {37 ms}
----mri_add_name [4]: EXIT} (file=mri_add_name.c line=24) to mri_scale_to_float {37 ms}
—mri_scale_to_float [3]: EXIT} (file=mri_to_float.c line=180) to 3dWarpDrive main {37 ms}
+++mri_scaled_diff [3]: {ENTRY (file=mri_scaled_diff.c line=38) from 3dWarpDrive main {37 ms}
—mri_scaled_diff [3]: EXIT} (file=mri_scaled_diff.c line=77) to 3dWarpDrive main {37 ms}

Hi, Marlene.
PESTICA/SLOMOCO issue should be posted in nitrc site, but I found your post here. You are right. The current SLOMOCO works in linux system not quite well in Mac. By the way, which version of PESTICA/SLOMOCO are you using?

The reason is, a recent version of 3dWarpdrive (in run_correction_slicemocoxy.sh) does not work with single slice motion correction while I found the old version of 3dWarpdrive was working. The latest SLOMOCO includes the old version of 3dWarpdrive command (afni.afni.openmp.v18.3.16). However, I could not find the right version of 3dWarpdrive for Mac. Now, I am updating SLOMOCO package to replace 3dWarpdrive with 3dAllineate, however, the result between 3dWarpdrive and 3dAlliineate are quite different. - I will post it as soon as I confirm it.

-Wanyong