Data dictionary addEntry "database is locked" error when running multiple instances

I get the following error when multiple instances of Matlab are simultaneously trying to generate and modify data dictionaries:
The database
/var/folders/mq/h/hrtcpj6jv1x@ybxkv6cj2h8888gq/T/data_model_repository3.4_R2023b_v1_*.stddc
is locked, or a table in the database is locked. (database is locked)
Is this a common file shared by multiple Matlab instances? If so is there a workaround to avoid this error?
Perhaps a noteworthy detail: I'm using a mac.

回答 (1 件)

praguna manvi
praguna manvi 2025 年 3 月 13 日
編集済み: praguna manvi 2025 年 4 月 15 日

0 投票

Hi @Cory,
Refer to the following useful discussion thread on running Simulink on multiple MATLAB instances simultaneously:
The workaround is to ensure unique "cache" and "codegen" folders using "Simulink.fileGenControl" and to also specify a temporary directory by setting the 'TMPDIR' environment variable.

カテゴリ

製品

リリース

R2024a

質問済み:

2025 年 2 月 27 日

編集済み:

2025 年 4 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by