-
Notifications
You must be signed in to change notification settings - Fork 244
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
Can't switch from script to GUI - Error while evaluating UIControl Callback. #35
Comments
@GiaRanieri, Which plug-ins have you in EEGLAB when this happens? Can you narrow the issue when using only natives EEGLAB functions (not plug-ins)? Otherwise, please provide a list of the plug-ins to reproduce the problem. |
This is my plug-in list -
The issue happens both when callling native EEGLAB functions (pop_eegplot) and plug-in functions (pop_selectcomps) with AMICA. The error shows up when interacting with buttons in the GUI. Thanks for listening, |
Thanks, @GiaRanieri. Let me reformulate my previous question. Is the issue persisting after uninstalling the following plug-ins? EGLAB: adding "AMICA" v1.5.1 (see >> help eegplugin_amica) Thanks, |
Ok, well - the issue seems to persist, even after removing eeglab altogether and reinstalling it with no additional plug-ins. I get the following message when interacting with the GUI (not always). For instance, the error rises when I try to manage extensions or when I try to delete ICA components.
|
It will be hard to troubleshoot this if there is no consistent way to reproduce the issue. Also, I find very peculiar that you get the error in inputgui.m while managing extensions. While doing that, EEGLAB does not call at any time the function inputgui.m. So... I'm kind of puzzled here... |
@nucleuscub would you mind to try to reproduce the issue with the tutorial dataset under Windows 10 and Matlab 2019a (which I think we have installed) using both AMICA and EEGPLOT. It looks like a problem due to treating object handles as numbers. Otherwise, if we cannot reproduce the problem, we should close the bug. Tx |
@arnodelorme, The script provided can not be used for debugging (paths, variables, and parameters are missing). I've tried a simplified version of the script loading the EEGLAB dataset and invoking the last 2 lines of the original script calling eegplot, and all seems to be fine (Using R2018b under Windows 10 and R2019a on MACOS). Using these setup I was not able to reproduce the issue. @GiaRanieri do you have any update on this issue? |
Thanks @nucleuscub closing the bug for now. @GiaRanieri should reopen it if he can provide new data. |
I ran into the same problem and after some digging I realized what caused it. I defined a variable "set" to use for something. Turns out, "set" is a pre-built function, and this overwrote it. From the second line of the original example post, you can see that it also uses "set" as a variable |
Thanks for the observation, @venpopov. Indeed, that can be the issue here. Le'ts make clear that this is not a good programming practice and there is nothing we can do to prevent this other than educate our users. This link here fits perfectly for this discussion. |
If I go back to the GUI and perform GUI operations, an error rises if I push a button.
Whenever I try to go back to the GUI, after performing script operations on the dataset, I can't push buttons in dialogue boxes, as the following error shows up:
#### Example (I'll shorthand something to make it lighter)
EEG = pop_loadbv(rootfold, sprintf('MMM_000%i.vhdr',set));
pop_newset(ALLEEG, EEG, 0,'setname', sprintf('s0%i_raw',set), 'gui','off');
EEG = pop_resample( EEG, 250);
EEG = pop_chanedit(EEG, 'lookup','filelocation');
[ALLEEG, EEG, CURRENTSET] = pop_newset(ALLEEG, EEG, 1,'setname',sprintf('s0%i_1hpf',set),'gui','off'); % ICA dataset
EEG = pop_eegfiltnew(EEG, 'locutoff',1);
EEG = pop_cleanline(EEG, ... % parameters)
oriEEG = EEG;
EEG = clean_rawdata(EEG, 5, -1, 0.80, 'off', 8, 0.25);
EEG = pop_interp(EEG, oriEEG.chanlocs, 'spherical');
EEG = pop_reref( EEG, [29 30] ,'keepref','on');
EEG = pop_eegchanoperator( EEG, {'ch65=ch31-ch32 label biVEOG'}); %bipolar ocular channels
EEG = pop_eegchanoperator( EEG, {'ch66=ch57-ch58 label biHEOG'});
command = '[EEG LASTCOM] = eeg_eegrej(EEG,eegplot2event(TMPREJ, -1));';
eegplot(EEG.data, 'srate', EEG.srate, 'events', EEG.event, 'command', command, 'winlength', 100);
#### Versions
The text was updated successfully, but these errors were encountered: