-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
Not able to run a tkinter program #146
Comments
Thanks for the report. Can confirm this fails on the latest 20221107 distributions. The x86_64-unknown-linux-gnu distribution fails for me on the
This program works with other Python builds on my system. So something is amiss. The There's possibly an upstream bug or two to report in here somewhere. But I don't know what until root cause is understood. |
Here's an excerpt from libxcb's configure:
I have no clue how to interpret any of it though. (I wish all configure scripts gave you concise reports of important metadata like this!) |
And from
|
OK. We compile tk with However, that code in tk ( I think the problem here is we build tcl/tk with support for threads? Is this somehow different from how the entire world builds tcl/tk? Note that I enabled threads in commit 169bdad. But sadly didn't leave any context. (Very uncharacteristic of me!) Commits around it were part of enabling tcl/tk to build on macOS. I wonder if I enabled threads for a reason or just saw they weren't enabled and figured enabling threads was a good idea? |
Hmmm. |
To add on to the debugging - I cannot reproduce when using xvfb in Docker or otherwise |
Could it perhaps be related to the change mentioned here? #95 (comment) |
After a git bisect testing against OP code, I found that this commit is the first bad commit. |
I am using the bazel/rules_python to compile our python code.
according to the configuration, we are using the
cpython-3.9.13+20220802-x86_64-unknown-linux-gnu-install_only.tar.gz as our python interpreter.
But as we are using the Tkinter, there is a segment fault during the runtime.
the code
the stack trace
according to other tickets, seems the python interpreter is already linked to the Tkinter.
Update
I was trying to use the debug version to know what happened in the core dump. but it is very strange that I am able to run this with python3.9d. it is very weird.
The text was updated successfully, but these errors were encountered: