Attempt to reference field of non-structure array.
Error in bst_get (line 409)
argout2 = GlobalData.DataBase.iProtocol;
Error in db_add_subject (line 41)
ProtocolInfo = bst_get(‘ProtocolInfo’);
Error in BrainstormSourceReconstr (line 240)
db_add_subject(‘os1’);
Dear all,
does anybody know this error?
Best,
Fabienne
Hi Fabienne,
You probably called something that cleared Brainstorm’s internal variables (global variable “GlobalData”).
A call to “clear” from any Matlab script would make Brainstorm unusable.
There are many programs that clear all the variables before starting or before exiting.
Restarting Matlab/Brainstorm should fix it, right?
Cheers,
Francois
Correct!
Thank you, Francois!
Best,
Fabienne
Hello Francois,
I’m a new Brainstorm user who attended a workshop at McGill in 2013 during my sabbatical but have never actually used the software since. A few days ago I downloaded&installed the last version and started step-by-step from tutorials 1 to 7, everything working fine, but then in tutorial 8 (Source estimation) I got stuck on this “Error in bst_get.m”: after having computed the sources and double-clicked “MN:MEG” I was able to see (in the cortex surface figure) that the sources were perfectly computed (according to the tutorial) but when I right-clicked on the same “MN:MEG” to follow the remainder of the tutorial this error appeared:
"Error in bst_get.m"
Line 1038: Attempt to reference field of non-structure array,
Call stack:
>bst_get.m at 1038
>tree_callbacks.m>tree_callback/fcnPopuProjectSources at 2069
>tree_callbacks.m at 1351
>bst_call at 26
>panel_protocols.m>CreatePanel/protocolTreeClicked_Callback at 134
I have already tried everything I can imagine to overcome this (restarting Brainstorm, restarting matlab, restarting the computer itself) but this very same error persists both on Rigth and Left conditions and both in the constrained and unconstrained (2015) source estimation procedures. I’m running Brainstorm on Matlab 2010, OSX Yosemite, MacBook Pro. Please, help me to figure out what is going on. Thank you in advance.
Best regards,
Francisco
Hello Francisco,
First, the lines in your error message do not match the current code.
Can you update Brainstorm and try again? Then report the new error message if you still issues.
Second, it looks like there is something wrong with the structure of your database, like if the subject was renamed or improperly deleted…
You could try to reload the subject (Right-click on the subject folder > Reload) or start over from the beginning.
If you want to start over, I would recommend to read the new tutorials instead. They are not finished yet, but are going to replace the old ones during the fall:
http://neuroimage.usc.edu/brainstorm/TutorialsNew
Cheers,
Francois
Hello Francois,
I followed your last tip and started over, now using the new tutorials, which seem to be more well-suited to my needs. Thank you very much for your quick reply!
Cheers,
Francisco