Skip to content

[Bug]: tkAgg (and others) event look issue #26714

Open
@2sn

Description

@2sn

Bug summary

tk hangs/crashes if windows are closed not in reverse order of opened. This happens in ipython shell.

I have no other issues with ipython, only with matplotlib.

Code for reproduction

%matplotlib tk
figure()
from matplotlib.pylab import *
ion()
plot([0,1])
figure()
plot([0,1])

# Then close Window 1.

Actual outcome

Window 2 becomes non-responsive.

Expected outcome

There should be no crash irrespective in what order windows are closed.

In some cases the shell hangs entirely, and the terminal window has to be closed (^C or ^Z do not work).

Additional information

It happens 100% of the time.

Operating system

Fedora 38

Matplotlib Version

3.7.2

Matplotlib Backend

TkAgg

Python version

3.11.4 (build from source)

Jupyter version

8.15.0 (installed from pip)

Installation

pip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions