Thank you for this very exhaustive bug report.
The problem was actually coming from function cs_convert
, when projecting the template grid in MNI space to the subject space. When using a non-linear MNI normalization such as the one provided by CAT12, the function was crashing with more than one point in input...
I fixed this bug. Please update Brainstorm and try again.