Skip to content

Segmentation fault when starting a timer a second time (MacOS X backend) #9655

Closed
@astrofrog

Description

@astrofrog

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions