Error when using Simulink: "slCustomi​zer.static​Refresh" unrecognized field name "obj" on Mac

I started using Matlab R2021b + Simulink a couple of days ago on my Mac. I used it in multiple projects and it was working fine.
Now I am having some problems when using Simulink. When starting I get the following message in the Command Window combined with a refresh of my Simulink Menubar:
caught exception in slsvXtesterFEVALWithDeferredCtrlCHandling.
It happens nearly every time I try to do anything in a existing or blank model (I can't open the Modelsettings - they crash too). It's quite unusable this way.
I tried to reinstall Matlab + Simulink without success. I also tried:
restoredefaultpath
rehash toolboxcache
Which did not fix the problem. I tried to run:
sl_refesh_customizations
This resulted in a more specific error:
An error occurred during Simulink customization.
[...]
Caused by:
Error using slCustomizer.staticRefresh
Unrecognized field name "obj".
Does anyone have an idea on how to fix this problem?
Thanks

4 件のコメント

Did you solved?
I'm having the same issue.
yanfeng chen
yanfeng chen 2021 年 12 月 10 日
Me too
璟 朱
璟 朱 2022 年 3 月 11 日
I eliminate this error

サインインしてコメントする。

 採用された回答

Ananya Tewari
Ananya Tewari 2021 年 10 月 21 日

8 投票

Hello,
This issue can be caused by a sporadic corruption of a file related to data dictionaries associated with libraries.
On your machine, please go to the MATLAB "prefdir" and then navigate into a directory called "SLLibraryLinkageData". This directory should contain a MAT file named "LibraryLinkageCache.mat". Please delete this file and restart MATLAB.

3 件のコメント

Mark Walker
Mark Walker 2021 年 11 月 20 日
Deleting that file did not eliminate this error for me
蒙召 张
蒙召 张 2022 年 5 月 2 日
Deleting that file eliminates this error for me. thank you!
reda falah
reda falah 2022 年 8 月 10 日
編集済み: reda falah 2022 年 8 月 10 日
Thanks for the solution Mr. Ananya

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSimulink Environment Customization についてさらに検索

製品

リリース

R2021b

タグ

質問済み:

2021 年 10 月 14 日

編集済み:

2022 年 8 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by