livescript get stuck randomly

Hi,
I'm running a livescript for my analysis so I'm juggling back and forth to produce plot and other but from time to time, often after a bug, the script refuses to run neither section nor the full script.
The troubleshoot I've found is to close the livescript and open it again. It continues working even if I don't clean the variables after reopening it.
It's not an awfull problem but it is rather annoying so I was wondering if anyone else had this issue.

7 件のコメント

Cris LaPierre
Cris LaPierre 2021 年 10 月 27 日
Does this happen consistently or was it a one-time error?
Tancredi Bernasconi
Tancredi Bernasconi 2021 年 10 月 27 日
It is not a one-time error. It happens roughtly 3-4 times during a full day work.
It seem to always happen after a bug in the code and I try to plot an array with the wrong indices or out of bound. But I can't figure out exactly a pattern when it happens and I cannot produce the "hang" consistently.
Cris LaPierre
Cris LaPierre 2021 年 10 月 27 日
What do you see when it hangs? Is there a spinning graphic by the first line? When it hangs, what happens if you click in the Command Window and press ctrl+C?
Tancredi Bernasconi
Tancredi Bernasconi 2021 年 10 月 28 日
Well, matlab doesn't hang per se.
It's more that the livescript refuses to run. Whether I press the run button or for individual section. It just doesn't do anything as if I had not asked to run.
Otherwise the script remains editable and I can run things in the matlab window normally.
Cris LaPierre
Cris LaPierre 2021 年 10 月 28 日
That's actually what I would expect. Everything appears to be working but the live script doesn't execute. Try a ctrl+C the next time it gets like that and see if, after doing that, the live script code executes.
Tancredi Bernasconi
Tancredi Bernasconi 2021 年 11 月 1 日
Hi,
I tried crtl+C but that doesn't seem to have any effect. (Except copying text)
Cris LaPierre
Cris LaPierre 2021 年 11 月 1 日
When the command window is active, ctrl+C kills whate ever is running in the background. It does not stop execution of live scripts, but sometimes a background process can be runnign that is preventing the script from running.
Did you click in the command window first before using ctrl+C?
If so, this may be another issue. I would suggest contacing support, especially if you can identify a consitant set of steps that reproduce the issue.

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeLoops and Conditional Statements についてさらに検索

製品

リリース

R2021a

タグ

質問済み:

2021 年 10 月 27 日

コメント済み:

2021 年 11 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by