MCR cache seems always out of date

4 views (last 30 days)
Ofek shilon
Ofek shilon on 29 Mar 2017
Commented: John Ioannidis on 25 Nov 2019
I'm running on windows 10 a compiled toy executable, and it always re-extracts its embedded ctf file to the MCR cache. I defined the MCR_VERBOSE environment variable, and am seeing output like this:
D:\temp\Matlab>SayMyName.exe "Say my name"
D:\temp\Matlab>Creating MATLAB Runtime Cache at location: D:\MCR_CACHE\mcrCache9.0.1
.max_size found... contents read. Cache max size set to 33554432
MATLAB Runtime cache extracting component: SayMyName_42C6733E6B46BBA1E03A94D932F887F7
Acquiring MATLAB Runtime cache root-level directory lock... acquire succeeded.
Reading cache index file...
Read cache index entry:
SayMyName_42C6733E6B46BBA1E03A94D932F887F7
SayMyN0
195472
2017-Mar-29 14:51:03.668665
Finished reading cache index file.
MATLAB Runtime cache: extractDir is D:\MCR_CACHE\mcrCache9.0.1\SayMyN0
Checking for creation timestamp...
Timestamp is valid.
Acquiring component-level directory READ lock...
acquire succeeded.
Component SayMyName_42C6733E6B46BBA1E03A94D932F887F7 has successfully been accessed from the cache.
MATLAB Runtime Cache: performing maintenance...
Processing cached components...
Done with cache maintenance.
Checking whether index file D:\MCR_CACHE\mcrCache9.0.1\.mcr_cache_index needs to be written...
Write is needed.
Writing cache index file: D:\MCR_CACHE\mcrCache9.0.1\.mcr_cache_index
Writing cache index entry:
SayMyName_42C6733E6B46BBA1E03A94D932F887F7
SayMyN0
195472
2017-Mar-29 14:51:17.877599
Heisenberg
Note the lines - Checking whether index file D:\MCR_CACHE\mcrCache9.0.1\.mcr_cache_index needs to be written... Write is needed.
The cache index timestamp ( 2017-Mar-29 14:51:03.668665 in the above) is exactly 3 hours earlier than my computer time. And this is the only thing that is actually updated in the cache.
Any idea what might be causing this?
  1 Comment
John Ioannidis
John Ioannidis on 25 Nov 2019
does anyone from Mathworks ever read this forum? Lots and lots of questions that should have trivial answers go unanaswered.

Sign in to comment.

Answers (0)

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!