Index Exceeds Array Bounds

Hello,

I am trying to run my EEG electrode contacts, and when I try to select a contact point in the 3D viewer, I get the following error:

Error: Line 487: Index exceeds array bounds.
**
** Call stack:
** >panel_coordinates.m>ClickPointInSurface at 487
** >panel_coordinates.m>SelectPoint at 339
** >panel_coordinates.m at 27
** >figure_3d.m>FigureMouseUpCallback at 622
** >bst_call.m at 28
** >figure_3d.m>@(h,ev)bst_call(@FigureMouseUpCallback,h,ev) at 78

This happens every location I click, so I'm not sure what to do.

Kelsey

@chinmay.chinara

@kjgrf can you share what version of Brainstorm you are using? Also does it happen at random or at every instance ?

This is now happening at every instance, for every participant. I just updated Brainstorm to the newest version a couple of days ago.

@kjgrf would it be possible to share some data as sample to test it our end ?

@chinmay.chinara Of course. I am including a shared link with the appropriate MRI and EEG scan for this participant (deidentified). Once you receive it, let us please remove it from the site.

@kjgrf I am unable to download it. It is forcing me to create a business box account for some reason.

@chinmay.chinara I am thus unable to share it. Even the MRI file says it is too large to upload here. Any other suggestions?

I have shared a drive link for you to upload and I can delete it after. Let me know if it works.

https://drive.google.com/drive/folders/1-Pay3cAOk9UbY5VqmkP281Gju9cVr52T?usp=sharing

Just uploaded, thanks.

Got it. I have downloaded and deleted it. Let me analyze and I will get back.

1 Like

@kjgrf I was able to reproduce the error at my end with your data. I am still trying to figure out the root cause. Will keep you updated.

1 Like

@chinmay.chinara sounds good. I'm glad it wasn't just an issue on my end, hoping this can help other people in the future as well!

@chinmay.chinara I am still experiencing this issue with the majority of my participants' data even after updating brainstorm to the August 6th version--have you been able to find anything?

Sorry for the delay. This issue has now been fixed here. Please update your brainstorm instance.

@chinmay.chinara I just updated Brainstorm, and here is the Matlab error I get now:

BST> Starting Brainstorm:
BST> =================================
BST> Version: 23-Aug-2024
BST> Compiling main interface files...
BST> Deleting old process reports...
BST> Loading configuration file...
BST> Checking internet connectivity... ok
BST> Initializing user interface...
Unable to resolve the name 'IconLoader.ICON_APP.getImage'.

Error in gui_brainstorm>CreateWindow (line 83)
    jBstFrame.setIconImage(IconLoader.ICON_APP.getImage());

Error in gui_brainstorm (line 34)
eval(macro_method);

Error in gui_initialize (line 30)
GlobalData.Program.GUI = gui_brainstorm('CreateWindow');

Error in bst_startup (line 380)
gui_initialize();

Error in brainstorm (line 126)
        bst_startup(BrainstormHomeDir, 1, BrainstormDbDir, TemplateName);

Hi @kjgrf, it is caused by an unsuccessful update, try this:

@Raymundo.Cassani Thank you so much, but now, instead of just getting index exceeds array bounds, I am now receiving this issue when trying to manually implant electrodes:

** Error: Line 490: Dot indexing is not supported for variables of this type.
**
** Call stack:
** >panel_coordinates.m>ClickPointInSurface at 490
** >panel_coordinates.m>SelectPoint at 339
** >panel_coordinates.m at 27
** >figure_3d.m>FigureMouseUpCallback at 622
** >bst_call.m at 28
** >figure_3d.m>@(h,ev)bst_call(@FigureMouseUpCallback,h,ev) at 78

It seems there is some issue reading the IsoSurface from the open figures. However, I am not sure what is you setup to cause this issue.

Please provide the following information, so we can assist you:

  1. Screenshot of the Anatomy view (database) showing the file contents of Subject giving troubles.
  2. The steps that you are performing to get this error
  3. An screenshot of the figures opened when the error occurs

image
2. right click on postop CT > SEEG ECOG Implantation. Under the iEEG tab, clicking the black plus sign, importing and naming an electrode, choosing the PMT-12 type, clicking the white plus sign to gather coordinates, then getting the error as I attempt just to get coordinates to set the tip and skull entry points for the electrode. Both the 3D viewer and MRI viewer open each time correctly, but there seems to be some issue.
3.

as you can see, some electrodes worked, but with this participant and others, many electrodes are still needing to be implanted to correlate with our neurophysiological data. Thank you all for the swift responses!