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
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA#3659
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Trillazill on GitHub · 2026-11-30 03:11 UTC · original
pipeline::host::tests::shared_root_signatures_load_from_library_and_execute_across_pso_switchesfails in every full run ofcargo test --locked -p victory-gpu --libon 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
checkdoesn't show it.)What fails:
HostPipeline::newreturnsNoneat.expect("gfx1 PSO")/.expect("cs1 PSO"). With a temporaryeprintln!inpipeline::refused::failed, the reason is: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:pipeline::,host::,shader_cache::descriptor::pool::(also matcheshost::uav_pool::)shadow::,watch::,streamline::,resource::,indirect::,draw::,queue::,list::,texture::Running it in a process of its own isn't enough. I tried the pattern
host_heap_new_honors_env_dynamic_slots_on_host_deviceuses (and #3621 uses for anxmemtest): the test runs itself again in a child with--exact --test-threads=1.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.pool::: still 5 of 5. The child fails atcs1 PSO. Thepooltests fill the card's memory (blocks up to the budget), and that pressure reaches another process too.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_learnedalso fails in the full suite, and fails with--test-threads=1too, 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:
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'sSERIAL,texback::POOL_TEST_LOCK, ...) but none across modules.pooltests size their budget from a small test figure rather than the card's own, so they never take most of its memory.--test-threadsin the documented test command.cargo test --locked -p victory-gpu --lib -- --test-threads=1(63 s here, against 26 s) passesshared_root_signatures_…and the others above. What's left iscard_stepsandevery_switch_….The
every_switch_of_the_translator_is_in_the_keyfailure that also shows up is separate (a stale key entry; #3385 / #3530).@github-actions[bot] on GitHub · 2026-11-30 03:11 UTC · original
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.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)
@Trillazill on GitHub · 2026-11-30 04:02 UTC · original
A map for getting
cargo test --workspacegreen. I ran the full suite on main (41adb551, 24-thread PC): 2170 passed, 8 failed. Each of the 8 has an open PR:victory-formatsbcpack::tests::oracle_parity_*(3)xtaskpolicy::tests::repository_passes_policy(frame_users.rs)victory-gpushader_cache::tests::every_switch_of_the_translator_is_in_the_keyvictory-gpuhost::card_steps::tests::places_written_after_sending_are_learnedvictory-gpuhost::menu::tests::a_change_is_saved_at_once_however_the_game_was_startedvictory-hlemodules::xmem::tests::a_read_by_range_waits_only_for_a_remapping_that_meets_it#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.