Hi,
I'm trying to install Brainstorm. After downloading, I opened Matlab as instructed and typed "brainstorm" into the command line. Then I get the below error. Any ideas for how to solve? Thanks!
brainstorm
BST> Starting Brainstorm:
BST> =================================
BST> Version: 13-Oct-2019
BST> Compiling main interface files...
BST> Emptying temporary directory...
BST> Deleting old process reports...
BST> Loading configuration file...
BST> Loading default montages...
BST> Checking internet connectivity... ok
Index exceeds matrix dimensions.
Error in gui_layout>GetScreenClientArea (line 231)
MaxWin = [MonitorPositions(i,1) + jInsets.left, ...
Error in gui_layout (line 33)
eval(macro_method);
Error in bst_startup (line 317)
GlobalData.Program.ScreenDef = gui_layout('GetScreenClientArea');
Error in brainstorm (line 203)
bst_startup(BrainstormHomeDir, 1, BrainstormDbDir);
231 MaxWin = [MonitorPositions(i,1) + jInsets.left, ...
Hello
You may have a combination of displays that is not handled correctly by this function. We can try to fix this but it might require many exchanges so that we can understand where the problem is coming from.
How many screens do you have, and how are they organized?
Have you tried with only one screen? (you need to restart Matlab every time you connect of disconnect a monitor for the changes to be taken into account)
What is your operating system?
And your Matlab version?
Please copy-paste the output of the following commands, typed in your Matlab command window:
get(0, 'MonitorPositions')
ge = java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment();
tk = java.awt.Toolkit.getDefaultToolkit();
jScreens = ge.getScreenDevices()
jDefScreen = ge.getDefaultScreenDevice()
jBounds = jScreens(1).getDefaultConfiguration().getBounds()
jInsets = tk.getScreenInsets(jScreens(1).getDefaultConfiguration())
jBounds = jScreens(2).getDefaultConfiguration().getBounds()
jInsets = tk.getScreenInsets(jScreens(2).getDefaultConfiguration())
% ... repeat with as many screens as you have.
Try executing the following command and then restart Brainstorm (equivalent of clicking on the menu "One screen" in the drop-down menu on the top-right corner of the Brainstorm window):
bst_set('Layout', 'DoubleScreen', 0)
Francois
Thanks! It works when I unplug one of my monitors.