Dear Brainstorm Developers and Users,
I am encountering a critical issue where the computed Head Model results from the Duneuro FEM plugin cannot be imported into the Brainstorm database. All my software components are updated to their latest versions.
Problem Description
Successful Computation: The Duneuro plugin successfully completes the FEM solver process within minutes, generating the necessary .msh file in the temporary directory.
Import Failure: However, neither the automatic import process nor my manual attempts to import the generated head_model.msh file succeed; both immediately result in an error.
Software Environment: Both Brainstorm and the Duneuro plugin are the latest versions (updated on [Please fill in your latest update date here, e.g., December 8, 2024]), running on Windows 11. My CPU is an Intel i9-14900HX.
Detailed Error Message
When attempting to manually import the head_model.msh file, MATLAB throws the following error:
Matlab
Error using mesh_load_gmsh4>read_nodes (line 248)
node numbers have to be a continuous list of indexes starting at 1
My Diagnosis
This error indicates that the Gmsh v4 file generated by the Duneuro pre-compiled plugin on my Windows system contains non-continuous node indices.
Brainstorm's import script (mesh_load_gmsh4.m) strictly requires node indices to be continuous, causing it to reject the file and preventing me from proceeding with source localization analysis. This issue persists even with the latest software versions, suggesting a potential bug triggered by a specific compiled version of Duneuro or my particular Windows system environment.
Request for Assistance
I kindly request assistance from the development team. Could you please advise on the following:
Have other users reported this issue? Is there a temporary fix script (e.g., a more lenient version of mesh_load_gmsh4.m) available?
Is there a way to force the Duneuro plugin to generate the Gmsh v2 format (which typically has a simpler index structure) to bypass this error?
Thank you for your attention and help!







