Out of memory. The likely cause is an infinite recursion within the program.

3 views (last 30 days)
Hello,
I am receiving the following error message:
Out of memory. The likely cause is an infinite recursion within the program.
Error in fileparts (line 35)
elseif ~isrow(file)
I have already tried renaming as well as deleting the isrow.m fime in my eeglab folder with the Matlab folder. I have also tried removing the entire folder that contain the isrow.m file from the path but am still receiving the same error message.
*Thank you for any assistance*
  3 Comments
Walter Roberson
Walter Roberson on 1 Aug 2019
If you did not happen to do so, either quit matlab and reenter, or else
clear all
Sonja Joshi
Sonja Joshi on 1 Aug 2019
I was getting this error before deleting or renaming the isrow.m file and I was just trying to open eeglab when this error message opened. I have also tried using clear all and restarting up Matlab to no avail.
Any ideas?

Sign in to comment.

Accepted Answer

Guillaume
Guillaume on 1 Aug 2019
You, or some code you've downloaded is shadowing the isrow.m function of matlab.
Hopefully, the isrow.m you've deleted is not the matlab one (otherwise, you'll have to reinstall matlab I'm afraid) but the shadowing one.
Two toolboxes that have been shown to shadow essential built-in matlab functions:
That latter one in particular caused exactly the error reported here.
  2 Comments
Sonja Joshi
Sonja Joshi on 1 Aug 2019
Hello all,
Thank you so much for your input. We ended up installing the older 2018 version of eeglab and that somehow corrected the issue.
Thanks again!

Sign in to comment.

More Answers (1)

Arhant Jain
Arhant Jain on 29 Aug 2020
Inside the eeglab lab folder, just delete the folder associated with fieldtrip box. It will solve your problem.

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!