-
-
Notifications
You must be signed in to change notification settings - Fork 31.2k
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
Test_tkinter crash on macOS #93042
Comments
I can reproduce this with 3.11b5 on my 2019 Intel MacBook Pro, running macOS 12.2.1. Tk info:
Full report
|
(Ronald, I took the liberty to collapse your crash dump inside a |
If I use my Homebrew supplied Tcl/Tk, FTR, the Tk info is equal to that from the python.org binary. Tcl 8.6, Tk 8.6, patchlevel 8.6.12. UPDATE: I can get a segfault with Homebrew supplied Tcl/Tk as well. Footnotes
|
FTR, it also crashes with python.org supplied 3.9 and 3.8. |
It is not deterministic; it mostly segfaults right after the first Also, |
This could be a bug in Tcl/Tk, not the That said, I haven't tried debugging this and it is far from sure at this time what the bug is. |
Has this been fixed? I cannot reproduce this on a Mac Mini M1 |
I just checked and still get this crash. Which python version do you use for testing and which version of Tk is used? In particular, what's the out of: python3 -m test.pythoninfo | grep -e sys.prefix -e sys.version -e tkinter |
I can reproduce this with Python’s bundled Tcl/Tk 8.6.12 on Intel. If I patch libtk8.6.dylib to not call |
Sorry, the crash is still possible in Tk Aqua 8.6.13. The change I mentioned does seem to prevent the crash, but it does not eliminate it completely. |
The cause of this crash is the same as the one in #92603 and likely other reports. I replied to https://core.tcl-lang.org/tk/info/ef5d3e29a429 (the ticket @ronaldoussoren opened) with an explanation of the root cause. I also provided a patch, however the Tk Aqua maintainers have yet to review it. The test.test_tkinter.test_widgets.ToplevelTest.test_configure_screen error in output.txt from @novialriptide is a separate issue which has since been fixed: #104461 |
@chrstphrchvz any update on this? I guess my crash is related too:
|
@RazaGR I believe that is a separate issue. I notice you have opened a ticket for it upstream at https://core.tcl-lang.org/tk/info/bec431fc689e so I will probably comment on it there. |
This crash has been fixed upstream for Tk 8.6.14, and the fix is backported for inclusion in the Python 3.11.7 and 3.12.1 installers: #108693 |
Thanks for the update and for the fix in Tk. That means the issue is fixed for us, and this issue can be closed. |
Crash report
With both python 3.10.4 and 3.11b1 I get a hard crash when running the tkinter test suite:
Error messages
Crash dump
Your environment
Both python versions were installed using the installer on www.python.org.
Tk info from test.pytoninfo:
The text was updated successfully, but these errors were encountered: