[BUG] uninterruptable REPL after a plot
After using Plots; plot(1), while true; 1+1; end is uninterruptible, even after a triple ctrl+c. This is on Linux, GR backend, Julia 1.8, Plots 1.31.1, GR 0.64.4.
I can confirm this. It becomes iterruptible again, when you close the QtTerm window. CC: @jheinen
Does this work for you?
env GKS_NO_EXIT_HANDLER=1 julia -e 'using GR; plot(randn(10)); while true; 1+1; end'
Nope
For me, it doesn't even work in a simple session!?
julia -e 'while true; 1+1; end'
I have to hit Ctrl/C about a dozen times ...
I have to hit Ctrl/C about a dozen times ...
It's definitely more than 3. But with the window open, I can hit as often as I want.
You can change that to while true; 1+1; yield(); end (or sleep, or something) which becomes more easily interruptible
Hmm. Tried on macOS 12.4 and Ubuntu 22.04 with Julia 1.7.3 and it works fine. Which Linux version are you using?
I'm on linux mint 20.3, based on Ubuntu 20.04 I believe. Great if it's already fixed elsewhere.
Experiencing this bug as well. I believe I corrupted my Plots installation by CTRL + C during a loop that was plotting many heatmaps. Now Plotting anything as plot(1:10) will hangup julia, with no plot produced. CTRL + C will not get you out of this either. I am on Julia 1.7.3 and Windows 10.