Why does program execution hang when using "pause?"
Mostra commenti meno recenti
I am using Windows 10, Matlab R2016a (9.0.0.341360) 64-bit win64 Feb 11, 2016 for the Coursera Machine Learning course. A number of the example programs use the "pause" operator to allow a user to observe some output before continuing.
I have noticed that about 20% of the time, when I press enter at the "pause" section of a program, it will not proceed. I have to press ctrl-c to abort, and then restart the program.
The lower left corner says "Paused: Press any key" but when I press enter, it reports "Busy" in the lower corner and hangs forever.
If I press CTRL-C, I see it is aborting at the PAUSE line.
I usually have to restart MATLAB to get it working again.
Why would "pause" fail this way? Is this a bug or am I doing something wrong?
4 Commenti
dpb
il 11 Apr 2016
Would seem likely to be a system-dependent interaction on a particular installation, unfortunately for you, yours. Probably only help to be had here will be from TMW directly; submit a support request a www.mathworks.com although you might do a search for the symptom and see if there is a published problem report/workaround.
Phillip Remaker
il 11 Apr 2016
jgg
il 11 Apr 2016
This definitely sounds like a bug in the 2016a distribution. Contact tech support; if several people are experiencing, it can adversely affect a much wider population.
Andreas Goser
il 12 Apr 2016
With bugs or anticipated bugs, please get in touch with MathWorks support, really doesn't matter what your license type is.
Risposte (4)
Phillip Remaker
il 2 Mag 2016
1 voto
2 Commenti
Rajeev Verma
il 22 Set 2016
drawnow does not work as well.
Vladimir
circa 7 ore fa
crashes MATLAB also in version 2024....
Likhit
il 17 Feb 2017
1 voto
Has anyone found a solution/patch to fix this issue? I am having the same problem, right now with my code. Drawnow and Using the Space does not seem to work well.
1 Commento
Phillip Remaker
il 17 Feb 2017
sam0037
il 14 Apr 2016
0 voti
Hi,
This is a bug which only occurs in Windows 10. Using Space key to come out of pause mode works, but if Enter key is used instead, it freezes MATLAB. Developers are aware of it and working towards a fix.Currently, the only workaround is to use the Space key instead of Enter to come out of the pause mode.
6 Commenti
Phillip Remaker
il 14 Apr 2016
Modificato: Phillip Remaker
il 14 Apr 2016
Phillip Remaker
il 14 Apr 2016
Michael Harradon
il 29 Lug 2016
I'm seeing the same bug on Window 8, if anyone from Mathworks is tracking this.
Nikita Kuznetsov
il 10 Ago 2016
I'm also experiencing the same issue on Windows 7.
Subhobroto Choudhury
il 29 Lug 2019
I agree, I experience the same problem with the pause command on Matlab R2016a on a Windows 7 computer.
xa zrma
il 9 Mar 2020
I have experienced this issue on my Mac OS Catalina also with R2019b
Phillip Remaker
il 17 Feb 2017
Modificato: Walter Roberson
il 17 Feb 2017
0 voti
1 Commento
gunjan
il 29 Gen 2018
Great! thank you so much!
Categorie
Scopri di più su Startup and Shutdown in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
