Closed cookpa closed 2 months ago
I haven't seen this in some time so I suspect it's fixed
Still seeing random Windows test failures - can't rule out that this won't lead to other problems
Despite multiple efforts to fix intermittent test failures, they are still occurring. It might be specific to the Github Actions runner environment, but I can't be sure of that. So I am pinning this issue so that Windows users can be aware.
Now there's a persistent test failure on all Python versions:
Running core tests
Matplotlib is building the font cache; this may take a moment.
test__add__ (__main__.TestClass_ANTsImage) ... Windows fatal exception: access violation
Current thread 0x00001458 (most recent call first):
File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\ants\core\ants_image_io.py", line 244 in image_header_info
File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\ants\core\ants_image_io.py", line 327 in image_read
File "D:\a\ANTsPy\ANTsPy\tests\test_core_ants_image.py", line 27 in setUp
File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\unittest\case.py", line 547 in _callSetUp
File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\unittest\case.py", line 588 in run
File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\unittest\case.py", line 651 in __call__
File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\unittest\suite.py", line 122 in run
File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\unittest\suite.py", line 84 in __call__
File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\unittest\suite.py", line 122 in run
File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\unittest\suite.py", line 84 in __call__
File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\unittest\runner.py", line 184 in run
File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\unittest\main.py", line 271 in runTests
File "C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\unittest\main.py", line 101 in __init__
File "D:\a\ANTsPy\ANTsPy\tests\common.py", line 15 in run_tests
File "D:\a\ANTsPy\ANTsPy\tests\test_core_ants_image.py", line 689 in <module>
tests/run_tests.sh: line 24: 2032 Segmentation fault $PYCMD test_core_ants_image.py $@
It appears to start failing when the runner version is changed from '2.316.1' to '2.317.0'. Can't see any obvious reason why
Windows builds working pretty consistently recently - closing for now
The
test_core_ants_image_io.py
script randomly fails on Github Windows runners with an access violation (0xC0000005, decimal -1073741819). I don't know if this is just a runner problem (out of disk space?) or some wider issue with Windows I/O.Re-running the failed job solves the problem.