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 Exchange에서 External 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