Problem of Generate default surfaces

Hi, when I run Generate SPM canonical surfaces for SEEG epileptogenicity maps, the following error appeared. Could u tell me why and how to fix it.THANKS!

SPM12: spm_preproc_run (v6217)                     23:03:11 - 01/09/2024
========================================================================
Completed                               :          23:04:13 - 01/09/2024

***************************************************************************
** Error: [process_generate_canonical]  Import > Import anatomy > Generate SPM canonical surfaces
** Line 17: 错误使用 read_gifti_file
** [GIFTI] Loading of XML file D:\matlab_data\spm12\canonical\cortex_20484.surf.gii failed.
** 
** Call stack:
** >read_gifti_file.m at 17
** >gifti.m at 71
** >spm_eeg_inv_mesh.m at 56
** >process_generate_canonical.m>Compute at 146
** >process_generate_canonical.m>Run at 81
** >process_generate_canonical.m at 28
** >bst_process.m>Run at 236
** >bst_process.m at 38
** >panel_process1.m>RunProcess at 138
** >panel_process1.m at 26
** >gui_brainstorm.m>CreateWindow/ProcessRun_Callback at 779
** >bst_call.m at 28
** >gui_brainstorm.m>@(h,ev)bst_call(@ProcessRun_Callback) at 299
**

There was a problem in SPM12 readings its own GIfTI files.

See this other post:

This has been solved on the side SPM12 side long time ago.
In fact the SPM12 version you are using (SPM12 (v6217) is 10 years old.

We suggest you to remove SPM12 from you Matlab path, a let Brainstorm to install it as a plugin with the menu Plugins > spm12 > Install

https://neuroimage.usc.edu/brainstorm/Tutorials/Plugins

If you do not want Brainstorm to manage the installation of SPM12, once you have update SPM12 in you computed, add it to Brainstorm as a plugin, but using the Custom install option:

Manual install: If you already have a given plugin installed on your computer (eg. FieldTrip, SPM12) and don't want Brainstorm to manage the download/update or the Matlab path for you, reference it with the menu: Custom install > Set installation folder.

THANKS for ur help!!!