victory-gpu tests: shared_root_signatures_… fails in every full run (E_OUTOFMEMORY beside the pool and descriptor tests); its own process isn't enough #3659

Open
opened 2026-11-30 03:11:37 +00:00 by Trillazill · 2 comments
Trillazill commented 2026-11-30 03:11:37 +00:00 (Migrated from github.com)
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Trillazill on 2026-11-30T03:11:37Z.


pipeline::host::tests::shared_root_signatures_load_from_library_and_execute_across_pso_switches fails in every full run of cargo test --locked -p victory-gpu --lib on main (41adb551), and passes when run alone. It isn't a logic fault in the code it tests: the GPU tests beside it use up the host device's memory. A test-only fix in this one test doesn't cover it, so I'm filing what I found rather than a PR.

Machine: Ryzen 9 7900 (24 threads), Windows 11, an NVIDIA card. (CI's 4-vCPU runner runs fewer tests at a time, which may be why check doesn't show it.)

What fails: HostPipeline::new returns None at .expect("gfx1 PSO") / .expect("cs1 PSO"). With a temporary eprintln! in pipeline::refused::failed, the reason is:

failed compute: Error { code: HRESULT(0x8007000E), message: "Not enough memory resources are available to complete this operation." }

Which tests cause it. I ran it with libtest filters (cargo test -p victory-gpu --lib -q -- shared_root_signatures_load_from_library <module>::) and bisected:

beside failed
nothing (alone) 0 of 3
pipeline::, host::, shader_cache:: 0 of 3 each
descriptor:: 2 of 2 (3 of 3 with half the crate)
pool:: (also matches host::uav_pool::) 2 of 2
shadow::, watch::, streamline::, resource::, indirect::, draw::, queue::, list::, texture:: 0 of 2 each

Running it in a process of its own isn't enough. I tried the pattern host_heap_new_honors_env_dynamic_slots_on_host_device uses (and #3621 uses for an xmem test): the test runs itself again in a child with --exact --test-threads=1.

  • Beside descriptor::: 0 of 5 failures afterwards. Its pressure is per-process: descriptor::host's tests make view heaps of up to a million slots on the shared device.
  • Beside pool::: still 5 of 5. The child fails at cs1 PSO. The pool tests fill the card's memory (blocks up to the budget), and that pressure reaches another process too.
  • Full suite: still failing in 5 of 5.

So I didn't open a PR for that.

Others with the same symptom. Over those full runs, each of these failed at least once and passes alone: host::uav_pool::tests::host_list_uav_pool_lifecycle_retire_trim_and_info_queue, host::upq::tests::uploads_preserve_bytes_and_reuse_only_after_drawing, pipeline::host::tests::depth_bounds_pipeline_loads_and_filters_draws, watch::many_askers_tests::no_write_through_another_view_is_lost_between_askers.

A different one: host::card_steps::tests::places_written_after_sending_are_learned also fails in the full suite, and fails with --test-threads=1 too, while passing alone (3 of 3). So it depends on what an earlier test leaves behind, not on tests running at the same time.

Ways out, for whoever owns the GPU tests:

  1. A crate-wide lock that the tests which take a lot of the card's memory (pool, host::uav_pool, descriptor::host's million-slot heaps) and the ones that make pipelines on the real device hold. The crate has a dozen module-local locks (dxr::TEST_LOCK, uav_pool's SERIAL, texback::POOL_TEST_LOCK, ...) but none across modules.
  2. Have the pool tests size their budget from a small test figure rather than the card's own, so they never take most of its memory.
  3. Short of either, --test-threads in the documented test command. cargo test --locked -p victory-gpu --lib -- --test-threads=1 (63 s here, against 26 s) passes shared_root_signatures_… and the others above. What's left is card_steps and every_switch_….

The every_switch_of_the_translator_is_in_the_key failure that also shows up is separate (a stale key entry; #3385 / #3530).

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:6688013690 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3659). Originally posted by [Trillazill](https://github.com/Trillazill) on 2026-11-30T03:11:37Z. --- `pipeline::host::tests::shared_root_signatures_load_from_library_and_execute_across_pso_switches` fails in every full run of `cargo test --locked -p victory-gpu --lib` on main (41adb551), and passes when run alone. It isn't a logic fault in the code it tests: the GPU tests beside it use up the host device's memory. A test-only fix in this one test doesn't cover it, so I'm filing what I found rather than a PR. **Machine:** Ryzen 9 7900 (24 threads), Windows 11, an NVIDIA card. (CI's 4-vCPU runner runs fewer tests at a time, which may be why `check` doesn't show it.) **What fails:** `HostPipeline::new` returns `None` at `.expect("gfx1 PSO")` / `.expect("cs1 PSO")`. With a temporary `eprintln!` in `pipeline::refused::failed`, the reason is: ``` failed compute: Error { code: HRESULT(0x8007000E), message: "Not enough memory resources are available to complete this operation." } ``` **Which tests cause it.** I ran it with libtest filters (`cargo test -p victory-gpu --lib -q -- shared_root_signatures_load_from_library <module>::`) and bisected: | beside | failed | | --- | --- | | nothing (alone) | 0 of 3 | | `pipeline::`, `host::`, `shader_cache::` | 0 of 3 each | | `descriptor::` | 2 of 2 (3 of 3 with half the crate) | | `pool::` (also matches `host::uav_pool::`) | 2 of 2 | | `shadow::`, `watch::`, `streamline::`, `resource::`, `indirect::`, `draw::`, `queue::`, `list::`, `texture::` | 0 of 2 each | **Running it in a process of its own isn't enough.** I tried the pattern `host_heap_new_honors_env_dynamic_slots_on_host_device` uses (and #3621 uses for an `xmem` test): the test runs itself again in a child with `--exact --test-threads=1`. - Beside `descriptor::`: 0 of 5 failures afterwards. Its pressure is per-process: `descriptor::host`'s tests make view heaps of up to a million slots on the shared device. - Beside `pool::`: still 5 of 5. The child fails at `cs1 PSO`. The `pool` tests fill the card's memory (blocks up to the budget), and that pressure reaches another process too. - Full suite: still failing in 5 of 5. So I didn't open a PR for that. **Others with the same symptom.** Over those full runs, each of these failed at least once and passes alone: `host::uav_pool::tests::host_list_uav_pool_lifecycle_retire_trim_and_info_queue`, `host::upq::tests::uploads_preserve_bytes_and_reuse_only_after_drawing`, `pipeline::host::tests::depth_bounds_pipeline_loads_and_filters_draws`, `watch::many_askers_tests::no_write_through_another_view_is_lost_between_askers`. **A different one:** `host::card_steps::tests::places_written_after_sending_are_learned` also fails in the full suite, and fails with `--test-threads=1` too, while passing alone (3 of 3). So it depends on what an earlier test leaves behind, not on tests running at the same time. **Ways out, for whoever owns the GPU tests:** 1. A crate-wide lock that the tests which take a lot of the card's memory (`pool`, `host::uav_pool`, `descriptor::host`'s million-slot heaps) and the ones that make pipelines on the real device hold. The crate has a dozen module-local locks (`dxr::TEST_LOCK`, `uav_pool`'s `SERIAL`, `texback::POOL_TEST_LOCK`, ...) but none across modules. 2. Have the `pool` tests size their budget from a small test figure rather than the card's own, so they never take most of its memory. 3. Short of either, `--test-threads` in the documented test command. `cargo test --locked -p victory-gpu --lib -- --test-threads=1` (63 s here, against 26 s) passes `shared_root_signatures_…` and the others above. What's left is `card_steps` and `every_switch_…`. The `every_switch_of_the_translator_is_in_the_key` failure that also shows up is separate (a stale key entry; #3385 / #3530).
github-actions[bot] commented 2026-11-30 03:11:47 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by github-actions[bot] on 2026-11-30T03:11:47Z.


Please attach both logs from the run that went wrong. Without them we can only guess. Paste %LOCALAPPDATA% into the address bar of File Explorer to get there.

  1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\.

Also say which GPU, Windows version (10 or 11)

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7267672360 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3659#issuecomment-7267672360). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-30T03:11:47Z. --- Please attach both logs from the run that went wrong. Without them we can only guess. Paste `%LOCALAPPDATA%` into the address bar of File Explorer to get there. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`. Also say which GPU, Windows version (10 or 11)
Trillazill commented 2026-11-30 04:02:10 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Trillazill on 2026-11-30T04:02:10Z.


A map for getting cargo test --workspace green. I ran the full suite on main (41adb551, 24-thread PC): 2170 passed, 8 failed. Each of the 8 has an open PR:

failing test fixed by
victory-formats bcpack::tests::oracle_parity_* (3) #3530 (also #2236)
xtask policy::tests::repository_passes_policy (frame_users.rs) #3530
victory-gpu shader_cache::tests::every_switch_of_the_translator_is_in_the_key #3530 / #3385
victory-gpu host::card_steps::tests::places_written_after_sending_are_learned #3668
victory-gpu host::menu::tests::a_change_is_saved_at_once_however_the_game_was_started #3618
victory-hle modules::xmem::tests::a_read_by_range_waits_only_for_a_remapping_that_meets_it #3621

#3530 also makes both clippy gates pass. After those, what's left is the run-to-run GPU contention described above (shared_root_signatures_… and the others), which didn't happen to fail in this run.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7268410342 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3659#issuecomment-7268410342). Originally posted by [Trillazill](https://github.com/Trillazill) on 2026-11-30T04:02:10Z. --- A map for getting `cargo test --workspace` green. I ran the full suite on main (41adb551, 24-thread PC): 2170 passed, 8 failed. Each of the 8 has an open PR: | failing test | fixed by | | --- | --- | | `victory-formats` `bcpack::tests::oracle_parity_*` (3) | #3530 (also #2236) | | `xtask` `policy::tests::repository_passes_policy` (`frame_users.rs`) | #3530 | | `victory-gpu` `shader_cache::tests::every_switch_of_the_translator_is_in_the_key` | #3530 / #3385 | | `victory-gpu` `host::card_steps::tests::places_written_after_sending_are_learned` | #3668 | | `victory-gpu` `host::menu::tests::a_change_is_saved_at_once_however_the_game_was_started` | #3618 | | `victory-hle` `modules::xmem::tests::a_read_by_range_waits_only_for_a_remapping_that_meets_it` | #3621 | #3530 also makes both clippy gates pass. After those, what's left is the run-to-run GPU contention described above (`shared_root_signatures_…` and the others), which didn't happen to fail in this run.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA#3659
No description provided.