Closed
Description
The following causes a segmentation fault when using the MacOS X backend:
In [1]: %matplotlib osx
In [2]: import matplotlib.pyplot as plt
In [3]: fig = plt.figure()
In [4]: timer = fig.canvas.new_timer(interval=100)
In [5]: timer.single_shot = True
In [6]: def test():
...: print("TEST")
...:
In [7]: timer.add_callback(test)
In [8]: timer.start()
In [9]: TEST
In [9]:
In [9]: timer.start()
Segmentation fault: 11
This works fine for the Qt5 backend. I'm using Matplotlib 2.1.