Please! let this throw an exception: Tcl_AsyncDelete: async handler deleted by the wrong thread
#113770
Labels
Tcl_AsyncDelete: async handler deleted by the wrong thread
#113770
Crash report
What happened?
Hello
thank you very much for your great and useful work.
I have a very common and small issue:
I one uses the Tk Backend (e.g. with Matplotlib), then it often happens (as google shows), that the Python Script crashes(!) and just displays:
Tcl_AsyncDelete: async handler deleted by the wrong thread
Unfortunately, this is the worst case, because we can not catch this bug: it just stops the Script and does not throw an Tcl_AsyncDelete 😞
So, please: if Python gets into an Tcl_AsyncDelete issue, then, please, trow an exception, so that the script can act on it!
Thanks a lot, kind regards,
Thomas
(It is a shame that the code handling Tcl_AsyncDelete was not developed as an exception from the beginning)
CPython versions tested on:
3.11
Operating systems tested on:
Windows
Output from running 'python -VV' on the command line:
Python 3.11.4 (tags/v3.11.4:d2340ef, Jun 7 2023, 05:45:37) [MSC v.1934 64 bit (AMD64)]
The text was updated successfully, but these errors were encountered: