-
-
Notifications
You must be signed in to change notification settings - Fork 151
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
macOS Tk failing from release 20220222 onwards. #132
Comments
Thanks for the report! I'm able to reproduce this on an M1 using macOS 12. That seemingly rules out a macOS targeting bug. My stack from a REPL is slightly different:
The crash seemingly occurs on this line in It doesn't look like CPython changed anything major with regards to tk integration between 3.10.0 and 3.10.2. So my money is on this being some kind of regression between tk 8.6.10 and 8.6.12. I'm not great at Obj-C debugging. But given this seemingly has to do with tk's internal Obj-C message handling for It might also be worth reproducing without a statically linked tcl/tk. While static linking should be supported, it isn't common and has a history of tickling bugs due to common assumptions that libraries are shared libraries. |
CPython 3.10.1 did upgrade tcl/tk to 8.6.12. So it is good they are running the same version as us with their official macOS installers. I looked at the CPython tcl/tk macOS build code and didn't see any glaring differences beyond the static/shared library difference. |
I compiled tk with
So it crashes on a |
I have a release staged with this fix at https://github.com/indygreg/python-build-standalone/releases/tag/20220630. Should hopefully remove the draft label within a few hours once PyOxidizer CI comes back clean. |
Wow, thank you very much for such a speedy fix. I do confirm that Tk based applications work nicely on macOS (and Windows and Linux) now! Amazing! :-) |
Hey @indygreg,
It's me again, exploring your wonderful project, and experiencing a
tkinter
failure on macOS.My minimal test:
Works up to 20220222. On that release, with 3.10.2, fails with:
What else I tested:
Failing -- macOS 10.14.6:
pgo
,lto
,pgo+lto
, anddebug
builds.pgo
andlto
builds.pgo
build of the most recent release, 20220528.Working -- CentOS 7 Linux and Windows, both x86-64:
Release notes for 20220222 indicate that Tcl/Tk was upgraded from 8.6.10 to 8.6.12, so this provides at least some explanation to my observations.
Can you please help in getting Tk back in shape on macOS? How can I assist in the process?
Again, thanks a lot for sharing the project and, in advance, for helping address this.
The text was updated successfully, but these errors were encountered: