Error when trying to visualize raw data

Hi,

After my most recent update, when I try to visualize a raw file (already in my protocol), I get this error:

***************************************************************************
** Error: Line 3739: Undefined function 'ICON_SCROLL_LEFT' for input arguments of type 
'org.brainstorm.icon.IconLoader'.
** 
** Call stack:
** >figure_timeseries.m>CreateScaleButtons at 3739
** >figure_timeseries.m>PlotFigure at 3007
** >figure_timeseries.m at 39
** >view_timeseries.m at 243
** >tree_callbacks.m at 245
** >bst_call.m at 28
** >panel_protocols.m>CreatePanel/protocolTreeClicked_Callback at 109
** 
***************************************************************************

I did a "git reset --hard upstream/master" so I don't think it's something local...

Thanks!
Marc

Restarting Matlab fixed this error.
Thanks Martin. :slightly_smiling_face:

1 Like

Indeed, Brainstorm is not designed to be updated from github but with function bst_update.m, which asks for closing Matlab.

This is due to a technical limitation of the Matlab-JVM integration: it is not possible to unload Java classes that have been instantiated, and then reload new classes with the same names. Therefore if the classes in the brainstorm.jar (which include all the icons of the interface) were modified during the update, Matlab cannot reload the new classes and does not find the new icons. I've been fighting against this problem for a while, but it looks like the only option is to close Matlab and restard it.