-
Notifications
You must be signed in to change notification settings - Fork 89
PyPlot Crashing Mac OS 10.14.6 #454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Even after restarting my computer I get the similar error message: 2019-08-09 14:49:53.190 julia[560:8205] CGSTrackingRegionSetIsEnabled returned CG error 268435459 |
Even after restarting and removing and adding PyPlot, the problem persists. |
The same problem for me. |
Similar error for me. When I use matplotlib excute "plt.show()". Mac went back to lock screen and need password. Seem like restart system. Error Info: |
I think the problem was caused by conda to set python environment and did not have figure show windows like X11. |
Seems this happened with the recent update. Also, I ran to update all the PyPlot Conda stuff it installs behind the hood. This stopped the crashing, but it doesn't exactly work with the GUI... (but I think the PlotPane works in Atom...) I don't get figure windows after doing |
What is PyPlot.backend? |
|
The TkAgg backend has been broken on MacOS for a while (#410), due to an upstream bug in the Python tkinter library. (It crashes if you use it from Python as well.) However, the current version of PyPlot does not use tkagg by default anymore on MacOS for this reason. The only way it could be using tkagg is if you "forced" it to by specifying it in either your You can find the location of your matplotlibrc file by doing:
See if it has a line like
|
Hmm... nothing with backend seems to be listed Curious!
|
The other reason it would try Does
work? |
Great! That installed nicely and that does work! Results:
restart julia (probably not necessary, but I was being careful...)
|
@dgleich, that's great, but I'm still confused — the function |
I had a feeling you'd be as confused as I was about that .. I spent a few minutes trying to debug at the computer having the problem last night, but didn't quite get there. I'll take another look tonight and see what I can dig out. My quick guess is that default is coming back 'none' ? |
Oh, right, it only installs qt5 automatically if that GUI was explicitly requested, not if it goes through the search list. I should change that, maybe at least add an optional prompt to install it. |
Okay, I've pushed a patch which forces it to install pyqt on MacOS if nothing else was installed and you are using Conda, and it at least prints a warning if you try to make it use TkAgg on MacOS. |
Fantastic! I think that's the right call. Also, got to check that computer right now... In this case, the default backend that comes from Matplotlib is:
|
I am using Mac OS 10.14.6 and Julia 1.1.1.
I just executed a script in the Julia terminal, imported PyPlot, and got logged out of my computer upon executing plot. After logging back in, I was able to recover my Julia session which said:
2019-08-09 14:30:47.868 julia[5602:179629] HIToolbox: received notification of WindowServer event port death.
2019-08-09 14:30:47.868 julia[5602:179629] port matched the WindowServer port created in BindCGSToRunLoop
I'll restart my computer to see if this persists, but something in the pipeline seems to have gone adrift!
The text was updated successfully, but these errors were encountered: