"Warning: Unable to load Toolbox Path Cache" during parallelization
22 ビュー (過去 30 日間)
古いコメントを表示
I am running multiple instances of C-code in parallel on Ubuntu. The C-code starts up matlab, calls a script, then closes. When running many at once (~8), I get the following error intermittently:
Warning: Unable to load Toolbox Path Cache
/home/chuck/.matlab/R2018a/toolbox_cache-9.4.0-2328427802-glnxa64.xml. The
cache file is not in the correct format. It will be regenerated upon quitting
MATLAB.
I have found that unchecking "Update Toolbox Path Cache" per this post will prevent the warning from occuring, but that it slows down each Matlab call.
Is there a way to prevent this warning other than not using the cache?
2 件のコメント
rana afaq
2019 年 12 月 25 日
You can try to remove this error by updating the cache and cache file. Open MATLAB then Go for HOME option, you will see the PREFERENCE option in ENVIRONMENT SECTION. Choose General In MATLAB, The General Preference pane will be diplayed there. You will see the " UPDATE TOOLBOX PATH CACHE " click on it and Press Ok .
採用された回答
Jan
2019 年 1 月 17 日
If the path cache is updated by multiple threads, it is likely, that one thread tries to read the file, while it is re-created by another thread. This is a standard problem of multi-threading. This ould be solved, if Matlab creates a file lock before one threads accesses the file, but as long as this is not implemented, disable the updates of the Toolbox Path Cache.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Entering Commands についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!