-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[mac intel 16' Monterey][Python 3.10.4][tkinter 8.6] Calling tkinter askOpenfilename crashes when repeatedly creating a window #92603
Comments
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, |
Oh This is exactly what I am facing right now! |
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. |
This crash has been reported several times, particularly by Tkinter users (see e.g. python/cpython#92603); it will be fixed in Tk 8.6.14.
Add upstream Tk patches for three problems affecting tkinter users: - Update macOS installer to include a fix accepted by upstream Tcl/Tk for a crash encountered after the first :meth:`tkinter.Tk` instance is destroyed. (gh-92603) - Update macOS installer to include an upstream Tcl/Tk fix for the ``ttk::ThemeChanged`` error encountered in Tkinter. (gh-71383) - Update macOS installer to include an upstream Tcl/Tk fix for the ``Secure coding is not enabled for restorable state!`` warning encountered in Tkinter on macOS 14 Sonoma. (gh-110950) Co-authored-by: Ned Deily <[email protected]>
…111041) Add upstream Tk patches for three problems affecting tkinter users: - Update macOS installer to include a fix accepted by upstream Tcl/Tk for a crash encountered after the first :meth:`tkinter.Tk` instance is destroyed. (pythongh-92603) - Update macOS installer to include an upstream Tcl/Tk fix for the ``ttk::ThemeChanged`` error encountered in Tkinter. (pythongh-71383) - Update macOS installer to include an upstream Tcl/Tk fix for the ``Secure coding is not enabled for restorable state!`` warning encountered in Tkinter on macOS 14 Sonoma. (pythongh-110950) (cherry picked from commit d67f947) Co-authored-by: Christopher Chavez <[email protected]> Co-authored-by: Ned Deily <[email protected]>
…111041) Add upstream Tk patches for three problems affecting tkinter users: - Update macOS installer to include a fix accepted by upstream Tcl/Tk for a crash encountered after the first :meth:`tkinter.Tk` instance is destroyed. (pythongh-92603) - Update macOS installer to include an upstream Tcl/Tk fix for the ``ttk::ThemeChanged`` error encountered in Tkinter. (pythongh-71383) - Update macOS installer to include an upstream Tcl/Tk fix for the ``Secure coding is not enabled for restorable state!`` warning encountered in Tkinter on macOS 14 Sonoma. (pythongh-110950) (cherry picked from commit d67f947) Co-authored-by: Christopher Chavez <[email protected]> Co-authored-by: Ned Deily <[email protected]>
… (#112293) Add upstream Tk patches for three problems affecting tkinter users: - Update macOS installer to include a fix accepted by upstream Tcl/Tk for a crash encountered after the first :meth:`tkinter.Tk` instance is destroyed. (gh-92603) - Update macOS installer to include an upstream Tcl/Tk fix for the ``ttk::ThemeChanged`` error encountered in Tkinter. (gh-71383) - Update macOS installer to include an upstream Tcl/Tk fix for the ``Secure coding is not enabled for restorable state!`` warning encountered in Tkinter on macOS 14 Sonoma. (gh-110950) (cherry picked from commit d67f947) Co-authored-by: Christopher Chavez <[email protected]> Co-authored-by: Ned Deily <[email protected]>
… (#112294) Add upstream Tk patches for three problems affecting tkinter users: - Update macOS installer to include a fix accepted by upstream Tcl/Tk for a crash encountered after the first :meth:`tkinter.Tk` instance is destroyed. (gh-92603) - Update macOS installer to include an upstream Tcl/Tk fix for the ``ttk::ThemeChanged`` error encountered in Tkinter. (gh-71383) - Update macOS installer to include an upstream Tcl/Tk fix for the ``Secure coding is not enabled for restorable state!`` warning encountered in Tkinter on macOS 14 Sonoma. (gh-110950) (cherry picked from commit d67f947) Co-authored-by: Christopher Chavez <[email protected]> Co-authored-by: Ned Deily <[email protected]>
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. |
…111041) Add upstream Tk patches for three problems affecting tkinter users: - Update macOS installer to include a fix accepted by upstream Tcl/Tk for a crash encountered after the first :meth:`tkinter.Tk` instance is destroyed. (pythongh-92603) - Update macOS installer to include an upstream Tcl/Tk fix for the ``ttk::ThemeChanged`` error encountered in Tkinter. (pythongh-71383) - Update macOS installer to include an upstream Tcl/Tk fix for the ``Secure coding is not enabled for restorable state!`` warning encountered in Tkinter on macOS 14 Sonoma. (pythongh-110950) Co-authored-by: Ned Deily <[email protected]>
…111041) Add upstream Tk patches for three problems affecting tkinter users: - Update macOS installer to include a fix accepted by upstream Tcl/Tk for a crash encountered after the first :meth:`tkinter.Tk` instance is destroyed. (pythongh-92603) - Update macOS installer to include an upstream Tcl/Tk fix for the ``ttk::ThemeChanged`` error encountered in Tkinter. (pythongh-71383) - Update macOS installer to include an upstream Tcl/Tk fix for the ``Secure coding is not enabled for restorable state!`` warning encountered in Tkinter on macOS 14 Sonoma. (pythongh-110950) Co-authored-by: Ned Deily <[email protected]>
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
The text was updated successfully, but these errors were encountered: