I’ve encountered this over the past week on Julia 0.6.1 and 0.6.2 on an up-to-date Arch Linux.
After plotting with PyPlot, I have a constant CPU usage and both the plot GUI and the REPL become very slow to respond.
I find if I enter 1+1 into the REPL then hit CTRL+C just before it has a chance to output 2, I interrupt something:
ERROR (unhandled task failure): InterruptException:
Stacktrace:
[1] #_pycall#67(::Array{Any,1}, ::Function, ::PyCall.PyObject, ::PyCall.PyObject, ::Vararg{PyCall.PyObject,N} where N) at /home/peter/.julia/v0.6/PyCall/src/PyCall.jl:663
[2] _pycall(::PyCall.PyObject, ::PyCall.PyObject, ::Vararg{PyCall.PyObject,N} where N) at /home/peter/.julia/v0.6/PyCall/src/PyCall.jl:641
[3] #pycall#70(::Array{Any,1}, ::Function, ::PyCall.PyObject, ::Type{PyCall.PyObject}, ::PyCall.PyObject, ::Vararg{PyCall.PyObject,N} where N) at /home/peter/.julia/v0.6/PyCall/src/PyCall.jl:672
[4] (::PyCall.##3#4{PyCall.PyObject,PyCall.PyObject,PyCall.PyObject,PyCall.PyObject})(::Timer) at /home/peter/.julia/v0.6/PyCall/src/gui.jl:149
[5] (::Base.##300#301{PyCall.##3#4{PyCall.PyObject,PyCall.PyObject,PyCall.PyObject,PyCall.PyObject},Timer})() at ./event.jl:436
Afterward, the REPL is responsive again, but PyPlot no longer works (the figure window appears, but the GUI and the plot itself does not).
In my case:
PyPlot.backend = "qt5agg"
PyPlot.version = v"2.1.1"
PyPlot.PyCall.pyversion = v"3.6.3"
PyPlot.PyCall.python = "python"
This issue persists after running
ENV["PYTHON"] = ""
Pkg.build("PyCall")
in which case I have
PyPlot.PyCall.pyversion = v"2.7.14"
PyPlot.PyCall.python = "/home/peter/.julia/v0.6/Conda/deps/usr/bin/python"