External Email - Use Caution
A fix was made in 09/2024 and was subsequently in the Freesurfer 8.0.0 (02/2025) and 8.1.0 (07/2025) releases which you can download from,https://secure-web.cisco.com/1a_cLCaihbBr4j3zAtLN867XJeh4MYOVKCUkQ-FlYrPEqzl... R.
On 1/23/26 03:34, Ben Sinclair (ben.sinclair@monash.edu) wrote:
External Email - Use Caution Dear FreeSurfer Development Team,
I'm reporting a typo in the surfreg command that causes registration operations to fail with an error, though the actual registration completes successfully.
**Bug Details:** - File: /apps/freesurfer/7.4.1/freesurfer/bin/surfreg - Line: 107 - Current: set fsaorig = $FREESURFER/subjets/fsaverage/mri/orig.mgz - Should be: set fsaorig = $FREESURFER/subjects/fsaverage/mri/orig.mgz
**Impact:** When running surfreg with the --no-annot flag (as recommended in the error messages for FreeSurfer 7.4.1), the command completes the registration successfully but then fails on the post-processing mris_convert step with: "error: mghRead(/apps/freesurfer/7.4.1/freesurfer/subjets/fsaverage/mri/orig.mgz, -1): could not open file"
This causes the command to return a non-zero exit code even though the primary registration file (e.g., lh.fsaverage_sym.sphere.reg) is created correctly.
**Reproduction:** surfreg --s <subject_id> --t fsaverage_sym --lh --no-annot
**Version:** FreeSurfer 7.4.1
Thank you for your work on FreeSurfer. Please let me know if you need any additional information.
Cheers Ben
freesurfer@nmr.mgh.harvard.edu