-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
wx segfaulting on OSX travis tests #11578
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
With
which is slightly different. |
Can you copy-paste the script (e.g. directly from test_backends_interactive) and run it (setting MPLBACKEND to wx/wxagg)? |
Running import matplotlib
matplotlib.use('wxagg')
import sys
from matplotlib import pyplot as plt, rcParams
rcParams.update({
"webagg.open_in_browser": False,
"webagg.port_retries": 1,
})
fig = plt.figure()
ax = fig.add_subplot(111)
ax.plot([0, 1], [2, 3])
print(rcParams["backend"])
if rcParams["backend"].startswith("GTK3"):
fig.canvas.mpl_connect("draw_event", lambda event: sys.exit(0))
else:
timer = fig.canvas.new_timer(1)
timer.add_callback(fig.canvas.key_press_event, "q")
# Trigger quitting upon draw.
fig.canvas.mpl_connect("draw_event", lambda event: timer.start())
plt.show() pops up and then closes a window and prints an error to the screen:
|
Can you try with older wxpython releases then? |
Self-merging #11593 to unbreak the build, but someone should figure out whether this needs to be fixed (or not) before 3.0 goes out! |
Closing this as #11708 shows this is hanging rather than segfaulting now. |
See https://travis-ci.org/matplotlib/matplotlib/jobs/400499066#L1435
Can someone with a mac reproduce this locally?
The text was updated successfully, but these errors were encountered: