I have got a very strange error in MATLAB and it doesn't seem to be directly related to my program. MATLAB doesn't even give me a line where the error occurred.
My program processes a lot of files. I can process groups of them without getting an error, but when process them all of them together I get the following error:
Caught "std::exception" Exception message is:
Message Catalog MATLAB:interpreter was not loaded from the file. Please check file location, format or contents
This usually happens at approximately the same point, but not exactly. I tested all the files around this point and they work. This is why I assume it is related to the RAM.
If I try to run the program again I get the same error right at the beginning, but after restarting MATLAB everything runs fine again.
I was wondering if it was a C++ based error, since it contains 'std::...'
Do you have any idea what this error means and how I can fix it?
I met this error today, but my reason is simple, I forgot to call fclose every time I wrote to a new file. After I add the fclose then the error has gone.
This looks like an installation problem. MATLAB is looking for a file in your installation called $MATLABROOT/resources/MATLAB/en/interpreter.xml
. Check that file exists - you might need to re-install.
EDIT: turns out the problem was the OP's code was leaking file handles, meaning that MATLAB was eventually unable to open the resource file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With