Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

creating new protocol breaks on ubuntu #541

Closed
lukeinator42 opened this issue May 9, 2022 · 2 comments · Fixed by #542
Closed

creating new protocol breaks on ubuntu #541

lukeinator42 opened this issue May 9, 2022 · 2 comments · Fixed by #542

Comments

@lukeinator42
Copy link

In the latest versions of brainstorm, creating a new protocol crashes. My operating system is ubuntu 20.04, and this error occurred on matlab 2021a as well as matlab 2022a.

I checked out previous commits to see if this issue still occurred and it looks like 3f20be8 was the last version that still works.

The error message it throws is:
_Index exceeds the number of array elements. Index must not exceed 0.

Error in db_parse_subject (line 187)
if (length(sSubject(1).Anatomy) >= 2)

Error in db_load_subjects (line 125)
ProtocolSubjects.Subject = db_parse_subject(ProtocolInfo.SUBJECTS, '', 45);

Error in db_reload_database (line 74)
db_load_subjects(0, isFix);

Error in db_load_protocol (line 93)
db_reload_database(iProtocols(i));

Error in gui_brainstorm>SetCurrentProtocol (line 1046)
db_load_protocol(iProtocol);

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

Error in gui_edit_protocol/updateProtocolModificiations (line 180)
gui_brainstorm('SetCurrentProtocol', Protocol);_

@rcassani
Copy link
Collaborator

rcassani commented May 9, 2022

Hi @lukeinator42, thanks for pointing out the bug. This will be promptly solved.

@ftadel
Copy link
Member

ftadel commented May 10, 2022

I commit buggy code in the evening, and 4hrs later it's already fixed...
You guys are amazing! Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants