Undefined function 'ICON_Y_UP' (IconLoader)

Hi all,
On Matlab R2021a. I updated my brainstorm this morning to the newest version (Version: 22-Jun-2022).
Now, whenever I double click to try to open a raw recording, or its Welch power spectrum, I get an error for the first or first two attempts - after which it loads.

The error message:


** Error: Line 4008: Undefined function 'ICON_Y_UP' for input arguments of type 'org.brainstorm.icon.IconLoader'.
**
** Call stack:
** >figure_timeseries.m>CreateScaleButtons at 4008
** >figure_timeseries.m at 41
** >figure_spectrum.m>UpdateFigurePlot at 1308
** >figure_spectrum.m at 28
** >view_spectrum.m at 191
** >tree_callbacks.m at 451
** >bst_call.m at 28
** >panel_protocols.m>CreatePanel/protocolTreeClicked_Callback at 125
** >bst_call.m at 28
** >panel_protocols.m>@(h,ev)bst_call(@protocolTreeClicked_Callback,h,ev) at 75
**


image

That comes up the first time I try to open something with double click, after that it works.

However, when I try to open the EOG or EEG traces using right click --> hover --> display as time series the loading bar appears and just keeps trailing, while a bunch of similar error messages appear in the command window. Retrying does NOT result in opening the EOG/EEG traces in this instance.
However, opening them as 'display as image' does work correctly.

Error message:

Unrecognized function or variable 'ICON_Y_UP'.

Error in figure_timeseries>CreateScaleButtons (line 4008)
iconFlipY = IconLoader.ICON_Y_UP;

Error in figure_timeseries>PlotFigure (line 3193)
CreateScaleButtons(iDS, iFig);

Error in figure_timeseries (line 41)
eval(macro_method);

Error in view_timeseries (line 273)
isOk = figure_timeseries('PlotFigure', iDS, iFig);

Error in tree_callbacks>@(h,ev)view_timeseries(filenameRelative,AllMod{iMod},[],'NewFigure') (line 1379)
gui_component('MenuItem', jMenuModality, [], 'Display time series', IconLoader.ICON_TS_DISPLAY, [], @(h,ev)view_timeseries(filenameRelative,
AllMod{iMod}, [], 'NewFigure'));

Unrecognized function or variable 'ICON_Y_UP'.

Error in figure_timeseries>CreateScaleButtons (line 4008)
iconFlipY = IconLoader.ICON_Y_UP;

Error in figure_timeseries>PlotFigure (line 3193)
CreateScaleButtons(iDS, iFig);

Error in figure_timeseries (line 41)
eval(macro_method);

Error in view_timeseries (line 273)
isOk = figure_timeseries('PlotFigure', iDS, iFig);

Error in tree_callbacks>@(h,ev)view_timeseries(filenameRelative,AllMod{iMod},[],'NewFigure') (line 1379)
gui_component('MenuItem', jMenuModality, [], 'Display time series', IconLoader.ICON_TS_DISPLAY, [], @(h,ev)view_timeseries(filenameRelative,
AllMod{iMod}, [], 'NewFigure'));

I think this is a small bug that slipped in with the new version.

Let me know if any further info is needed.

Emma

We changed the update mechanism, it might require to be updated twice...
Please try updating Brainstorm again.
Note that it must be installed in a folder named brainstorm3.

2 Likes

Updating brainstorm again fixed the issue, thanks.

Hello Francois and BST developers,

I have updated Brainstorm yesterday to the latest version (19/10/22) and I have a similar problem: when opening some datasets (but not all), I receive the following error:

What can I do?

Thanks!

Best,

Marco

Update: I have this error the first time that I open a dataset, but the second time I am able to open it without any errors.

Just update brainstorm again, using the Brainstorm update menu.

If you are pulling it from github, delete manually the file brainstorm3/java/brainstorm.jar and restart Brainstorm.

I updated Brainstorm as you said and the problem was solved.

Thanks Francois!