Invalid file identifier brain2mesh

Hi everyone, I am new to matlab and brainstorm and want to create a FEM mesh using the "Generate FEM mesh" command, using T1w or T1w and T2w images with the Brain2mesh plugin.
I made sure brainstorm is up to date (Version: 06-Jun-2023) and I use Matlab R2023a on linux.
The following error occurred:

07-Jun-2023 13:12:21 - Running job #1
07-Jun-2023 13:12:21 - Running 'Segment'

SPM12: spm_preproc_run (v7670) 13:12:21 - 07/06/2023

Segment ~/.brainstorm/tmp/brain2mesh_230607_131217/Subject01T1.nii,1
Completed : 13:16:31 - 07/06/2023
07-Jun-2023 13:16:31 - Done 'Segment'
07-Jun-2023 13:16:31 - Done

extracting surfaces from a volume ...
region 1 centroid : 131.000000 128.666667 65.333333

processing threshold level 1...
"~/.brainstorm/plugins/iso2mesh/iso2mesh-1.9.6/bin/cgalsurf.mexa64" "~/.brainstorm/tmp/pre_extract.inr" 0.4999500000000000 131.0000000000000000 128.6666666666666572 65.3333333333333286 547864.0000000000000000 30.0000000000000000 2.0000000000000000 1.0000000000000000 100000 "~/.brainstorm/tmp/post_extract.off" 1648335518 50: Segmentation fault


** Error: Line 32: fgets
** Invalid file identifier. Use fopen to generate a valid file identifier.
**
** Call stack:
** >fgetl.m at 32
** >readoff.m at 23
** >vol2restrictedtri.m at 54
** >vol2surf.m at 172
** >v2s.m at 35
** >brain2mesh.m at 198
** >process_fem_mesh.m>Compute at 693
** >process_fem_mesh.m>ComputeInteractive at 1283
** >process_fem_mesh.m at 31
** >bst_call.m at 28
** >tree_callbacks.m>@(h,ev)bst_call(@process_fem_mesh,'ComputeInteractive',iSubject,iAnatomy) at 3091
**



** Error: The FEM mesh generation failed.
** Check the Matlab command window for additional information.

Any help would be greatly appreciated!

Hi @mm-ee

Can you display and then post a screenshot of the segmented volume generated and saved to the database?

I mean this file name "tissues"
image