External Email - Use Caution
Before the assertion, the mri_mc command segfaults. I don’t know that code to judge the correctness of the command, but my guess is ending up with a surface with 0 faces and 0 vertices caused recon-all to exit. The beginning of the log shows the 7.4.1 release for Ubuntu 22 running on the Windows subsystem for Linux (WSL2). I’m not sure the 15G of free memory listed there is actually available to recon-all running in WSL2. On some windows systems, memory inside WSL2 was limited to 1/2 of the system memory so running WSL2 + linux applications did not deprive the host Windows OS of memory. A segfault could occur because something ran out of memory, although I don’t see any memory notifications. Freesurfer requires a minimum of 16G of free RAM, i.e., 16G free inside WSL2 apart from the memory WSL2 is using and apart from the memory used by the Windows OS together with any running Windows applications. The setting of FREESURFER_HOME indicates the standard install of freesurfer under /usr/local/freesurfer was not done with the freesurfer_ubuntu22-7..4.1_amd64.deb package. So some freesurfer binaries may not run, but I don’t see errors about that in the log. It looks an external Matlab distribution is in use and generating warnings. Freesurfer was tested using the matlab run time environment as installed by the fs_install_mcr script to be located inside the freesurfer distribution. Information about that is under the section SETUP A MATLAB DISTRIBUTION,https://secure-web.cisco.com/13044hq9EdebE9_JMyWEvQec0wCBES_jbiFteweiwgCCALf... - Our online freesurfer course requires participants with Windows machines to install Oracle Virtual Box in order to run a Freesurfer Ubuntu 22 Virtual Box VM, i.e., we don’t officially support running Freesurfer in WSL2. It can be impractical for us to troubleshoot a system where freesurfer was not installed with the Linux .deb or .rpm file. - R. On Feb 14, 2026, at 17:38, alex han <alexhan160@gmail.com> wrote:
External Email - Use Caution
Thank you very much for the information! I reinstalled the same Freesurfer version along with the runtime for Matlab 2014b on Oracle Virtual Box and attempted to rerun recon-all -s sub-GE101 -localGI with this new error:
mris_compute_lgi --i lh.pial
matlab: Command not found. matlab5: Command not found. ERROR: Matlab is required to run mris_compute_lgi!
I attached the recon-all log again to this email. In my previous attempts, I resolved this error by using the external version of Matlab 2014b, but I decided to hold off first with this new installation.
Freesurfer version: freesurfer-linux-ubuntu22_x86_64-7.4.1-20230614-7eb8460 uname -a: Linux freesurfer-ubuntu22 6.8.0-94-generic #96~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 16 13:19:05 UTC 2 x86_64 x86_64 x86_64 GNU/Linux Platform: Ubuntu 22.04.5 LTS
Respectfully,
Alex Han
On Sun, Feb 15, 2026 at 5:47 AM fsbuild fsbuild@contbay.com wrote:
External Email - Use CautionBefore the assertion, the mri_mc command segfaults. I don’t know that code to judge the correctness of the command, but my guess is ending up with a surface with 0 faces and 0 vertices caused recon-all to exit.
The beginning of the log shows the 7.4.1 release for Ubuntu 22 running on the Windows subsystem for Linux (WSL2). I’m not sure the 15G of free memory listed there is actually available to recon-all running in WSL2. On some windows systems, memory inside WSL2 was limited to 1/2 of the system memory so running WSL2 + linux applications did not deprive the host Windows OS of memory. A segfault could occur because something ran out of memory, although I don’t see any memory notifications. Freesurfer requires a minimum of 16G of free RAM, i.e., 16G free inside WSL2 apart from the memory WSL2 is using and apart from the memory used by the Windows OS together with any running Windows applications.
The setting of FREESURFER_HOME indicates the standard install of freesurfer under /usr/local/freesurfer was not done with the freesurfer_ubuntu22-7.4.1_amd64.deb package. So some freesurfer binaries may not run, but I don’t see errors about that in the log.
It looks an external Matlab distribution is in use and generating warnings. Freesurfer was tested using the matlab run time environment as installed by the fs_install_mcr script to be located inside the freesurfer distribution. Information about that is under the section SETUP A MATLAB DISTRIBUTION,
https://secure-web.cisco.com/1DB_tcrqc_bX7aYaLaQ33YKTiGj0zCFn0jcb_Uuz864x1W3...
FYI - Our online freesurfer course requires participants with Windows machines to install Oracle Virtual Box in order to run a Freesurfer Ubuntu 22 Virtual Box VM, i.e., we don’t officially support running Freesurfer in WSL2. It can be impractical for us to troubleshoot a system where freesurfer was not installed with the Linux .deb or .rpm file.
- R.
On Feb 14, 2026, at 17:38, alex han alexhan160@gmail.com wrote:
Freesurfer mailing list -- freesurfer@nmr.mgh.harvard.edu To unsubscribe send an email to freesurfer-leave@nmr.mgh.harvard.edu
https://secure-web.cisco.com/1Q76hh7wp-Dd4bchjQlw2ZGIY8atD6j0avdvRNKF7bR8J2K... The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://secure-web.cisco.com/1OcEzWfzWX1nwjy2w8ilVgkL_IhVcBjQOevOU_hT-QoUpyT... < https://secure-web.cisco.com/1OcEzWfzWX1nwjy2w8ilVgkL_IhVcBjQOevOU_hT-QoUpyT... .
freesurfer@nmr.mgh.harvard.edu