As I try to open Brainstorm on my Windows 11 computer, I am now faced with some interesting issues:
-Matlab does not "see" brainstorm as open, even after doing "brainstorm" and enter in the command window. For example, if I try to type "brainstorm quit" in the command line and hit enter, matlab will tell me that Brainstorm is not open, even though I have it open in another tab.
-The following image (see below) will now not go away each time I open brainstorm.
-I detached my protocol from the database to simply try and refresh and see if that was the issue, and when I open Brainstorm again, that protocol is already loaded into the workspace, as if it doesn't seem to remember any previous work.
-My protocol name, and the protocol that is saved to my database, seem to have different naming systems (FinalProtocol versus Protocol1), and now it is reading "FinalProtocol" as corrupt and empty, but Protocol1 still has all of my data.
-Within my Brainstorm GUI, I cannot navigate between the anatomy and functional data tabs without receiving the error code copied below.
All of these issues arose after either trying to analyze and link the raw edf file data to the patient (error with incompatable arrays as linked in my earlier post titled Tutorials/Epileptogenicity) or as a result of simply trying to add a new subject following the standard protocol for adding a new subject.
Long story short, I cannot access any of my data, and this would have to be the third time of restarting and deleting brainstorm and all of my data in order to move forward if this issue can't be resolved, which would be highly unfortunate. Any and all help would be appreciated!
P.S. I figured I would start a new topic, since this doesn't relate to Epileptogenicity Tutorials as much as it relates to just loss of data access.
** Error: Line 128: Arrays have incompatible sizes for this operation.
**
** Call stack:
** >node_create_db_studies.m at 128
** >panel_protocols.m>UpdateTree at 433
** >panel_protocols.m at 46
** >gui_brainstorm.m>CreateWindow/protocolDisplayModeChanged_Callback at 559
** >bst_call.m at 28
** >gui_brainstorm.m>@(h,ev)bst_call(@protocolDisplayModeChanged_Callback,h,ev) at 458
From your shared information. It seems there is a trouble with the your Brainstorm database, this is the reason why Brainstorm does not start properly, thus it cannot be closed properly.
This indeed looks like a corrupted database.
Did you perform any manual manipulation of the database? E.g., renaming folders in the db, copy/pasting files in the db, moving files, etc.
It seems there are actions that you are taking that lead to corruption of the database.
Do you happen to have your database inside the brainstorm3 folder?
@Raymundo.Cassani, thank you for this reply. Upon further inspection, it seems my database folder is completely gone. I was having issues about a month ago with creating new subjects within one protocol, and finding that entirely new protocols had been created. This should have been a sign that something was up then!
I did not perform (knowingly) any manipulation of the database, I simply tried to delete a subject from the protocol about a month ago from within Brainstorm was was told "not allowed", so I just left it alone and moved on with my work.
The strange thing I did notice is that within my current protocol that I have saved externally to Box drive, in Box it is called "FinalProtocol" and was updating normally, but within brainstorm the exact same protocol was called "Protocol01". Maybe this has something to do with it?
Long story quite long, how can I simply and safely erase all memory of the brainstorm database, redownload it, and start over completely?
Do you have access to the same Box drive from different computers?
Could it be that different instances of Brainstorm are interacting with the same database at the same time? This kind of array is not supported for the moment.
To start form the scratch.
Redownload Brainstorm
In Matlab execute brainstorm reset
This will delete all the user preferences
In Matlab start brainstorm you will be asked for a database folder, create a new folder or select an empty one.
To keep a healthy database:
Be sure that the database folder is not inside the brainstorm3 folder (that has the code)
Do not handle manually the files in the database
Make backups continuously
If you use network folders is not recommended, ensure that it is used ONLY by one instance of Brainstorm. Access to the database folder from different Brainstorm instances (different computers) could damage the database.
I do, and I think that was creating the issue. The protocol I was trying to work with had been created on a different computer, and so even though I loaded the same protocol, I had logged in with completely different credentials.
Upon checking, my database folder (saved locally and copied in the cloud) is not within the brainstorm 3 folder. Noted about the second and third points, and I will stick to modifying and accessing the Brainstorm database on this one computer from now on. Thanks!