Nodisplay matlab brainstorm won't intialize

Hello,
Please see matlab commands and output below.
I am currently trying to use matlab 17a.

Thanks for any suggestion,
Megan

if ~brainstorm('status')
brainstorm server
end

BST> Starting Brainstorm:
BST> =================================
BST> Version: 13-Oct-2020
BST> Emptying temporary directory...
BST> Deleting old process reports...
BST> Loading configuration file...
BST> Warning: Automatic updates are disabled.
BST> Warning: Make sure your version of Brainstorm is up to date.
BST> Reading plugins folder...
BST> Loading current protocol...
Struct contents reference from a non-struct array object.

Error in gui_layout>GetDecorationSize (line 68)
jBstWindow.getRootPane.getBounds.getX(), ...

Error in gui_layout (line 33)
eval(macro_method);

Error in bst_startup (line 540)
GlobalData.Program.DecorationSize = gui_layout('GetDecorationSize', jFrame);

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

Follow up question, I can initialize an older version of brainstorm (Version: 20-Jul-2018). Some work has been done in this protocol over a long period of time.
When I attempt something like a bst_process to import event, shown below, I get an error showing up in the report. The error says
"Line 300: Reference to non-existent field 'samples'.

I'm guessing this is due to a mismatch between versions that created the brainstorm objects and the version of brainstorm I'm trying to use. Thoughts? Please let me know if I can provide any other information.

Thanks,
Megan


Call stack:

process_import_data_event.m>Run at 300
process_import_data_event.m at 24
bst_process.m>Run at 196
bst_process.m>CallProcess at 2181
bst_process.m at 36"

Here is the line that generates the error:
sEpochs= bst_process('CallProcess', 'process_import_data_event', sFiles(n), [], ...
'subjectname', sFiles(n).SubjectName, ...
'condition', '', ...
'eventname', '1,2,3,4,5,6,7,8,9', ...
'timewindow', [], ...
'epochtime', [-0.1, 0.7], ...
'createcond', 0, ...
'ignoreshort', 1, ...
'usectfcomp', 0, ...
'usessp', 1, ...
'freq', [], ...
'baseline', [-0.1, -0.004]);

I am running the gui brainstorm via matlab on:
cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.6 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.6 LTS"

I am running the script on
lsb_release -d
Description: CentOS release 6.7 (Final)

This is a bug I introduced recently, when fixing other bugs with the detection of the dimensions of the window borders. Thank you for reporting it.

I think it is now fixed in this commit: https://github.com/brainstorm-tools/brainstorm3/commit/4cd6eaa5e62fdc3e57af54556429a45ef61fbbd6

Please update Brainstorm and try again.

1 Like

Hi and thanks!!
**EDIT : I did not have the new master correctly downloaded and installed.
Checking now.

I downloaded the new master.
I am in matlab command line, I cd to the new brainstorm folder, but it looks like I'm still getting an old version of brainstorm. How do I keep track of which version I'm using from the command line?

cd /export/research/analysis/human/jstephen/shared/programs/brainstorm/brainstorm_201022/

if ~brainstorm('status')
brainstorm server
end

BST> Starting Brainstorm:
BST> =================================
BST> Version: 20-Jul-2018
BST> Emptying temporary directory...
BST> Deleting old process reports...
BST> Loading configuration file...
BST> Warning: Automatic updates are disabled.
BST> Warning: Make sure your version of Brainstorm is up to date.
BST> Reading plugins folder...
BST> Loading current protocol...
BST> =================================

brainstorm('status')

Thank you, Francois!
It's working!