A bug when computing head models

Hi Francois,

Thank you very much for your prompt reply. I have tried to install 2.4.0 to 2.4.2 version, and all versions produce the same results. I am wondering is it possible to be a read/write permission issue? i.e. Brainstorm could not access the file because of reading restriction. I have tried to use terminal to enable permission but still could not fix the problem. My matlab ver output is the following:

MATLAB Version: 9.9.0.1467703 (R2020b)
MATLAB License Number: 40821746
Operating System: Linux 4.15.0-128-generic #131~16.04.1-Ubuntu SMP Wed Dec 9 17:33:47 UTC 2020 x86_64
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode

MATLAB Version 9.9 (R2020b)
Simulink Version 10.2 (R2020b)
Bioinformatics Toolbox Version 4.15 (R2020b)
Computational Anatomy Toolbox Version 1739 (CAT12.7)
EEGLAB Toolbox to process EEG data Version - see
MATLAB Compiler Version 8.1 (R2020b)
MATLAB Compiler SDK Version 6.9 (R2020b)
Parallel Computing Toolbox Version 7.3 (R2020b)
RICOH MEG Reader toolbox for MATLAB Version 1.0.3
Signal Processing Toolbox Version 8.5 (R2020b)
Statistical Parametric Mapping Version 7487 (SPM12)
Statistics and Machine Learning Toolbox Version 12.0 (R2020b)
Symbolic Math Toolbox Version 8.6 (R2020b)
Text Analytics Toolbox Version 1.6 (R2020b)
Yokogawa MEG Reader toolbox for MATLAB Version 1.5.2

Look forward to your reply. And thanks again for your kind help.

Best regards,
Eden