Could not access the MCR component cache Error

Im getting an error where the command window closes immediately after I click on an executable file developed using Matlab. The error message reads "Could not access the MCR component cache". I am using a pre-packaged executable and MCR on 64bit Windows (the MCR version is correct). The executable was working fine but suddenly stopped working yesterday after I closed-restarted it a few times. I reinstalled the MCR but it gives me the same error.
I am a novice in Matlab so any ideas are much appreciated.

1 comentario

Jed
Jed el 22 de Jun. de 2021
This can occur if you fill up the disk that contains your mcrCache.

Iniciar sesión para comentar.

 Respuesta aceptada

Kaustubha Govind
Kaustubha Govind el 27 de Mzo. de 2012

8 votos

Not sure, but could it be that the extracted CTF archive somehow got corrupted? I think it is usually extracted to C:\user_name\AppData\Local\Temp\userid\mcrCachen.nn (where the 'n' stands for a number). If you can find the file, perhaps you can delete it and run your executable again to see if it is regenerated. If you can't find it, you could try deleting the files in your Temp folder (usually C:\user_name\AppData\Local\Temp\) and try again.

6 comentarios

Aarshabh
Aarshabh el 31 de Mzo. de 2012
Thanks a ton Kaustubha. You are correct, it was a corrupted CTF mcrCachen.nn folder. I located it under C:\user_name\AppData\Local\Temp\userid\ and deleted it; ran my exe again and the executable regenerated the deleted folder. The program is working fine now. Thanks again.
the mcrCache is by default somewhere below your TEMP directory
In some places I see it shown as being under C:\TEMP rather than under the user's Temp directory; see for example http://www.mathworks.com/support/solutions/en/data/1-BJQVEH/index.html?product=ML&solution=1-BJQVEH . It is possible that the location changed in a later version of MATLAB
In OS-X and Linux, try looking under the directory denoted by your TMPDIR environment variable (on sufficiently old operating systems, before POSIX, it might be TEMP)
Kaustubha Govind
Kaustubha Govind el 14 de Jun. de 2013
Walter: I haven't used MATLAB Compiler in a while, so it is possible things have changed, but in general I believe it is whatever your TEMP environment variable is set to, so I believe it might be C:\TEMP in some configurations.
Walter Roberson
Walter Roberson el 14 de Jun. de 2013
The solution 1-DO0PLX hard-codes C:\TEMP, and without any note to adjust that at need, so I suspect the location changed in time.
Dr. Seis
Dr. Seis el 15 de Jun. de 2013
I am running Matlab on a Linux workstation. These .mcrCache* were directories that were located inside my "home" directory (e.g., /home/{user name}) instead of my Matlab working directory (e.g., /home/{user name}/Matlab).
Once I deleted all the directories, the problem was resolved.
Erik Choueri
Erik Choueri el 24 de Jul. de 2023
Thank you very much!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 27 de Mzo. de 2012

Comentada:

el 24 de Jul. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by