Channel Editor and brainstorm window not closing

Hi all,

I’ve been having this issue where I open the brainstorm from matlab and try editing the channel file, and it doesn’t close after the edit, forever loading saying “Closing editor…”. Once that happens, I can’t close the brainstorm window either, and I get this error in matlab and I have to force exit via task manager. Has anyone encountered this before?

If anyone knows how to fix this, please let me know!

Below is the error message I get in the matlab command window when I try closing the brainstorm window

Undefined function or variable 'toDouble'.

Error in opaque/double (line 84)`
   dbl(i) = toDouble(cel{i});
Error in panel_channel_editor>GetTableData (line 549)
         if ~isempty(jLoc) && ~all(isnan(double(jLoc)))
Error in panel_channel_editor>PanelHidingCallback (line 216)
         FinalChannel = GetTableData(ctrl.jTableChannel);
Error in panel_channel_editor (line 39)
         eval(macro_method);
Error in gui_hide (line 72)
         isAccepted = panel_channel_editor('PanelHidingCallback');
Error in bst_memory>UnloadAll (line 3298)
         gui_hide('ChannelEditor');
Error in bst_memory (line 73)
         eval(macro_method);
Error in bst_exit (line 49)
         isCancel = bst_memory('UnloadAll', 'Forced');
Error in gui_brainstorm>CreateWindow/closeWindow_Callback (line 526)
         if (~bst_exit())

Can you share a copy of the channel file that is causing the trouble?

The path for that file can be obtained with right-click on the the channel file, then File > Copy file path to clipboard

Hello Dr. Cassani,

Thank you for your prompt response, and this is the path to the file. And it’s not just one channel file, but it’s whenever I try to edit any channel file. The path I pasted here is one of them that can be edited but doesn’t close and therefore doesn’t get the edit saved.

C:\Users\Myusername\Downloads\lab\brainstorm_db\MapMaking\data\P055\00010000000000023911_0005-export\channel.mat

Please share the file rather the the path to the file, so we can check the contents