Error in saving .mlx file

Hello all,
I am facing the following issue while attempting to save the Matlab Live Script file.
"unable to save .mlx file. The file save operation is taking longer than expected. Try clearing some of the outputs from the file before saving."
I have tried clearing my workspace. Still face the issue.
Why am I facing this issue and how do I overcome this? Kindly Help.
Thanks in advance.
Regards,
KS.

13 件のコメント

Kishore Seshadri
Kishore Seshadri 2019 年 8 月 30 日
編集済み: Kishore Seshadri 2019 年 8 月 30 日
and with this prompt, I lose my entire code!
Kishore Seshadri
Kishore Seshadri 2019 年 8 月 30 日
Ok.. The issue is sorted for now, care had to be take to open Matlab first and then the file. It would be great if someone could explain why this happens. I am mostly working with the fmincon function.
Hari Krishna Ravuri
Hari Krishna Ravuri 2019 年 9 月 4 日
I'm unable to reproduce this behaviour on my end.Please provide reproduction steps.
Guillaume
Guillaume 2019 年 9 月 4 日
Matlab and networked drives don't always mix very well, with all sorts of errors having been reported. I suggest you work on a local folder.
Kishore Seshadri
Kishore Seshadri 2019 年 9 月 4 日
@Hari Krishna Ravuri
These are my observations. This issue started as soon as I accidently deleted a '.bak' file. and now it happens to any random file in the folder. The folder is connected to a git repository as well. The code mainly solves a nonlinear optimization problem. The issue occurs when the code runs an infinite loop, but this is not always the case. Even I am not able to reproduce it, but it occurs suddenly.
@Guillaume Yes, this could be a probable reason. Thanks for the suggestion! :)
Hari Krishna Ravuri
Hari Krishna Ravuri 2019 年 9 月 13 日
To what location are you trying to save? How are you trying to save?
Kishore Seshadri
Kishore Seshadri 2019 年 9 月 13 日
Its saved in a local folder in the server. I just do a simple CTRL+S.
I have also observed that this occurs when the number of outputs is very high and I try to do a CTRL+S within a few seconds of the completition of the computation. It eventually saves on subsequent attempts.
Yes, in other words, it looks like it is lagging.
I am not truly aware of the exact jargons, so I appologise if the description is too vague.
Hari Krishna Ravuri
Hari Krishna Ravuri 2019 年 9 月 18 日
Which MATLAB version are you using?
Kishore Seshadri
Kishore Seshadri 2019 年 9 月 18 日
R2019a
Guillaume
Guillaume 2019 年 9 月 18 日
@Hari Krishna Ravuri,
I don't know if it's something that mathworks is actively investigating. If it's not perhaps it should. It's not the first time that issues have been reported with accessing files on networked drives. See for example matlab file on disk might be empty.
Hari Krishna Ravuri
Hari Krishna Ravuri 2019 年 9 月 19 日
@Guillaume @Kishore Seshadri
I'm unable to reproduce this problem on my end and can easily save files on network drive.If the problem still persists, please provide the exact reproduction steps so that I can take the necessary actions.
Guillaume
Guillaume 2019 年 9 月 19 日
I've never encountered the issue so can't offer a recipe I'm afraid. However, there's been enough questions about it on answer that it would appear that there is a problem specific to matlab with networked folders.
Sanat Kumar Tiwari
Sanat Kumar Tiwari 2020 年 11 月 6 日
I recently started using matlab live script annd facing this issue annd different random occasions.
Sometimes it will not save the new file unless I force quite MATLAB.

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeExternal Language Interfaces についてさらに検索

質問済み:

2019 年 8 月 30 日

コメント済み:

2020 年 11 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by