Problem with OpenMEEG BEM model

Hey, I'm trying to do source imaging of epileptic interictal spikes. The BEM model (OpenMEEG, source space: cortex) seems to be broken. Whenever I click "View EEG lead field vectors/sensitivity" I get an error:

** Error: Line 1216: Index exceeds array bounds.
**
** Call stack:
** >panel_surface.m>UpdateSurfaceProperties at 1216
** >panel_surface.m>UpdatePanel at 971
** >panel_surface.m>CurrentFigureChanged_Callback at 1016
** >panel_surface.m at 40
** >bst_figures.m>SetCurrentFigure at 1090
** >bst_figures.m at 59
** >view_surface_data.m at 305
** >view_leadfield_sensitivity.m at 103
** >bst_call.m at 28
** >tree_callbacks.m>@(h,ev)bst_call(@view_leadfield_sensitivity,filenameRelative,mod{1},'Surface') at 1396
**

"Compute sources [2018]" seems to be broken as well, it produces a file, but when I right-click it, there are only two options to choose from "Inversion kernel", and "File", cant see the results.

I've tried to redo everything several times, nothing seems to work. I use an individual MRI, segmentated with FreeSurfer/CAT12.


MacOS, MATLAB_R2024b, the latest Bainstorm 3.25, Java 1.8, OpenMEEG 2.5.8.

Hi @maciejkasprzycki

Have you by any chance changed/removed the default cortex on the anatomy side?

No, I have not, it's still there. However, I have modified "channel.mat" file, if that could matter.

@maciejkasprzycki, this bug was fixed two days ago: e64f51c

Please update your Brainstorm instance to get the fix