Multiple Instances of MATLAB operating on Simulink Data Dictionaries can lead to crash or errors “database slddc is locked”
I am running multiple MATLAB instance on my machine that operate on Simulink Data Dictionaries. This could be either:Multiple MATLAB’s started at the same time by calling the matlab executable in a batch or similar script. Multiple MATLAB workers using parfeval, parfor, etc and doing Simulink Data Dictionary operations on these workers.
In some cases I get this error:
The database \?C:UsersrspenceAppDataLocalTempdata_model_repository3.4_R2023b_v1_rspence.slddc is locked, or a table in the database is locked. (database is locked)
In other cases I get a MATLAB Crash where the stacktrace points to something in Simulink Data Dictionary.
What could be the cause?I am running multiple MATLAB instance on my machine that operate on Simulink Data Dictionaries. This could be either:Multiple MATLAB’s started at the same time by calling the matlab executable in a batch or similar script. Multiple MATLAB workers using parfeval, parfor, etc and doing Simulink Data Dictionary operations on these workers.
In some cases I get this error:
The database \?C:UsersrspenceAppDataLocalTempdata_model_repository3.4_R2023b_v1_rspence.slddc is locked, or a table in the database is locked. (database is locked)
In other cases I get a MATLAB Crash where the stacktrace points to something in Simulink Data Dictionary.
What could be the cause? I am running multiple MATLAB instance on my machine that operate on Simulink Data Dictionaries. This could be either:Multiple MATLAB’s started at the same time by calling the matlab executable in a batch or similar script. Multiple MATLAB workers using parfeval, parfor, etc and doing Simulink Data Dictionary operations on these workers.
In some cases I get this error:
The database \?C:UsersrspenceAppDataLocalTempdata_model_repository3.4_R2023b_v1_rspence.slddc is locked, or a table in the database is locked. (database is locked)
In other cases I get a MATLAB Crash where the stacktrace points to something in Simulink Data Dictionary.
What could be the cause? MATLAB Answers — New Questions