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

Error in GUI preprocessAll #36

Open
julama opened this issue Jan 12, 2021 · 5 comments
Open

Error in GUI preprocessAll #36

julama opened this issue Jan 12, 2021 · 5 comments

Comments

@julama
Copy link

julama commented Jan 12, 2021

I get the following error for pre-processing-> run in the GUI:

Array indices must be positive integers or logical values.

Error in Project/preprocessAll (line 461)
                mexFolder = str(1:mexFolder(end));

Error in mainGUI>runpreprocessbutton_Callback (line 788)
    project.preprocessAll();

Error in gui_mainfcn (line 95)
        feval(varargin{:});

Error in mainGUI (line 61)
    gui_mainfcn(gui_State, varargin{:});

Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)mainGUI('runpreprocessbutton_Callback',hObject,eventdata,guidata(hObject)) 
Error while evaluating UIControl Callback.

What could be the issue?

@ksgfan
Copy link
Collaborator

ksgfan commented Jan 12, 2021

Hi
that is a problem with IClabel installation. Are you connected to the internet while running automagic?

Make sure, IClabel is in the automagic-master/matlab_scripts/eeglab14_1_2b/plugins/

Best,
Dawid

@julama
Copy link
Author

julama commented Jan 12, 2021

Hi Dawid,
thanks for your help!
IClabel was not in this folder. After adding it manually I still get the same error (also restarted the application).
And yes, I was always connected.

@ksgfan
Copy link
Collaborator

ksgfan commented Jan 13, 2021

Thats strange. Are you using Automagic as a EEGlab extension (https://github.com/methlabUZH/automagic/wiki/Automagic-as-EEGLAB-extension)? What Matlab version do you have?
I tested Matlab 2016b, 2018a, 2020a on OS and Linux and everything works fine.

Could you please go to automagic folder, /src/Project.m, set a breakpoint at line 452 and check, what values does ICLabelFolderIndex take? We can also habe a short zoom meeting today and check it together.

@ksgfan ksgfan closed this as completed Feb 20, 2021
@avaruuser
Copy link

Hi, I ran into the same issue. When I set a breakpoint and investigate the ICLabelFolderIndex it is empty. Any suggestion on how this can be resolved?

I used the automagic-development version since it includes the ICLabel plugin. I'm using MATLAB version 2019b on MacOS

@ksgfan
Copy link
Collaborator

ksgfan commented Aug 2, 2022

Hi, I can't reproduce the error on linux, mac or windows.

Is IClabel in automagic-master/matlab_scripts/eeglab14_1_2b/plugins/ ?

Maybe try run restoredefaultpath before starting Automagic GUI?

@ksgfan ksgfan reopened this Aug 2, 2022
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

No branches or pull requests

3 participants