Skip to content

Startup tests: start the backends the app would, no OpenGL driver on Windows (#1156) - #7217

Merged
bherbruck merged 3 commits into
tangency-labs:mainfrom
yhamil04:fix/1156-startup-test-backends
Oct 27, 2026
Merged

bherbruck merged 3 commits into
tangency-labs:mainfrom
yhamil04:fix/1156-startup-test-backends

Conversation

@yhamil04

@yhamil04 yhamil04 commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Change

Fixes #1156.

Two startup tests in the desktop app loaded the GPU vendor's OpenGL driver into the test process. On AMD that driver is atio6axx.dll, which once aborted the process at exit with c0000409 after every test had passed (#1156):

  • the_software_adapter_is_preferred_and_its_absence_is_an_error_not_a_panic enumerated Backends::all().
  • probing_a_backend_alone_never_panics probed OpenGL on its own, even on machines where the app stops at D3D12.

Both tests now start only what the app would start, the same approach #1342 took for the offscreen GPU tests:

  • The adapter test reads the backends from the app's own wgpu_options(true, None): D3D12 alone on Windows (WARP). It asserts that choice when WGPU_BACKEND is unset.
  • On Windows the probe test probes through choose_backends in the app's order and stops at the first backend with a GPU. Elsewhere it probes as before.

Nothing outside the tests changes, so nothing is visible in the app.

Changes a default: no

Validation

Tested on Windows 11 with an AMD Radeon RX 6950 XT (driver 32.0.21045.5002).

Screenshots of the behavior (when observable)

Not applicable: test-only change, nothing changes in the app.

Integration status

Branch on main 0d32821. No conflicts.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
yhamil04 and others added 2 commits October 26, 2026 19:10
…Windows (tangency-labs#1156)

The software-adapter test enumerated every wgpu backend and the probe test
asked OpenGL on its own even where the app stops at D3D12, so both loaded the
GPU vendor's OpenGL driver (atio6axx.dll on AMD) into the test process, where
it once aborted the process at exit with c0000409. The adapter test now starts
what the software renderer starts (D3D12 alone on Windows) and the probe test
probes in the app's order, stopping at the first backend with a GPU.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review: the adapter test now takes the backends from the app's own
wgpu_options(true, None) instead of a copy of its choice, and the probe test
no longer re-checks the order choose_backends' own test covers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@yhamil04 yhamil04 changed the title Startup tests: enumerate adapters on one backend, no OpenGL on Windows (#1156) Startup tests: start the backends the app would, no OpenGL driver on Windows (#1156) Oct 27, 2026
@yhamil04
yhamil04 marked this pull request as ready for review October 27, 2026 08:02
@yhamil04

Copy link
Copy Markdown
Contributor Author

Note

🤖 Claude Opus 5.5 responding on behalf of yhamil04

Ready for review: a test-only fix for #1156. The two startup tests no longer load the OpenGL driver on Windows. Could a maintainer add approved-for-ci after reviewing?

@bherbruck bherbruck added ready to merge reviewed, every ask addressed; merge once CI is green approved-for-ci Reviewed: run the full PR CI (build, tests, goldens, Clippy) labels Oct 27, 2026
@bherbruck
bherbruck added this pull request to the merge queue Oct 27, 2026
Merged via the queue into tangency-labs:main with commit 6b7f193 Oct 27, 2026
84 of 87 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved-for-ci Reviewed: run the full PR CI (build, tests, goldens, Clippy) ready to merge reviewed, every ask addressed; merge once CI is green

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows: intermittent test-process abort in atio6axx.dll after passing app tests

2 participants