Skip to content

BUG: Windows-ARM64 tests failing in linalg.cond #30089

@broesler

Description

@broesler

Describe the issue:

In my scipy PR #23292, I am getting failing CI tests in Windows-ARM64. The workers crash in the numpy.linalg.cond function call.

Failure occurs on the np.linalg.cond call in this test.

Reproduce the code example:

A = random_nonsingular_matrix  # 2D scipy.sparse.csc_array
cond_A = np.linalg.cond(A.toarray(), p=1)

Error message:

Windows fatal exception: access violation

Thread 0x000018e0 (most recent call first):
  File "C:\hostedtoolcache\windows\Python\3.12.10\arm64\Lib\site-packages\execnet\gateway_base.py", line 534 in read
  File "C:\hostedtoolcache\windows\Python\3.12.10\arm64\Lib\site-packages\execnet\gateway_base.py", line 567 in from_io
  File "C:\hostedtoolcache\windows\Python\3.12.10\arm64\Lib\site-packages\execnet\gateway_base.py", line 1160 in _thread_receiver
  File "C:\hostedtoolcache\windows\Python\3.12.10\arm64\Lib\site-packages\execnet\gateway_base.py", line 341 in run
  File "C:\hostedtoolcache\windows\Python\3.12.10\arm64\Lib\site-packages\execnet\gateway_base.py", line 411 in _perform_spawn

Current thread 0x00001ef4 (most recent call first):
  File "C:\hostedtoolcache\windows\Python\3.12.10\arm64\Lib\site-packages\numpy\linalg\_linalg.py", line 2035 in cond
  File "C:\a\scipy\scipy\build-install\Lib\site-packages\scipy\sparse\linalg\tests\test_cond1est.py", line 257 in test_random_nonsingular_matrix
... rest of traceback.

Python and NumPy Versions:

Output from start of the pytest run:

============================= test session starts =============================
platform win32 -- Python 3.12.10, pytest-8.4.2, pluggy-1.6.0
rootdir: C:\a\scipy\scipy
configfile: pytest.ini
plugins: hypothesis-6.142.4, timeout-2.4.0, xdist-3.8.0
created: 2/2 workers
2 workers [75182 items]

Runtime Environment:

No response

Context for the issue:

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions