Matlab message catalog: interpreter was not loaded

I have a very strange error in MATLAB, and it does not seem to be directly related to my program. MATLAB doesn't even give me the line where the error occurred.

My program processes a lot of files. I can process groups of them without getting an error, but when I process them all 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 

Usually this happens at about the same point, but not exactly. I tested all the files around this point and they work. This is why I assume this is due to RAM.

If I try to run the program again, I get the same error right at the beginning, but after restarting MATLAB everything works fine again.

I was wondering if this was a bug in C ++, as it contains 'std :: ...'

Do you have any idea what this error means and how can I fix it?

+7
source share
3 answers

This seems like a setup issue. MATLAB is looking for a file in your installation called $MATLABROOT/resources/MATLAB/en/interpreter.xml . Check if the file exists - you may need to reinstall it.

EDIT: It turns out that file descriptors were skipped in the OP code, which means that MATLAB was ultimately unable to open the resource file.

+6
source

Today I met this error, but my reason is simple, I forgot to call fclose every time I wrote to a new file. After adding fclose, the error disappeared.

+8
source

If you use fopen to open a file without fclose at the end, you will run into this problem. So the solution is simple, go to the file!

0
source

All Articles