Brainstorm installation issue


I went to re-install brainstorm after updating MATLAB, and now I’m having a recurring error. I’ve followed the directions to the letter (I think), including making sure the download is unzipped with MATLAB closed, etc. I’m running Mac OS X 10.8, and I get the following output:

>> brainstorm

BST> Starting Brainstorm:
BST> =================================
BST> Version: 3.1.130912 (12-Sep-2013)
BST> Checking internet connectivity… ok
BST> Compiling main interface files…
BST> Emptying temporary directory…
BST> Deleting old process reports…
BST> Loading configuration file…
BST> Loading default channel selections…
BST> Initializing user interface…
BST> WARNING: Mutex “Brainstorm” already exists.

** Error: Line 174: Cannot find an exact (case-sensitive) match for ‘getScreen’
** The closest match is: getscreen in /Users/matthewtucker/Downloads/brainstorm3/external/other/getscreen.m
** Call stack:
** >gui_layout.m>GetScreenClientArea at 174
** >bst_call.m at 26
** >macro_methodcall.m at 37
** >gui_layout.m at 36
** >gui_brainstorm.m>CreateWindow at 331
** >bst_call.m at 26
** >macro_methodcall.m at 37
** >gui_brainstorm.m at 30
** >gui_initialize.m at 39
** >bst_startup.m at 309
** >brainstorm.m at 89

** Error: Line 340: Improper index matrix reference.
** Call stack:
** >gui_brainstorm.m>CreateWindow at 340
** >bst_call.m at 26
** >macro_methodcall.m at 37
** >gui_brainstorm.m at 30
** >gui_initialize.m at 39
** >bst_startup.m at 309
** >brainstorm.m at 89

Error using bst_get (line 2584)
Brainstorm GUI is not yet initialized
Error in gui_show (line 185)
jContainer = bst_get(‘PanelContainer’, contName);
Error in gui_initialize (line 43)
gui_show(‘panel_protocols’, ‘BrainstormPanel’, ‘explorer’);
Error in bst_startup (line 309)
Error in brainstorm (line 89)

This has got to be user error, because I’ve successfully installed Brainstorm before. However, I have no idea what I’m doing wrong. Either way, thanks in advance…


It looks like you are running an old version of Matlab. Brainstorm is only supported for versions of Matlab newer that 2006b:

If you run a recent of version of brainstorm, can you copy-paste the result of the execution of the following commands in Matlab:



Well, it’s not an old version – it’s 2013b, released a few days ago.

The output of the commands you requested follows:

>> ver

MATLAB Version: (R2013b)
MATLAB License Number: 618777
Operating System: Mac OS X Version: 10.8.5 Build: 12F37
Java Version: Java 1.7.0_11-b21 with Oracle Corporation Java HotSpot™ 64-Bit Server VM mixed mode

MATLAB Version 8.2 (R2013b)
Simulink Version 8.2 (R2013b)
Bioinformatics Toolbox Version 4.3.1 (R2013b)
Communications System Toolbox Version 5.5 (R2013b)
Computer Vision System Toolbox Version 5.3 (R2013b)
Control System Toolbox Version 9.6 (R2013b)
Curve Fitting Toolbox Version 3.4 (R2013b)
DSP System Toolbox Version 8.5 (R2013b)
Database Toolbox Version 5.0 (R2013b)
Datafeed Toolbox Version 4.6 (R2013b)
DatapixxToolbox Version 0.9, Aug
Econometrics Toolbox Version 2.4 (R2013b)
FastICA for Matlab 7.x and 6.x Version 2.5, October 19
FieldTrip Version unknown
Financial Instruments Toolbox Version 1.2 (R2013b)
Financial Toolbox Version 5.2 (R2013b)
Fixed-Point Designer Version 4.1 (R2013b)
Fuzzy Logic Toolbox Version 2.2.18 (R2013b)
Global Optimization Toolbox Version 3.2.4 (R2013b)
Image Acquisition Toolbox Version 4.6 (R2013b)
Image Processing Toolbox Version 8.3 (R2013b)
Instrument Control Toolbox Version 3.4 (R2013b)
MATLAB Builder JA Version 2.3 (R2013b)
MATLAB Coder Version 2.5 (R2013b)
MATLAB Compiler Version 5.0 (R2013b)
MATLAB Report Generator Version 3.15 (R2013b)
Mapping Toolbox Version 4.0 (R2013b)
Model Predictive Control Toolbox Version 4.1.3 (R2013b)
Neural Network Toolbox Version 8.1 (R2013b)
Optimization Toolbox Version 6.4 (R2013b)
Parallel Computing Toolbox Version 6.3 (R2013b)
Partial Differential Equation Toolbox Version 1.3 (R2013b)
Psychtoolbox Version 3.0.11 3 July
RF Toolbox Version 2.13 (R2013b)
Robust Control Toolbox Version 5.0 (R2013b)
Signal Processing Toolbox Version 6.20 (R2013b)
SimBiology Version 4.3.1 (R2013b)
SimElectronics Version 2.4 (R2013b)
SimMechanics Version 4.3 (R2013b)
Simscape Version 3.10 (R2013b)
Simulink 3D Animation Version 7.0 (R2013b)
Simulink Coder Version 8.5 (R2013b)
Simulink Control Design Version 3.8 (R2013b)
Simulink Design Optimization Version 2.4 (R2013b)
Simulink Report Generator Version 3.15 (R2013b)
Simulink Verification and Validation Version 3.6 (R2013b)
Stateflow Version 8.2 (R2013b)
Statistical Parametric Mapping Version 8.3 (SPM8)
Statistical Parametric Mapping Version 8.3 (SPM8)
Statistics Toolbox Version 8.3 (R2013b)
Symbolic Math Toolbox Version 5.11 (R2013b)
System Identification Toolbox Version 8.3 (R2013b)
Wavelet Toolbox Version 4.12 (R2013b)
Yokogawa MEG Reader toolbox for MATLAB Version 1.04.01

>> java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment()

ans =


>> java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice()

ans =


Except for the last command, which raises an exception:

>> java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getScreen()
No appropriate method, property, or field getScreen for class

(Thanks for the quick response, by the way!)

Every new version of Matlab and/or Java and/or MacOSX come with new surprises.
This time they removed the method CGraphicsDevice.getScreen()…

I updated the code to get the default screen in a different way.
Can you please update Brainstorm (type “brainstorm update” in your Matlab command window) and try again?
There might be other “updates” of the same kind: please report them in the same way, I’ll fix them as you discover them.


Thanks, Francois, that did it!

FYI, there is still one warning, but everything seems to be functional. Here’s the trace of that warning:

Warning: A Java exception occurred trying to load the sun/awt/X11GraphicsEnvironment
Java exception occurred:
java.lang.UnsatisfiedLinkError: sun.awt.X11GraphicsEnvironment.initDisplay(Z)V
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.access$200(
at sun.awt.X11GraphicsEnvironment$
at Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(
> In gui_layout>GetMaximumWindow at 120
In gui_layout>GetScreenClientArea at 170
In bst_call at 26
In macro_methodcall at 37
In gui_layout at 36
In gui_brainstorm>CreateWindow at 331
In bst_call at 26
In macro_methodcall at 37
In gui_brainstorm at 30
In gui_initialize at 39
In bst_startup at 309
In brainstorm at 89

Same thing as before: unexpected changes in the class definitions.
Can you update again and check that everything is working well now?


Thanks, Francois – all is well, now.

After the update to my brainstorm, it shows the following error when I try to open the brainstorm:

BST> Starting Brainstorm:
BST> =================================
BST> Version: 10-Aug-2023
BST> Compiling main interface files...
BST> Deleting old process reports...
BST> Loading configuration file...
BST> Checking internet connectivity... ok
BST> Update available online: 15-Aug-2023
BST> Initializing user interface...
BST> WARNING: Mutex "Brainstorm" already exists.
Unable to resolve the name 'IconLoader.ICON_APP.getImage'.

Error in gui_brainstorm>CreateWindow (line 83)

Error in gui_brainstorm (line 34)

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

Error in bst_startup (line 359)

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

Also, I have tried the command suggested in the Brainstorm installation issue, whose output is as follows:


MATLAB Version: (R2022a) Update 1
MATLAB License Number: 40761481
Operating System: Linux 5.15.0-78-generic #85~20.04.1-Ubuntu SMP Mon Jul 17 09:42:39 UTC 2023 x86_64
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode

MATLAB Version 9.12 (R2022a)
Simulink Version 10.5 (R2022a)
5G Toolbox Version 2.4 (R2022a)
AUTOSAR Blockset Version 2.6 (R2022a)
Aerospace Blockset Version 5.2 (R2022a)
Aerospace Toolbox Version 4.2 (R2022a)
Antenna Toolbox Version 5.2 (R2022a)
Audio Toolbox Version 3.2 (R2022a)
Automated Driving Toolbox Version 3.5 (R2022a)
Bioinformatics Toolbox Version 4.16 (R2022a)
Bluetooth Toolbox Version 1.0 (R2022a)
Communications Toolbox Version 7.7 (R2022a)
Computer Vision Toolbox Version 10.2 (R2022a)
Control System Toolbox Version 10.11.1 (R2022a)
Curve Fitting Toolbox Version 3.7 (R2022a)
DDS Blockset Version 1.2 (R2022a)
DSP HDL Toolbox Version 1.0 (R2022a)
DSP System Toolbox Version 9.14 (R2022a)
Database Toolbox Version 10.3 (R2022a)
Datafeed Toolbox Version 6.2 (R2022a)
Deep Learning HDL Toolbox Version 1.3 (R2022a)
Deep Learning Toolbox Version 14.4 (R2022a)
Econometrics Toolbox Version 6.0 (R2022a)
Embedded Coder Version 7.8 (R2022a)
Filter Design HDL Coder Version 3.1.11 (R2022a)
Financial Instruments Toolbox Version 3.4 (R2022a)
Financial Toolbox Version 6.3 (R2022a)
Fixed-Point Designer Version 7.4 (R2022a)
Fuzzy Logic Toolbox Version 2.9 (R2022a)
GPU Coder Version 2.3 (R2022a)
Global Optimization Toolbox Version 4.7 (R2022a)
HDL Coder Version 3.20 (R2022a)
HDL Verifier Version 6.5 (R2022a)
Image Acquisition Toolbox Version 6.6 (R2022a)
Image Processing Toolbox Version 11.5 (R2022a)
Industrial Communication Toolbox Version 6.0 (R2022a)
Instrument Control Toolbox Version 4.6 (R2022a)
LTE Toolbox Version 3.7 (R2022a)
Lidar Toolbox Version 2.1 (R2022a)
MATLAB Coder Version 5.4 (R2022a)
MATLAB Compiler Version 8.4 (R2022a)
MATLAB Compiler SDK Version 7.0 (R2022a)
MATLAB Report Generator Version 5.12 (R2022a)
Mapping Toolbox Version 5.3 (R2022a)
Mixed-Signal Blockset Version 2.2 (R2022a)
Model Predictive Control Toolbox Version 7.3 (R2022a)
Motor Control Blockset Version 1.4 (R2022a)
Navigation Toolbox Version 2.2 (R2022a)
Optimization Toolbox Version 9.3 (R2022a)
Parallel Computing Toolbox Version 7.6 (R2022a)
Partial Differential Equation Toolbox Version 3.8 (R2022a)
Phased Array System Toolbox Version 4.7 (R2022a)
Powertrain Blockset Version 1.11 (R2022a)
Predictive Maintenance Toolbox Version 2.5 (R2022a)
RF Blockset Version 8.3 (R2022a)
RF PCB Toolbox Version 1.1 (R2022a)
RF Toolbox Version 4.3 (R2022a)
RICOH MEG Reader toolbox for MATLAB Version 1.0.3
ROS Toolbox Version 1.5 (R2022a)
Radar Toolbox Version 1.2 (R2022a)
Reinforcement Learning Toolbox Version 2.2 (R2022a)
Requirements Toolbox Version 2.0 (R2022a)
Risk Management Toolbox Version 2.0 (R2022a)
Robotics System Toolbox Version 4.0 (R2022a)
Robust Control Toolbox Version 6.11.1 (R2022a)
Satellite Communications Toolbox Version 1.2 (R2022a)
Sensor Fusion and Tracking Toolbox Version 2.3 (R2022a)
SerDes Toolbox Version 2.3 (R2022a)
Signal Integrity Toolbox Version 1.1 (R2022a)
Signal Processing Toolbox Version 9.0 (R2022a)
SimBiology Version 6.3 (R2022a)
SimEvents Version 5.11 (R2022a)
Simscape Version 5.3 (R2022a)
Simscape Driveline Version 3.5 (R2022a)
Simscape Electrical Version 7.7 (R2022a)
Simscape Fluids Version 3.4 (R2022a)
Simscape Multibody Version 7.5 (R2022a)
Simulink 3D Animation Version 9.4 (R2022a)
Simulink Check Version 6.0 (R2022a)
Simulink Code Inspector Version 4.1 (R2022a)
Simulink Coder Version 9.7 (R2022a)
Simulink Compiler Version 1.4 (R2022a)
Simulink Control Design Version 6.1 (R2022a)
Simulink Coverage Version 5.4 (R2022a)
Simulink Design Optimization Version 3.11 (R2022a)
Simulink Design Verifier Version 4.7 (R2022a)
Simulink PLC Coder Version 3.6 (R2022a)
Simulink Real-Time Version 8.0 (R2022a)
Simulink Report Generator Version 5.12 (R2022a)
Simulink Test Version 3.6 (R2022a)
SoC Blockset Version 1.6 (R2022a)
Stateflow Version 10.6 (R2022a)
Statistics and Machine Learning Toolbox Version 12.3 (R2022a)
Symbolic Math Toolbox Version 9.1 (R2022a)
System Composer Version 2.2 (R2022a)
System Identification Toolbox Version 9.16 (R2022a)
Text Analytics Toolbox Version 1.8.1 (R2022a)
UAV Toolbox Version 1.3 (R2022a)
Vehicle Dynamics Blockset Version 1.8 (R2022a)
Vehicle Network Toolbox Version 5.2 (R2022a)
Vision HDL Toolbox Version 2.5 (R2022a)
WLAN Toolbox Version 3.4 (R2022a)
Wavelet Toolbox Version 6.1 (R2022a)
Wireless HDL Toolbox Version 2.4 (R2022a)
Wireless Testbench Version 1.0 (R2022a)
Yokogawa MEG Reader toolbox for MATLAB Version 1.5.2


ans =



ans =



ans =


The issue is related to the existent Mutex, try the steps described here:

Thank you. The issue was resolved after deleting the old brainstorm3 folder.