-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
"Windows fatal Exception: access violation" while testing 3.13.0b1 free-threading build (related to tkinter ?) #118973
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
Comments
maybe related to this still missing piece ? colesbury/nogil-3.12@78825e0508 |
simply importing from tkinter.filedialog import askopenfile crashes 3.13t for me, which is imported in the sqlite_bro project. hope this helps narrow down the issue. |
By the look of current early state of free-threading, we may assume the tkinter/free-threading is rather a 2025 question, with uncertain fate. |
+1 for this happening on Windows only, version 3.13.0 (non-beta, release day build). I see exactly the same error as @python-zhong when running Platform details:
|
@zooba The official Windows installer (with free-threading binaries) only includes a Do you know why that's happening? |
As noted in #125179 (comment), I have run tkinter and IDLE on debug + free-threading builds since last March. But I never tried the installers. Of course, PCbuild/amd64 has a full set of _xyz_d.cp314t-win_amd64.ext files. I'm sorry I did not notice this issue before. |
Yep, figured out the free-threading build on the same Windows box (sorry about the delay, Visual Studio noob), and when compiled locally Admittedly, I've just compiled Cpython for the first time yesterday -- but, if this is simple to fix, I'd be happy to submit a PR for it if that would help? |
Yeah, looks like I copied the list of extensions from the |
(cherry picked from commit 9332a6f) Co-authored-by: Steve Dower <[email protected]>
(cherry picked from commit 9332a6f) Co-authored-by: Steve Dower <[email protected]>
Necrobump. I just hit something like this at @beartype. For unknown reasons, @beartype's ============================= test session starts =============================
platform win32 -- Python 3.13.0, pytest-8.3.3, pluggy-1.5.0 -- D:\a\beartype\beartype\.tox\py313-coverage\Scripts\python.exe
cachedir: .tox\py313-coverage\.pytest_cache
rootdir: D:\a\beartype\beartype
configfile: pytest.ini
plugins: anyio-4.6.2.post1, typeguard-4.4.1
Windows fatal exception: access violation
Current thread 0x00001508 (most recent call first):
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\numpy\core\getlimits.py", line 52 in __init__
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\numpy\core\getlimits.py", line 230 in _register_known_types
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\numpy\__init__.py", line 235 in <module>
File "<frozen importlib._bootstrap>", line 488 in _call_with_frames_removed
File "<frozen importlib._bootstrap_external>", line 1022 in exec_module
File "<frozen importlib._bootstrap>", line 935 in _load_unlocked
File "<frozen importlib._bootstrap>", line 1331 in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1360 in _find_and_load
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\_pytest\outcomes.py", line 281 in importorskip
File "D:\a\beartype\beartype\beartype_test\_util\mark\pytskip.py", line 468 in _skip_if_callable_raises_exception
File "D:\a\beartype\beartype\beartype_test\_util\mark\pytskip.py", line 402 in skip_unless_module
File "D:\a\beartype\beartype\beartype_test\_util\mark\pytskip.py", line 352 in skip_unless_package
File "D:\a\beartype\beartype\beartype_test\a00_unit\a40_api\test_api_cave.py", line 707 in <module>
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\_pytest\assertion\rewrite.py", line 184 in exec_module
File "<frozen importlib._bootstrap>", line 935 in _load_unlocked
File "<frozen importlib._bootstrap>", line 1331 in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1360 in _find_and_load
File "<frozen importlib._bootstrap>", line 1387 in _gcd_import
File "C:\hostedtoolcache\windows\Python\3.13.0\x64\Lib\importlib\__init__.py", line 88 in import_module
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\_pytest\pathlib.py", line 582 in import_path
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\_pytest\python.py", line 493 in importtestmodule
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\_pytest\python.py", line 546 in _getobj
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\_pytest\python.py", line 284 in obj
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\_pytest\python.py", line 562 in _register_setup_module_fixture
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\_pytest\python.py", line 549 in collect
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\_pytest\runner.py", line 389 in collect
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\_pytest\runner.py", line 341 in from_call
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\_pytest\runner.py", line 391 in pytest_make_collect_report
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\pluggy\_callers.py", line 103 in _multicall
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\pluggy\_manager.py", line 120 in _hookexec
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\pluggy\_hooks.py", line 513 in __call__
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\_pytest\runner.py", line 567 in collect_one_node
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\_pytest\main.py", line 835 in _collect_one_node
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\_pytest\main.py", line 970 in genitems
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\_pytest\main.py", line 975 in genitems
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\_pytest\main.py", line 975 in genitems
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\_pytest\main.py", line 975 in genitems
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\_pytest\main.py", line 975 in genitems
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\_pytest\main.py", line 809 in perform_collect
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\_pytest\main.py", line 347 in pytest_collection
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\pluggy\_callers.py", line 103 in _multicall
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\pluggy\_manager.py", line 120 in _hookexec
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\pluggy\_hooks.py", line 513 in __call__
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\_pytest\main.py", line 336 in _main
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\_pytest\main.py", line 283 in wrap_session
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\_pytest\main.py", line 330 in pytest_cmdline_main
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\pluggy\_callers.py", line 103 in _multicall
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\pluggy\_manager.py", line 120 in _hookexec
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\pluggy\_hooks.py", line 513 in __call__
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\_pytest\config\__init__.py", line 175 in main
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\_pytest\config\__init__.py", line 201 in console_main
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\pytest\__main__.py", line 9 in <module>
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\coverage\execfile.py", line 208 in run
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\coverage\cmdline.py", line 858 in do_run
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\coverage\cmdline.py", line 681 in command_line
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\coverage\cmdline.py", line 970 in main
File "D:\a\beartype\beartype\.tox\py313-coverage\Lib\site-packages\coverage\__main__.py", line 10 in <module>
File "<frozen runpy>", line 88 in _run_code
File "<frozen runpy>", line 198 in _run_module_as_main
collecting ... py313-coverage: exit 3221225477 (3.11 seconds) D:\a\beartype\beartype\.tox\py313-coverage\tmp> D:\a\beartype\beartype\.tox\py313-coverage\Scripts\python.exe -m coverage run -m pytest --maxfail=1 -p no:asyncio -p no:xvfb D:\a\beartype\beartype pid=1876
.pkg: _exit> python C:\hostedtoolcache\windows\Python\3.13.0\x64\Lib\site-packages\pyproject_api\_backend.py True hatchling.build
Exception ignored on threading shutdown:
Traceback (most recent call last):
File "C:\hostedtoolcache\windows\Python\3.13.0\x64\Lib\threading.py", line 1524, in _shutdown
if _main_thread._handle.is_done() and _is_main_interpreter():
SystemError: <method 'is_done' of '_thread._ThreadHandle' objects> returned a result with an exception set
py313-coverage: FAIL code 3221225477 (376.20=setup[372.55]+cmd[0.01,0.52,3.11] seconds)
evaluation failed :( (376.30 seconds) Tkinter doesn't appear to be implicated here. Threading, however, does. Does the GitHub Actions Windows runner actually ship a free-threading build of Python 3.13? That... would be super-weird. Since I can't meaningfully parse the above stacktrace, I'm reluctantly blacklisting the Python 3.13 + Windows combo in our build matrix. Weep for @beartype's QA, GitHub! 😭 |
This commit is the first (and hopefully last) in a commit chain attempting to circumvent spurious test failures induced by what appears to be a GIL-free "free-threading" build of Python 3.13.0 under the GitHub Actions-based Windows runner, as described at upstream CPython issue python/cpython#118973. (*Maligned diction aligned with maladiction!*)
No it doesn't. The error message:
Looks the same as in #125842, which is fixed in the upcoming 3.13.1 release. |
Wondressness! Thanks so much for the heads up, @colesbury. Google came up surprisingly empty when I grepped that |
I think this is fixed now. |
indeed... Free-threading is working now on this test, in 3.14.0a6 on windows |
Crash report
What happened?
doing pytest on my github repository "sqlite-bro" , with Python-3.13.0b1 augmented per:
I get a crash
on 3.13.0b1 patched the same but not Free-threading all seems ok
I did that test because IDLE doesn't want to start and doesn't say why.
Package set used:
CPython versions tested on:
CPython main branch
Operating systems tested on:
Windows
Output from running 'python -VV' on the command line:
Python 3.13.0b1 (tags/v3.13.0b1:2268289, May 8 2024, 12:31:50) [MSC v.1938 64 bit (AMD64)]
Linked PRs
The text was updated successfully, but these errors were encountered: