Closed chetan-set closed 2 years ago
I get the same crash on an M1 system, python 3.10.4 using the installer on python.org (and likewise with python 3.11b1)
Not sure if this is relevant, but I only got crashes when selecting a file to open, not when I cancelled the dialog.
An issue an to Tk tracker has a similar traceback, but in an issue that it fixed: https://core.tcl-lang.org/tk/tktview/6c88c5270a8f8a07a0a2
I've filed https://core.tcl-lang.org/tk/tktview/ef5d3e29a429a48f2903e0661085b42475a58969 in the Tk tracker in because this might be a bug in the Tk library.
The Tk maintainers confirm this is a bug in Tk, and one that's fixed in their tree (but not yet out in a release).
I'm closing this issue because there's nothing we can do other than wait for a release of Tk.
Thank you Ronald
For information, I have the same error, I have found a solution, by adding before the openfiledialog root = tk.Tk() In this case I avoid the error.
I get the same crash on an M1 system, python 3.10.4 using the installer on python.org (and likewise with python 3.11b1)
Not sure if this is relevant, but I only got crashes when selecting a file to open, not when I cancelled the dialog.
Oh This is exactly what I am facing right now!
I've filed https://core.tcl-lang.org/tk/tktview/ef5d3e29a429a48f2903e0661085b42475a58969 in the Tk tracker in because this might be a bug in the Tk library.
The Tk maintainers confirm this is a bug in Tk, and one that's fixed in their tree (but not yet out in a release).
I'm closing this issue because there's nothing we can do other than wait for a release of Tk.
It turns out that the issue was not already fixed. I submitted a fix for it on that ticket, and it has been accepted, but Tcl/Tk 8.6.14 is likely still a few months away. I have opened #108693 in case Python is interested in applying the fix to the bundled Tcl/Tk 8.6.13 in the macOS installer.
Thanks for the PR. The fix for Tk in the macOS installer has now been merged for release in 3.13.0a2, 3.12.1, and 3.11.7.
Crash report
This seems to be an intel mac issue only.
I have a python program that allows users to repeatedly press a key that will create a tkinter window where they can open an image an manipulate it.
The problem is, by the 3rd time, the program always crashes.
I can't figure out why..
I have simplified the code below:
Error messages
Linked PRs