3dMVM error (subscript out of bounds)

Dear AFNI experts,

I am running 3dMVM and the script was working fine, but when I tested it again recently, it is not working with the error message below.

Reading input files now…

Reading input files: Done!

Range of input data: [0.000, 192.006]

If the program hangs here for more than, for example, half an hour,
kill the process because the model specification or the GLT coding
is likely inappropriate.

Error in lop$gltList[[ii]] : subscript out of bounds
Execution halted

My script looks like below.

3dMVM -prefix age
-qVars ‘age,gender,edu,bmi,menopause’
-bsVars ‘age’
-num_glt 1
-gltLabel 1 ‘age’ -gltCode 1 ‘age:’
-mask mask.nii.gz
Subj age sex edu bmi menopause InputFile
subj1 47 0 18 33 1 subj1.nii
subj2 36 0 12 34 1 subj2.nii

I updated AFNI after the script successfully ran. Is it possible that AFNI update may have affected this?



A recent fix should take care of this. So, update your AFNI:

@update.afni.binaries -d

Hi Gang,

The script works well after the update. Thank you!


Hi Gang,

The script worked well, but it showed another error when I was trying to run a similar one today, with the error message below.

[cvas@localhost 0_final]$ ./3dMVM_script
Fatal error: cannot create ‘R_TempDir’

Could you please advise how to address this issue?


The error message is not about 3dMVM per se, but likely due to permissions or space exhaustion: https://support.microsoft.com/en-us/topic/error-fatal-error-cannot-create-r-tempdir-21ae3934-3d91-f6dd-8752-3b3f7b4dbc40#:~:text=This%20is%20typically%20due%20to,to%20permissions%20or%20space%20exhaustion.

Thanks Gang! The problem was resolved using the link you provided.