Simbiology "Project Save Error"
Mostra commenti meno recenti
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/'
Risposta accettata
Più risposte (1)
Walter Roberson
il 15 Nov 2022
Modificato: Walter Roberson
il 15 Nov 2022
0 voti
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 Commenti
Jim Bosley
il 16 Nov 2022
Walter Roberson
il 16 Nov 2022
Modificato: Walter Roberson
il 5 Dic 2022
https://www.mathworks.com/matlabcentral/answers/97720-how-do-i-change-the-temporary-directory-that-matlab-uses#comment_2449208 where I point out the "after a restart". So the environment variable needs to exist when you start matlab. Which is why I talked about icons, since .bashrc and similar are not processed when you use icons so you may need to take additional steps. If the icon permits executing a script that sets the variable first that is probably the best approach.
Jim Bosley
il 18 Nov 2022
Jim Bosley
il 18 Nov 2022
Community
Più risposte nel SimBiology Community
Categorie
Scopri di più su Import Data in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!