Cat12 Error - CAT_3dVol2Surf

Hello community,
I am trying to generate cortex, inner and outerskull using CAT12 plugin, but I get this error message. I tried reinstalling cat12 and spm12 but it did not help. My Brainstorm version is 05-Mar-2024.

Cannot find "..\.brainstorm\plugins\cat12\cat12\CAT.w32\CAT_3dVol2Surf"

Update: I also checked the mentioned directory and "CAT_3dVol2Surf.exe" is there.

Please let me know if I am missing a step.

Best,
Saeed

1 Like

Hi @saeed, this bug was introduced by a recent update in CAT12, see this issue reporting it:
https://github.com/ChristianGaser/cat12/issues/21

For the moment, you can manually remove the lines that are causing the trouble:
In the file cat_system.m in ..\.brainstorm\plugins\cat12\cat12 comment the lines:

% test if the file is existing
cmdparts = strsplit(cmd); 
if isempty( cat_vol_findfiles(CATDir,cmdparts{1}) )
  error('cat_system:missCmd','Cannot find "%s"',fullfile(CATDir,cmdparts{1}))
end
2 Likes

Thank you @Raymundo.Cassani, it solved the problem.

FYI, this is now solved on the CAT12 side: https://github.com/ChristianGaser/cat12/issues/21
Update your CAT12 plugin, to r2560 or newer

1 Like