How to resolve the error "Could not access MATLAB Runtime component cache fl:filesystem:InvalidArgument"?
59 views (last 30 days)
Show older comments
MathWorks Support Team
on 1 Aug 2024
Answered: MathWorks Support Team
on 1 Aug 2024
I am attempting to run a compiled application. However, I am encountering the following error:
Could not access the MATLAB Runtime component cache.
Details: fl:filesystem:InvalidArgument; component cache root:;
componentname: APP_NAME
How can I resolve this error?
Accepted Answer
MathWorks Support Team
on 24 Mar 2025
This error indicates a corrupted MATLAB Runtime cache for this application. Please try the following:
1) Please delete the application cache root folder by following
.
If the error comes from a MATLAB Web App Server application, its default cache folder is "C:\ProgramData\MathWorks\webapps\<release>\USR\.appCache\mcrCache<version>" on Windows.
Then restart the application.
2) If step 1 does not resolve the issue, create a new system environment variable "MCR_CACHE_ROOT" with a value such as "C:\Temp", then restart the application. This should resolve the issue. Note that you may need to log out and back for the environment variable change to take effect. See Documentation page for more details
.
3) If neither of these steps resolve the issue, set the following environment variables, log out, log back in, and then launch the application. Please reach out to MathWorks Technical Support with the resultant log file to determine cause and possible solutions.
MW_DIAGNOSTIC_SPEC "deployment::.*=all"
MW_DIAGNOSTIC_DEST "file=<log file path>"
0 Comments
More Answers (0)
See Also
Categories
Find more on MATLAB Compiler 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!