Issue 31805: support._is_gui_available() hangs on x86-64 Sierra 3.6/3.x buildbot (original) (raw)

Issue31805

Created on 2017-10-17 19:47 by vstinner, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (6)
msg304518 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2017-10-17 19:47
http://buildbot.python.org/all/#/builders/20/builds/11 Re-running test 'test_ttk_guionly' in verbose mode Timeout (0:15:00)! Thread 0x00007fffc0cd73c0 (most recent call first): File "/Users/buildbot/buildarea/3.6.billenstein-sierra/build/Lib/test/support/__init__.py", line 485 in _is_gui_available File "/Users/buildbot/buildarea/3.6.billenstein-sierra/build/Lib/test/support/__init__.py", line 531 in requires File "/Users/buildbot/buildarea/3.6.billenstein-sierra/build/Lib/test/test_ttk_guionly.py", line 8 in File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed File "<frozen importlib._bootstrap_external>", line 678 in exec_module File "<frozen importlib._bootstrap>", line 665 in _load_unlocked File "<frozen importlib._bootstrap>", line 955 in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 971 in _find_and_load File "<frozen importlib._bootstrap>", line 994 in _gcd_import File "/Users/buildbot/buildarea/3.6.billenstein-sierra/build/Lib/importlib/__init__.py", line 126 in import_module File "/Users/buildbot/buildarea/3.6.billenstein-sierra/build/Lib/test/libregrtest/runtest.py", line 160 in runtest_inner File "/Users/buildbot/buildarea/3.6.billenstein-sierra/build/Lib/test/libregrtest/runtest.py", line 137 in runtest File "/Users/buildbot/buildarea/3.6.billenstein-sierra/build/Lib/test/libregrtest/main.py", line 290 in rerun_failed_tests File "/Users/buildbot/buildarea/3.6.billenstein-sierra/build/Lib/test/libregrtest/main.py", line 539 in _main File "/Users/buildbot/buildarea/3.6.billenstein-sierra/build/Lib/test/libregrtest/main.py", line 509 in main File "/Users/buildbot/buildarea/3.6.billenstein-sierra/build/Lib/test/libregrtest/main.py", line 584 in main File "/Users/buildbot/buildarea/3.6.billenstein-sierra/build/Lib/test/__main__.py", line 2 in File "/Users/buildbot/buildarea/3.6.billenstein-sierra/build/Lib/runpy.py", line 85 in _run_code File "/Users/buildbot/buildarea/3.6.billenstein-sierra/build/Lib/runpy.py", line 193 in _run_module_as_main make: *** [buildbottest] Error 1
msg304519 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2017-10-17 19:48
Same issue on x86-64 Sierra 3.x: http://buildbot.python.org/all/#/builders/14/builds/21
msg304523 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2017-10-17 19:53
Matt: Would you like to look at your buildbot to check if something is wrong with Tkinter? The code hangs on the CGMainDisplayID() call in support._is_gui_available(): from ctypes import cdll, c_int, pointer, Structure from ctypes.util import find_library app_services = cdll.LoadLibrary(find_library("ApplicationServices")) app_services.CGMainDisplayID()
msg304541 - (view) Author: Matt Billenstein (mattbillenstein) Date: 2017-10-17 22:29
Did some debugging by sticking a couple prints in support.is_gui_available() and it appears everything is fine up until the call to app_services.SetFrontProcess() -- this is returning error code -606 which is defined in: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers/MacErrors.h: appIsDaemon = -606, /*app is BG-only, and launch flags disallow this*/ What this means exactly or how to fix it, I don't know...
msg304542 - (view) Author: Matt Billenstein (mattbillenstein) Date: 2017-10-17 22:30
Note, that's running ./python.exe Lib/tests/test_tk.py from a Terminal when logged into the gui...
msg306872 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2017-11-24 01:29
The issue is gone.
History
Date User Action Args
2022-04-11 14:58:53 admin set github: 75986
2017-11-24 01:29:19 vstinner set status: open -> closedresolution: out of datemessages: + stage: resolved
2017-10-17 22:30:26 mattbillenstein set messages: +
2017-10-17 22:29:34 mattbillenstein set messages: +
2017-10-17 19:53:25 vstinner set nosy: + mattbillensteinmessages: +
2017-10-17 19:48:10 vstinner set title: support._is_gui_available() hangs on x86-64 Sierra 3.6 buildbot -> support._is_gui_available() hangs on x86-64 Sierra 3.6/3.x buildbotmessages: + components: + Tkinterversions: + Python 3.6, Python 3.7
2017-10-17 19:47:15 vstinner create