I am running fmriprep-1-4-1rc1 on singularity using the following code.
singularity run --cleanenv -B ${DATA_RAW}:${HOME}/data ${HOME}/singularity/fmriprep-1-4-1rc1.simg ${HOME}/data/Nifti ${HOME}/data/Preprocessed participant --participant_label sub-999d --fs-license-file $FS_LICENSE --ignore fieldmaps
I am repeatedly getting an error during recon-all. This error is related to the T2 image, and fmriprep successfully completes if I delete the T2 image. I have checked the T2 image in mricron and the image looks fine. I noticed that this was similar to another thread, but I am not sure whether this was resolved? Could not read error : while file ":/out/freesurfer/sub-001/mri/T2.prenorm.mgz" exist
Here is the last part of my log file:
Started at Wed Jan 1 01:48:48 UTC 2020
Ended at Wed Jan 1 01:50:15 UTC 2020
BBR-Run-Time-Sec 87
bbregister Done
To check results, run:
tkregisterfv --mov /home/danella/data/Preprocessed/freesurfer/sub-999d/mri/orig/T2raw.mgz --reg /home/danella/data/Preprocessed/freesurfer/sub-999d/mri/transforms/T2raw.auto.lta --surfs
cp /home/danella/data/Preprocessed/freesurfer/sub-999d/mri/transforms/T2raw.auto.lta /home/danella/data/Preprocessed/freesurfer/sub-999d/mri/transforms/T2raw.lta
mri_convert -odt float -at /home/danella/data/Preprocessed/freesurfer/sub-999d/mri/transforms/T2raw.lta -rl /home/danella/data/Preprocessed/freesurfer/sub-999d/mri/orig.mgz /home/danella/data/Preprocessed/freesurfer/sub-999d/mri/orig/T2raw.mgz /home/danella/data/Preprocessed/freesurfer/sub-999d/mri/T2.prenorm.mgz
mri_convert.bin -odt float -at /home/danella/data/Preprocessed/freesurfer/sub-999d/mri/transforms/T2raw.lta -rl /home/danella/data/Preprocessed/freesurfer/sub-999d/mri/orig.mgz /home/danella/data/Preprocessed/freesurfer/sub-999d/mri/orig/T2raw.mgz /home/danella/data/Preprocessed/freesurfer/sub-999d/mri/T2.prenorm.mgz
$Id: mri_convert.c,v 1.226 2016/02/26 16:15:24 mreuter Exp $
reading from /home/danella/data/Preprocessed/freesurfer/sub-999d/mri/orig/T2raw.mgz...
TR=3000.00, TE=0.00, TI=0.00, flip angle=0.00
i_ras = (0.99904, 0.00598773, 0.0433888)
j_ras = (-0.00729297, 0.999524, 0.0299869)
k_ras = (-0.0431886, -0.0302745, 0.998608)
INFO: Reading transformation from file /home/danella/data/Preprocessed/freesurfer/sub-999d/mri/transforms/T2raw.lta...
Reading transform with LTAreadEx()
reading template info from volume /home/danella/data/Preprocessed/freesurfer/sub-999d/mri/orig.mgz...
INFO: Applying transformation from file /home/danella/data/Preprocessed/freesurfer/sub-999d/mri/transforms/T2raw.lta...
---------------------------------
INFO: Transform Matrix (linear_ras_to_ras)
1.00000 0.00005 -0.00024 0.02214;
-0.00005 1.00000 0.00101 -0.15579;
0.00024 -0.00101 1.00000 -0.03862;
0.00000 0.00000 0.00000 1.00000;
---------------------------------
Applying LTAtransformInterp (resample_type 1)
writing to /home/danella/data/Preprocessed/freesurfer/sub-999d/mri/T2.prenorm.mgz...
mri_normalize -sigma 0.5 -nonmax_suppress 0 -min_dist 1 -aseg /home/danella/data/Preprocessed/freesurfer/sub-999d/mri/aseg.presurf.mgz -surface /home/danella/data/Preprocessed/freesurfer/sub-999d/surf/rh.white identity.nofile -surface /home/danella/data/Preprocessed/freesurfer/sub-999d/surf/lh.white identity.nofile /home/danella/data/Preprocessed/freesurfer/sub-999d/mri/T2.prenorm.mgz /home/danella/data/Preprocessed/freesurfer/sub-999d/mri/T2.norm.mgz
znzTAGskip: tag=1077952576, failed to calloc 1077952512 bytes!
using Gaussian smoothing of bias field, sigma=0.500
disabling nonmaximum suppression
retaining points that are at least 1.000mm from the boundary
using segmentation for initial intensity normalization
reading from /home/danella/data/Preprocessed/freesurfer/sub-999d/mri/T2.prenorm.mgz...
Cannot allocate memory
Linux oac3loeffdanH 4.15.0-47-generic #50-Ubuntu SMP Wed Mar 13 10:44:52 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
recon-all -s sub-999d exited with ERRORS at Wed Jan 1 01:50:20 UTC 2020
For more details, see the log file /home/danella/data/Preprocessed/freesurfer/sub-999d/scripts/recon-all.log
To report a problem, see http://surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
Standard error:
Return code: 1
The freesurfer recon-all.log file is not helpful - says “recon-all -s sub-999d finished without error at Wed Jan 1 02:48:32 UTC 2020”.
This is the first time I am running this subject ID, so I don’t think it is a problem of pre-existing files. And there were no problems with BIDS conversion. Any suggestions? Thanks in advance!!