フィルターのクリア

MWArray assembly failed to be initialized

6 ビュー (過去 30 日間)
M.Mahdi Setak
M.Mahdi Setak 2020 年 12 月 23 日
コメント済み: Alex 2024 年 4 月 4 日
Hi!
I have developed a .NET core app (version 3.1) in which I used some matlab functions that I wrote and compiled with Matlab R2019b .NET assembly compiler.
I installed MATLAB runtime (the file name that I downloaded was: MATLAB_Runtime_R2019b_Update_7_glnxa64) on my PC which runs Ubuntu Desktop 20.04 LTS and finally deployed my app on it and every thing was working just fine!
Recenlty I bought a VPS which also runs Ubuntu 20.04 and I did the same thing to it but whenever I run my app, I get "MWArray assembly failed to be initialized" exception. I double checked the LD_LIBRARY_PATH variable and both MWArray and MyMatlabClass dlls and also I reinstalled MATLAB runtime for several times but it didn't work. Every thing is just like my PC. I am wondering if there are some dependencies that I should install on the VPS which already exist in Desktop version of Ubuntu but not on the VPS. I really need it to work, please help me!
  1 件のコメント
Alex
Alex 2024 年 3 月 25 日
Apologies for pulling this out of the grave but did you ever find a solution to the issue? I'm currently experiencing an almost identical issue with a linux distro.

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

回答 (1 件)

Dirk Engel
Dirk Engel 2024 年 3 月 25 日
Try deleting the MATLAB Runtime cache folder. If the maximum cache size is reached, or the cache contains corrupted files, you may get this error. Run "mcrcachedir" to find out the location of the cache.
  1 件のコメント
Alex
Alex 2024 年 4 月 4 日
Thank you for the suggestion. I've personally tried this method, unfrotunately to no avail. I will keep looking and update this thread if I find a solution.

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

カテゴリ

Help Center および File ExchangeDeploy to .NET Applications Using MWArray API についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by