Troubleshooting
Common issues and solutions for EyeSort
Last updated: Mon Jan 19 2026 00:00:00 GMT+0000 (Coordinated Universal Time)
Troubleshooting
This page covers common issues and their solutions. If you don't find your issue here, please open an issue on GitHub.
Installation Issues
No EyeSort menu in EEGLAB
Symptoms: The EyeSort menu doesn't appear in the EEGLAB toolbar after installation.
Solutions:
-
Verify folder location
- Ensure
EyeSort/is insideeeglab/plugins/ - Don't nest it in additional subdirectories
- Check:
eeglab/plugins/EyeSort/eegplugin_eyesort.mshould exist
- Ensure
-
Check for duplicate installations
- Run
which eegplugin_eyesort -allin MATLAB - If multiple paths appear, remove duplicates
- Keep only the one in your EEGLAB plugins directory
- Run
-
Restart EEGLAB completely
- Close EEGLAB
- Type
clear allin MATLAB command window - Run
eeglabagain
-
Check MATLAB path
- EyeSort automatically adds itself to path when EEGLAB starts
- If issues persist, manually run:
addpath(genpath('/path/to/eeglab/plugins/EyeSort'))
Interest Area Setup Issues
"EEG data is not properly processed with region information"
When this appears: When trying to label events before setting up interest areas.
Solution: Run Step 2: Setup Interest Areas first before attempting event labeling.
Missing or mismatched region columns
Error message: "Region column 'RegionName' not found in IA file"
Solutions:
- Check column names in your IA file header
- Verify spelling and case - EyeSort matches case-insensitively but names must match
- Check for special characters - Column names with
$symbols are handled, but avoid other special characters - Use exact names in the "Region names" field in the GUI
Trigger code not found
Error message: "Trial start/end trigger not found" or "Condition/item triggers not found"
Solutions:
-
Check event types in your dataset:
unique({EEG.event.type}) -
Verify trigger format:
- Should match exactly (e.g.,
S254not254or"S254") - Check if your events use strings or numbers
- Should match exactly (e.g.,
-
Check trigger ranges:
- Item triggers support ranges:
S1:S112 - Condition triggers are comma-separated:
S211, S213, S221, S223
- Item triggers support ranges:
Event Labeling Issues
"No labeled events found"
When this appears: After applying labels, no events match your criteria.
Solutions:
-
Relax your criteria:
- Try "Any" for pass constraint
- Try "Any" for fixation type
- Remove previous/next region constraints
-
Check region assignments:
% View events with region info events_with_regions = EEG.event(~cellfun(@isempty, {EEG.event.region})) -
Verify IA setup completed:
- Check that
EEG.region_namesexists - Check that
EEG.eyesort_field_namesexists
- Check that
-
Check event field names:
- Enable "Change default event field names" in Text IA GUI
- Verify your dataset uses the expected field names
Labels not appearing on events
Symptoms: Labels are added in GUI but events don't have new codes.
Solutions:
- Single dataset mode: Check current
EEGstructure in EEGLAB workspace - Batch mode: Labels are saved progressively to output directory
- Verify event types:
% Should see 6-digit codes like 011101 {EEG.event.type}
Label codes overlap or conflict
Symptoms: Different labels produce the same code, or labels overwrite each other.
Cause: The label counter is shared across all labels for a given condition/region pair.
Solution: This is by design - label codes are unique within condition/region. If you need distinct codes, ensure labels target different regions or use different passes/fixation types.
Eye Event Field Name Issues
"Field 'fix_avgpos_x' not found"
Cause: Your dataset uses different field names for eye-tracking data.
Solution:
-
In Text IA GUI, enable "Change default event field names"
-
Specify your actual field names:
- Fixation event name (default:
R_fixation) - Saccade event name (default:
R_saccade) - Fixation X position field (default:
fix_avgpos_x) - Saccade start X field (default:
sac_startpos_x) - Saccade end X field (default:
sac_endpos_x)
- Fixation event name (default:
-
To find your field names:
% Look at a fixation event fixations = EEG.event(strcmp({EEG.event.type}, 'YOUR_FIXATION_TYPE')) fieldnames(fixations(1))
Batch Processing Issues
Batch mode doesn't process all files
Symptoms: Only first file is processed, others are skipped.
Solutions:
- Check output directory - Files are saved with
*_processed.setsuffix - Verify file paths - Check workspace variables:
eyesort_batch_file_paths eyesort_batch_filenames - Check for errors - Look in MATLAB command window for error messages
- Memory issues - Large datasets may cause memory errors; process in smaller batches
Configuration not applied to all files
Symptoms: First file works but subsequent files fail or produce different results.
Solution: Ensure you're using saved configuration files:
- Save Text IA configuration in Step 2
- Save Label configuration in Step 3
- Load these configurations at the start of each step for consistency
BDF Generation Issues
Empty or malformed BDF file
Symptoms: Generated BDF file is empty or ERPLAB can't read it.
Solutions:
-
Check labeled events exist:
labeled = EEG.event(cellfun(@(x) length(x)==6, {EEG.event.type})) -
Verify label descriptions - BDF uses your label description text
-
Check file permissions - Ensure you have write access to output directory
BDF bin descriptions are unclear
Solution: When creating labels, provide detailed Label Description text. This appears in the BDF and helps identify bins later.
Example:
- Good: "First fixation on target word during first pass"
- Bad: "fix1"
General Tips
Save your work frequently
- Save Text IA configurations
- Save Label configurations
- Save intermediate datasets (
*_eyesort_ia.set)
Test with small samples first
Before batch processing:
- Test your configuration on one file
- Verify the output looks correct
- Then apply to all files
Keep original files
Always process copies of your data. EyeSort modifies event types, so keep originals for reference.
Check MATLAB version
EyeSort is tested with MATLAB R2018b and later. Older versions may have compatibility issues.
Still Having Issues?
If you're still experiencing problems:
-
Check our FAQ for additional common questions
-
Search existing GitHub Issues
-
Open a new issue with:
- EyeSort version
- MATLAB and EEGLAB versions
- Operating system
- Steps to reproduce
- Error messages
- Screenshots if applicable
-
Contact the team at smilliga@usf.edu