invalid command name "..._on_timer" in FuncAnimation for (too) small interval

Bug #1666230 reported by knut on 2017-02-20
This bug affects 1 person
Affects Status Importance Assigned to Milestone
matplotlib (Ubuntu)

Bug Description

To get a high frame rate for my animation I use a low value for 'interval' for 'FuncAnimation'. If interval is too low p.ex. 10, I get the following Exception, when (and only when) I close the window:

invalid command name "140613997300232_on_timer"
    while executing
    ("after" script)
Traceback (most recent call last):
  File "./", line 93, in <module>
  File "env/lib/python3.5/site-packages/matplotlib/", line 253, in show
    return _show(*args, **kw)
  File "env/lib/python3.5/site-packages/matplotlib/", line 163, in __call__
  File "env/lib/python3.5/site-packages/matplotlib/backends/", line 610, in show
    self.canvas.manager.window.attributes('-topmost', 1)
AttributeError: 'NoneType' object has no attribute 'attributes'


This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.