フィルターのクリア

Simbiology "Project Save Error"

7 ビュー (過去 30 日間)
Jim Bosley
Jim Bosley 2022 年 11 月 15 日
編集済み: Walter Roberson 2023 年 1 月 31 日
For some reason I cannot save simbiology projects. When I try (for new files, and files I've loaded) I'm now getting:
"Project Save Error
Error occurred while saving the project
Could not move project"
This is in Ubuntu 22.04. ver gives me
MATLAB Version: 9.12.0.2009381 (R2022a) Update 4
MATLAB License Number: 4xxxxxxxxxxx
Operating System: Linux 5.15.0-52-generic #58-Ubuntu SMP Thu Oct 13 08:03:55 UTC 2022 x86_64
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
Pretty sure that this is a permissions error. BTW,
tempdir
returns
'/tmp/'

採用された回答

Priya Moorthy
Priya Moorthy 2022 年 11 月 15 日
Hi, Jim,
I'm sorry that you are running into issues while saving your project. The behavior you describe sounds like what we see when trying to save a project to a write-protected directory (SimBiology will force save over a write-protected file). We can confirm this if you try typing
[lastmsg, lastid] = lasterr;
at the MATLAB command line. If lastmsg is 'Error using movefile Operation not permitted' and lastid is 'MATLAB:MOVEFILE:OSError', then it is probably a permissions issue with the destination directory of the project. If you get a different lasterr output, please send us that information and we can investigate what else might cause such an error.
Best,
Priya
  10 件のコメント
Priya Moorthy
Priya Moorthy 2022 年 11 月 29 日
編集済み: Priya Moorthy 2022 年 11 月 29 日
Hi, Jim,
SimBiology tries to save a backup of your project file in *.sbproj.bak in the same directory as your original sbproj file. This backup may have your original model with diagram. However, given your current Linux version, you should continue to use R2022b Update 1 or later to avoid this bug altogether.
Best,
Priya
Priya Moorthy
Priya Moorthy 2022 年 12 月 5 日
編集済み: Walter Roberson 2023 年 1 月 31 日
Jim,
I just wanted to inform you about the recently published bug report which consolidates all the different workarounds for this issue outside of SimBiology: https://www.mathworks.com/support/bugreports/2856360
Best,
Priya

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

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2022 年 11 月 15 日
編集済み: Walter Roberson 2022 年 11 月 15 日
you are potentially seeing the relatively recent issues due to Linux kernel changes in how files are copied, changes that mostly affect tempfs.
The workaround is to create a temporary directory on an ordinary file system and create an environment variable TMPDIR or TEMP (if I recall correctly) pointing there, and start matlab with that in effect. If you are starting from an icon you might need additional steps to have the environment variable in effect at the time of program launch as icons do not go through the full login sequence that interactive shells go through.
  4 件のコメント
Jim Bosley
Jim Bosley 2022 年 11 月 18 日
So if I'm opening matlab using an icon, in ubuntu, with a .desktop file. How do I get the tempdir set permanently?
Also, I'm using zshell, and I suppose the same Bourne shell command would work in a .zshrc file.
Jim Bosley
Jim Bosley 2022 年 11 月 18 日
Sorry to be so dense...

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

コミュニティ

その他の回答  SimBiology コミュニティ

カテゴリ

Help Center および File ExchangeImport Data についてさらに検索

タグ

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by