Plots.jl icon indicating copy to clipboard operation
Plots.jl copied to clipboard

[BUG] uninterruptable REPL after a plot

Open antoine-levitt opened this issue 3 years ago • 9 comments

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.

antoine-levitt avatar Jun 29 '22 14:06 antoine-levitt

I can confirm this. It becomes iterruptible again, when you close the QtTerm window. CC: @jheinen

BeastyBlacksmith avatar Jun 30 '22 07:06 BeastyBlacksmith

Does this work for you?

env GKS_NO_EXIT_HANDLER=1 julia -e 'using GR; plot(randn(10)); while true; 1+1; end'

jheinen avatar Jun 30 '22 07:06 jheinen

Nope

antoine-levitt avatar Jun 30 '22 07:06 antoine-levitt

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 ...

jheinen avatar Jun 30 '22 07:06 jheinen

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.

BeastyBlacksmith avatar Jun 30 '22 07:06 BeastyBlacksmith

You can change that to while true; 1+1; yield(); end (or sleep, or something) which becomes more easily interruptible

antoine-levitt avatar Jun 30 '22 07:06 antoine-levitt

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?

jheinen avatar Jun 30 '22 08:06 jheinen

I'm on linux mint 20.3, based on Ubuntu 20.04 I believe. Great if it's already fixed elsewhere.

antoine-levitt avatar Jun 30 '22 08:06 antoine-levitt

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.

Jimbo-Coder avatar Jul 18 '22 02:07 Jimbo-Coder