f85101b: whole-suite run on an RX 6950 XT: one test fails most runs (PR #849), the lib test binary crashes now and then #850

Open
opened 2026-11-26 03:52:31 +00:00 by github-bot · 11 comments
Owner

@⁠MamaLeVrai on GitHub · 2026-11-25 10:41 UTC · original

The commit message of f85101b says its whole test suite was not run. I ran it (Windows 11, AMD RX 6950 XT, Rust 1.98.1, a GPU present).

Results on f85101b alone:

  • cargo test --workspace --locked: run 1: 555 passed, 0 failed, 11 ignored. Run 2: a failure, indirect::tests::warp_budget_saturates_without_wraparound_and_preserves_draw_fields (indirect.rs:1539, "the first two real draws fit the budget").
  • That test alone, 6 runs: it failed in 5. cargo test -p victory-gpu --lib, 15 runs: 4 failed on the same test. The cause is in the test: its two groups of 64 records charge the budget in either order, and it asserted one. PR #849 fixes the assertion (the test alone: 0 failures in 25 runs with it).
  • In the same 15 runs of cargo test -p victory-gpu --lib, the test binary also died twice with an access violation (the shell reported a segmentation fault), without a failed test line. I could not find which test: 25 runs with --test-threads=1 did not crash, and 20 runs each of the filters indirect::, queue2::, profile:: and host:: did not either, so it needs the parallel run of the whole library. I report it as seen, not understood.
  • cargo clippy --workspace --all-targets --locked -- -D warnings fails, with and without --all-features, on three lints that existed before this commit (PR #841 fixes them).

The title was not run. No game data.

AI-assisted (Claude Code); no game data.

**@⁠MamaLeVrai** on GitHub · 2026-11-25 10:41 UTC · [original](https://github.com/fxceless/victory-fork/issues/850) The commit message of `f85101b` says its whole test suite was not run. I ran it (Windows 11, AMD RX 6950 XT, Rust 1.98.1, a GPU present). **Results on `f85101b` alone:** - `cargo test --workspace --locked`: run 1: 555 passed, 0 failed, 11 ignored. Run 2: a failure, `indirect::tests::warp_budget_saturates_without_wraparound_and_preserves_draw_fields` (`indirect.rs:1539`, "the first two real draws fit the budget"). - That test alone, 6 runs: it failed in 5. `cargo test -p victory-gpu --lib`, 15 runs: 4 failed on the same test. The cause is in the test: its two groups of 64 records charge the budget in either order, and it asserted one. PR #849 fixes the assertion (the test alone: 0 failures in 25 runs with it). - In the same 15 runs of `cargo test -p victory-gpu --lib`, the test binary also died twice with an access violation (the shell reported a segmentation fault), without a failed test line. I could not find which test: 25 runs with `--test-threads=1` did not crash, and 20 runs each of the filters `indirect::`, `queue2::`, `profile::` and `host::` did not either, so it needs the parallel run of the whole library. I report it as seen, not understood. - `cargo clippy --workspace --all-targets --locked -- -D warnings` fails, with and without `--all-features`, on three lints that existed before this commit (PR #841 fixes them). The title was not run. No game data. AI-assisted (Claude Code); no game data.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:52:31 +00:00
Author
Owner

@⁠MamaLeVrai on GitHub · 2026-11-25 10:58 UTC · original

More on the crash of the victory-gpu test binary (this is f85101b plus the test fix of #849; RX 6950 XT, Windows 11; the binary run directly, 1 s per run).

  • It dies in about 8 of 100 runs (7 of 60, then 3 of 60 with two modules skipped, 1 of 80 and 2 of 80 on module groups), always before the end of the run, without any failed test line (exit code 139 in the shell, an access violation).
  • No module alone reproduced it in 60 runs each (shadow::, descriptor::, host::, indirect::, watch::, pipeline::), and --test-threads=1 (25 runs) did not either, so it needs tests running at the same time.
  • With libtest's JSON events (RUSTC_BOOTSTRAP=1 <test binary> -Z unstable-options --format json) I listed which tests had started and not finished when the process died, in 5 crashes. Ten tests were in flight in all five: descriptor::host::tests::remapped_memory_makes_its_texture_slots_due, a_page_write_makes_an_uploaded_texture_slot_due_when_asked, null_3d_uav_is_accepted_by_the_device, slots_read_through_tables_leave_the_texture_queue, dynamic_slots_are_held_until_released; pipeline::host::tests::a_mesh_pipeline_loads_from_the_library, depth_bounds_pipeline_loads_and_filters_draws, pipeline::library::tests::a_replaced_library_file_still_reads_from_the_disk; indirect::tests::warp_count_buffer_ignores_garbage_tail_and_preserves_source; inplace::tests::warp_probe_opens_title_like_memory_and_the_gpu_sees_its_bytes. They are the tests that start first, so they are in flight whenever the crash comes early, and that list does not name a culprit.
  • Each of those ten, run alone 60 times (--exact): 0 crashes. So it is an interaction between tests running at once (several create a host device or touch the same global state), not one broken test.

I stop here. If someone wants to continue: run the binary in a loop under a debugger that catches the access violation, to get the faulting module and stack.

AI-assisted (Claude Code); no game data.

**@⁠MamaLeVrai** on GitHub · 2026-11-25 10:58 UTC · [original](https://github.com/fxceless/victory-fork/issues/850#issuecomment-7160426015) More on the crash of the `victory-gpu` test binary (this is `f85101b` plus the test fix of #849; RX 6950 XT, Windows 11; the binary run directly, 1 s per run). - It dies in about 8 of 100 runs (7 of 60, then 3 of 60 with two modules skipped, 1 of 80 and 2 of 80 on module groups), always before the end of the run, without any failed test line (exit code 139 in the shell, an access violation). - No module alone reproduced it in 60 runs each (`shadow::`, `descriptor::`, `host::`, `indirect::`, `watch::`, `pipeline::`), and `--test-threads=1` (25 runs) did not either, so it needs tests running at the same time. - With libtest's JSON events (`RUSTC_BOOTSTRAP=1 <test binary> -Z unstable-options --format json`) I listed which tests had started and not finished when the process died, in 5 crashes. Ten tests were in flight in all five: `descriptor::host::tests::remapped_memory_makes_its_texture_slots_due`, `a_page_write_makes_an_uploaded_texture_slot_due_when_asked`, `null_3d_uav_is_accepted_by_the_device`, `slots_read_through_tables_leave_the_texture_queue`, `dynamic_slots_are_held_until_released`; `pipeline::host::tests::a_mesh_pipeline_loads_from_the_library`, `depth_bounds_pipeline_loads_and_filters_draws`, `pipeline::library::tests::a_replaced_library_file_still_reads_from_the_disk`; `indirect::tests::warp_count_buffer_ignores_garbage_tail_and_preserves_source`; `inplace::tests::warp_probe_opens_title_like_memory_and_the_gpu_sees_its_bytes`. They are the tests that start first, so they are in flight whenever the crash comes early, and that list does not name a culprit. - Each of those ten, run alone 60 times (`--exact`): 0 crashes. So it is an interaction between tests running at once (several create a host device or touch the same global state), not one broken test. I stop here. If someone wants to continue: run the binary in a loop under a debugger that catches the access violation, to get the faulting module and stack. AI-assisted (Claude Code); no game data.
Author
Owner

@⁠eazyves on GitHub · 2026-11-25 11:31 UTC · original

I ran the binary under a debugger loop, as suggested above. The access violation is in the software adapter: d3d10warp.dll+0x8be6d, a read at 0x24, the same in the last 15 crashes I looked at. It needs WARP tests from several modules at once: inplace alone 0 of 100 runs, indirect alone 0 of 100, both together 5 of 100.

#875 makes the WARP tests of the crate take turns: 10 crashes in 250 runs without it, 0 in 250 with it. Same f85101b, RX 9070 XT, Windows 11. It doesn't explain what goes wrong inside WARP.

AI-assisted (Claude Code); run on my machine. No game data.

**@⁠eazyves** on GitHub · 2026-11-25 11:31 UTC · [original](https://github.com/fxceless/victory-fork/issues/850#issuecomment-7161150191) I ran the binary under a debugger loop, as suggested above. The access violation is in the software adapter: `d3d10warp.dll+0x8be6d`, a read at `0x24`, the same in the last 15 crashes I looked at. It needs WARP tests from several modules at once: `inplace` alone 0 of 100 runs, `indirect` alone 0 of 100, both together 5 of 100. #875 makes the WARP tests of the crate take turns: 10 crashes in 250 runs without it, 0 in 250 with it. Same f85101b, RX 9070 XT, Windows 11. It doesn't explain what goes wrong inside WARP. AI-assisted (Claude Code); run on my machine. No game data.
Author
Owner

@⁠MamaLeVrai on GitHub · 2026-11-25 11:35 UTC · original

Where the test binary dies, from the Windows event log (Application, event 1000), for the 14 crashes of the victory_gpu test binary on this machine in the last hours (RX 6950 XT, driver amdxc64.dll; WARP d3d10warp.dll 10.0.26100.10068):

Faulting module Crashes Offset
amdxc64.dll (AMD's shader compiler) 9 0x17cc7e1, the same one every time
d3d10warp.dll (the software renderer) 5 four offsets: 0xc7b6c, 0xc7bb9, 0xc8c13, 0xa4c1d/0xa4c69

So the intermittent access violation is inside the graphics drivers, not in this repository's code: AMD's compiler crashes when several tests compile pipelines on separate threads at the same time, which is the same kind of crash that issue #2124 reports for the title (amdxc64.dll in pipeline creation on several threads, on a different driver build and offset), and WARP crashes when several tests use it at once. That fits what I saw earlier: no single test reproduces it, --test-threads=1 never did, and the ten tests that were in flight in every crash are only the ones that start first.

What could be done in the tests (not tried): the tests that create a device and compile pipelines could take one shared lock, the way the waterfall and VALU tests of victory-shader already wait for each other. Which tests that would be, I do not know.

AI-assisted (Claude Code); no game data.

**@⁠MamaLeVrai** on GitHub · 2026-11-25 11:35 UTC · [original](https://github.com/fxceless/victory-fork/issues/850#issuecomment-7161235241) Where the test binary dies, from the Windows event log (Application, event 1000), for the 14 crashes of the `victory_gpu` test binary on this machine in the last hours (RX 6950 XT, driver `amdxc64.dll`; WARP `d3d10warp.dll` 10.0.26100.10068): | Faulting module | Crashes | Offset | |---|---|---| | `amdxc64.dll` (AMD's shader compiler) | 9 | `0x17cc7e1`, the same one every time | | `d3d10warp.dll` (the software renderer) | 5 | four offsets: `0xc7b6c`, `0xc7bb9`, `0xc8c13`, `0xa4c1d`/`0xa4c69` | So the intermittent access violation is **inside the graphics drivers, not in this repository's code**: AMD's compiler crashes when several tests compile pipelines on separate threads at the same time, which is the same kind of crash that issue #2124 reports for the title (`amdxc64.dll` in pipeline creation on several threads, on a different driver build and offset), and WARP crashes when several tests use it at once. That fits what I saw earlier: no single test reproduces it, `--test-threads=1` never did, and the ten tests that were in flight in every crash are only the ones that start first. What could be done in the tests (not tried): the tests that create a device and compile pipelines could take one shared lock, the way the waterfall and VALU tests of `victory-shader` already wait for each other. Which tests that would be, I do not know. AI-assisted (Claude Code); no game data.
Author
Owner

@⁠HAL9000RELOADED on GitHub · 2026-11-25 13:00 UTC · original

A Windows 10 data point. Here the victory-gpu test binary has one more failure than in the Windows 11 runs above, and the three open fixes together make it pass.

Setup: Radeon RX 7900 XTX (RDNA3), Adrenalin 32.0.32015.7029, Windows 10 Pro 22H2 (19045), Rust 1.98.1, in-box D3D12 runtime (SM 6.5).

  • Tree: main a253706.
  • Runs: 20 runs of cargo test -p victory-gpu --lib per tree, default threads, one run per process.
  • Tools: the PC dxc and DXIL validator from SDK 10.0.26100 (VICTORY_PC_DXC, VICTORY_DXIL).
  • No game data used.
tree runs that failed access violation warp_budget_saturates… failed depth_bounds_pipeline_loads_and_filters_draws failed
main 20 7 7 13
+ #875 20 0 20 20
+ #875 + #849 20 0 0 20
+ #875 + #849 + #692 0 0 0 0

A run that crashes stops before the remaining tests report, so the columns do not add up on main.

The extra failure comes from Windows 10's in-box runtime.

  • depth_bounds_pipeline_loads_and_filters_draws panics at pipeline/host.rs:1087 with E_INVALIDARG from root_signature(...).
  • That root signature asks for CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED and SAMPLER_HEAP_DIRECTLY_INDEXED, which the SM 6.5 runtime refuses.
  • On the same card the test passes:
    • with #692 (an empty root signature for the test) on the in-box runtime;
    • with the D3D12 Agility SDK runtime beside the test binary, without #692.
  • The test only runs when a PC dxc.exe is found. Machines without one skip it and will not see the failure.

The access violations that stop with #875 are consistent with the RX 6950 XT and RX 9070 XT runs above.

Related, from the same runs: #402 on Windows 10 (it keeps victory-gpu's tests on the in-box runtime, which is why this test still fails there), and the cause of the same E_INVALIDARG reported in #775.

**@⁠HAL9000RELOADED** on GitHub · 2026-11-25 13:00 UTC · [original](https://github.com/fxceless/victory-fork/issues/850#issuecomment-7163161066) A Windows 10 data point. Here the `victory-gpu` test binary has one more failure than in the Windows 11 runs above, and the three open fixes together make it pass. **Setup:** Radeon RX 7900 XTX (RDNA3), Adrenalin 32.0.32015.7029, Windows 10 Pro 22H2 (19045), Rust 1.98.1, in-box D3D12 runtime (SM 6.5). - **Tree:** `main` `a253706`. - **Runs:** 20 runs of `cargo test -p victory-gpu --lib` per tree, default threads, one run per process. - **Tools:** the PC dxc and DXIL validator from SDK 10.0.26100 (`VICTORY_PC_DXC`, `VICTORY_DXIL`). - No game data used. | tree | runs that failed | access violation | `warp_budget_saturates…` failed | `depth_bounds_pipeline_loads_and_filters_draws` failed | |---|---|---|---|---| | `main` | 20 | 7 | 7 | 13 | | + #875 | 20 | 0 | 20 | 20 | | + #875 + #849 | 20 | 0 | 0 | 20 | | + #875 + #849 + #692 | **0** | 0 | 0 | 0 | A run that crashes stops before the remaining tests report, so the columns do not add up on `main`. **The extra failure comes from Windows 10's in-box runtime.** - `depth_bounds_pipeline_loads_and_filters_draws` panics at `pipeline/host.rs:1087` with `E_INVALIDARG` from `root_signature(...)`. - That root signature asks for `CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED` and `SAMPLER_HEAP_DIRECTLY_INDEXED`, which the SM 6.5 runtime refuses. - On the same card the test passes: - with #692 (an empty root signature for the test) on the in-box runtime; - with the D3D12 Agility SDK runtime beside the test binary, without #692. - The test only runs when a PC `dxc.exe` is found. Machines without one skip it and will not see the failure. The access violations that stop with #875 are consistent with the RX 6950 XT and RX 9070 XT runs above. Related, from the same runs: #402 on Windows 10 (it keeps victory-gpu's tests on the in-box runtime, which is why this test still fails there), and the cause of the same `E_INVALIDARG` reported in #775.
Author
Owner

@⁠welisonzika14-jpg on GitHub · 2026-11-25 15:08 UTC · original

Data from an NVIDIA card for the crash of the victory_gpu test binary.

  • GPU: NVIDIA GeForce RTX 5070, driver 621.24
  • OS: Windows 11, d3d10warp.dll 10.0.26100.9818, Rust 1.98.1 MSVC
  • Command: ran the test binary built by cargo test -p victory-gpu --lib --locked directly, in a loop. Exit code 0 or 101 is normal.
Head Runs Exit codes
fx/main 0b0074e 30 0 x16, 101 x11, -1073741819 (0xC0000005) x3
fx/main 0b0074e 100 (second series) 0 x41, 101 x49, -1073741819 x10
fx/main + #875 (d719494) 100 0 x16, 101 x84, no abnormal exits

So 13 of 130 runs ended with an access violation on fx/main, and 0 of 100 with #875. This machine has no AMD driver, so here the crash cannot be in amdxc64.dll; WARP (d3d10warp.dll) stays a candidate. The text "STATUS_ACCESS_VIOLATION" never appears in the output; only the exit code shows it. I did not read the Windows event log, so I cannot say which DLL crashed. The 101 exits are test failures (mostly the indirect budget test), not crashes.

Limits: unit tests only, no game files. One machine, debug build.

Written with AI help (Claude/Kiro); the numbers are from runs on my machine.

**@⁠welisonzika14-jpg** on GitHub · 2026-11-25 15:08 UTC · [original](https://github.com/fxceless/victory-fork/issues/850#issuecomment-7166357890) Data from an NVIDIA card for the crash of the `victory_gpu` test binary. - GPU: NVIDIA GeForce RTX 5070, driver 621.24 - OS: Windows 11, `d3d10warp.dll` 10.0.26100.9818, Rust 1.98.1 MSVC - Command: ran the test binary built by `cargo test -p victory-gpu --lib --locked` directly, in a loop. Exit code 0 or 101 is normal. | Head | Runs | Exit codes | |---|---|---| | fx/main `0b0074e` | 30 | 0 x16, 101 x11, `-1073741819` (0xC0000005) x3 | | fx/main `0b0074e` | 100 (second series) | 0 x41, 101 x49, `-1073741819` x10 | | fx/main + #875 (`d719494`) | 100 | 0 x16, 101 x84, no abnormal exits | So 13 of 130 runs ended with an access violation on fx/main, and 0 of 100 with #875. This machine has no AMD driver, so here the crash cannot be in `amdxc64.dll`; WARP (`d3d10warp.dll`) stays a candidate. The text "STATUS_ACCESS_VIOLATION" never appears in the output; only the exit code shows it. I did not read the Windows event log, so I cannot say which DLL crashed. The 101 exits are test failures (mostly the `indirect` budget test), not crashes. Limits: unit tests only, no game files. One machine, debug build. Written with AI help (Claude/Kiro); the numbers are from runs on my machine.
Author
Owner

@⁠xyzMikah on GitHub · 2026-11-25 17:42 UTC · original

RTX 5060 Ti 16 GB, Windows 11, Rust 1.98.1, main at 0b0074e. Ran cargo test -p victory-gpu --lib --locked 30 times in a loop. All 30 exited 0 with 182 passed, 0 failed, 5 ignored. No access violation, could not reproduce.

**@⁠xyzMikah** on GitHub · 2026-11-25 17:42 UTC · [original](https://github.com/fxceless/victory-fork/issues/850#issuecomment-7169876289) RTX 5060 Ti 16 GB, Windows 11, Rust 1.98.1, main at 0b0074e. Ran cargo test -p victory-gpu --lib --locked 30 times in a loop. All 30 exited 0 with 182 passed, 0 failed, 5 ignored. No access violation, could not reproduce.
Author
Owner

@⁠gustavowalkersgroup on GitHub · 2026-11-26 01:28 UTC · original · edited 2026-11-26 01:32 UTC

Local follow-up on 4aa6e8c74239b1402634b66834aedf5747e70440, Windows 11, i5-10400F / RTX 2070 8 GB (driver provenance corrected below), Rust 1.98.1 MSVC. These are synthetic library tests; no title run or game data is involved.

With cargo test --locked --profile diag -p victory-gpu --lib -- --test-threads=1:

  • Initially: 192 passed, 2 failed, 5 ignored.
  • Applying the test-only change from #849 fixed warp_budget_saturates_without_wraparound_and_preserves_draw_fields, including when the whole library ran. The other failure was watch::tests::written_pages_are_reported_to_every_asker, which passed alone.
  • Instrumenting the latter in the library run showed initial asking 41 and four journal entries with older epochs 35, 39, 40, 35. Thus the fresh VirtualAlloc range had reused addresses whose history remained in the process-wide journal; no new initial kernel write was observed.
  • Locally, I scoped its assertions to writes newer than that fixture's initial asking, retained the exact newly written page/epoch and repeated-reader checks, and added a second case that explicitly seeds old journal history at two pages of the fresh range.
  • With #849 and this fixture change: 195 passed, 0 failed, 5 ignored in one serial GPU-library run. The full workspace check is still underway.

No production GPU/watch code changed. The tree also has a local loader-only CLWB emulation change, unrelated to these GPU test assertions. I have not tested parallel-run stability or the fixes in #875/#692.

Is comparing against the initial journal epoch the intended way to isolate this test, or would you prefer an allocation-lifetime/reset fixture? This avoids requiring the global journal to be empty merely because the OS returned a fresh allocation.

AI-assisted: Codex prepared and ran the checks and summarized the local logs.

Update: the driver version during the GPU-library run was not captured directly. A later system query reports 621.40; the earlier621.24 label came from prior-session metadata and should not be treated as verified for this run. Eight library summaries in the subsequent workspace run total376 passes. The hardware shader conformance stage was stopped by us while the GPU was occupied by another application, so the full workspace check remains incomplete; no complete-suite pass is claimed.

**@⁠gustavowalkersgroup** on GitHub · 2026-11-26 01:28 UTC · [original](https://github.com/fxceless/victory-fork/issues/850#issuecomment-7179813155) · edited 2026-11-26 01:32 UTC Local follow-up on `4aa6e8c74239b1402634b66834aedf5747e70440`, Windows 11, i5-10400F / RTX 2070 8 GB (driver provenance corrected below), Rust 1.98.1 MSVC. These are synthetic library tests; no title run or game data is involved. With `cargo test --locked --profile diag -p victory-gpu --lib -- --test-threads=1`: - Initially: 192 passed, 2 failed, 5 ignored. - Applying the test-only change from #849 fixed `warp_budget_saturates_without_wraparound_and_preserves_draw_fields`, including when the whole library ran. The other failure was `watch::tests::written_pages_are_reported_to_every_asker`, which passed alone. - Instrumenting the latter in the library run showed initial asking 41 and four journal entries with older epochs 35, 39, 40, 35. Thus the fresh VirtualAlloc range had reused addresses whose history remained in the process-wide journal; no new initial kernel write was observed. - Locally, I scoped its assertions to writes newer than that fixture's initial asking, retained the exact newly written page/epoch and repeated-reader checks, and added a second case that explicitly seeds old journal history at two pages of the fresh range. - With #849 and this fixture change: **195 passed, 0 failed, 5 ignored** in one serial GPU-library run. The full workspace check is still underway. No production GPU/watch code changed. The tree also has a local loader-only CLWB emulation change, unrelated to these GPU test assertions. I have not tested parallel-run stability or the fixes in #875/#692. Is comparing against the initial journal epoch the intended way to isolate this test, or would you prefer an allocation-lifetime/reset fixture? This avoids requiring the global journal to be empty merely because the OS returned a fresh allocation. AI-assisted: Codex prepared and ran the checks and summarized the local logs. Update: the driver version during the GPU-library run was not captured directly. A later system query reports 621.40; the earlier621.24 label came from prior-session metadata and should not be treated as verified for this run. Eight library summaries in the subsequent workspace run total376 passes. The hardware shader conformance stage was stopped by us while the GPU was occupied by another application, so the full workspace check remains incomplete; no complete-suite pass is claimed.
Author
Owner

@⁠spk-c on GitHub · 2026-11-26 09:51 UTC · original

I reproduced the WARP access violation with only the nine synthetic indirect tests, without title data, on fork baseline 401d8a1 (which includes upstream f6a09d3). The isolated command was:

cargo test -p victory-gpu --locked --lib indirect::tests::warp_ -- --test-threads=32 --nocapture

The baseline exited with 0xC0000005 on the first parallel run. On the audit branch, one of three parallel runs crashed and the serial control completed 9/9. The count test alone, both compare tests, and those three together each completed eight runs without a crash.

On Windows WARP d3d10warp.dll 10.0.19041.7811, CDB with sxd av captured the same unhandled exception in four of four baseline runs. The stack was PixelJitProgram::ClassifyVars+0xa44 → FeCleanup::Pass1 → PixelJitOptimizer::Run → PixelJITProcessor::Initialize → Task_CompileShader → the WARP thread pool. This narrows the failure to the WARP shader JIT on this build and gives an indirect-only reproduction for #875.

**@⁠spk-c** on GitHub · 2026-11-26 09:51 UTC · [original](https://github.com/fxceless/victory-fork/issues/850#issuecomment-7188577360) I reproduced the WARP access violation with only the nine synthetic indirect tests, without title data, on fork baseline `401d8a1` (which includes upstream `f6a09d3`). The isolated command was: ```powershell cargo test -p victory-gpu --locked --lib indirect::tests::warp_ -- --test-threads=32 --nocapture ``` The baseline exited with `0xC0000005` on the first parallel run. On the audit branch, one of three parallel runs crashed and the serial control completed 9/9. The count test alone, both compare tests, and those three together each completed eight runs without a crash. On Windows WARP `d3d10warp.dll` 10.0.19041.7811, CDB with `sxd av` captured the same unhandled exception in four of four baseline runs. The stack was `PixelJitProgram::ClassifyVars+0xa44` → `FeCleanup::Pass1` → `PixelJitOptimizer::Run` → `PixelJITProcessor::Initialize` → `Task_CompileShader` → the WARP thread pool. This narrows the failure to the WARP shader JIT on this build and gives an indirect-only reproduction for #875.
Author
Owner

@⁠xyzMikah on GitHub · 2026-11-26 09:57 UTC · original

Reproduced on Ryzen 5 5600X, RTX 5060 Ti 16 GB, Windows 11, Rust 1.98.1, main at 0b0074e.

Command:

cargo test -p victory-gpu --locked --lib indirect::tests::warp_ -- --test-threads=32 --nocapture

Five runs:

  • 1 crashed with 0xC0000005 (STATUS_ACCESS_VIOLATION) after 4 tests had passed
  • 1 failed warp_budget_saturates_without_wraparound_and_preserves_draw_fields ("the first two real draws fit the budget")
  • 3 passed, 8 of 8

No title data, synthetic tests only. Matches spk-c's WARP crash.

**@⁠xyzMikah** on GitHub · 2026-11-26 09:57 UTC · [original](https://github.com/fxceless/victory-fork/issues/850#issuecomment-7188714045) **Reproduced on Ryzen 5 5600X, RTX 5060 Ti 16 GB, Windows 11, Rust 1.98.1, main at 0b0074e.** Command: `cargo test -p victory-gpu --locked --lib indirect::tests::warp_ -- --test-threads=32 --nocapture` Five runs: - 1 crashed with `0xC0000005` (STATUS_ACCESS_VIOLATION) after 4 tests had passed - 1 failed `warp_budget_saturates_without_wraparound_and_preserves_draw_fields` ("the first two real draws fit the budget") - 3 passed, 8 of 8 No title data, synthetic tests only. Matches spk-c's WARP crash.
Author
Owner

@⁠spk-c on GitHub · 2026-11-26 11:32 UTC · original

Follow-up to my earlier WARP-JIT report, using fork 02c8d6c (upstream 06702fe), Windows 10 inbox runtime, d3d10warp.dll 10.0.19041.7811, Rust 1.98.1. Synthetic buffers only; no title execution.

I reduced the indirect fixture to eight independent WarpHarness queues/lists, each with eight dispatch records [4,1,1], a host barrier before submission and an expected worker result of 32. Replacing the clamp with a shader that only writes uint3(4,1,1) to each active record (same original root signature/recording path) still crashed in 4/8 fresh processes, without any budget logic, groupshared atomics or source reads. CDB caught a second-chance 0xc0000005 at d3d10warp!PixelJitProgram::ClassifyVars+0xabe -> FeCleanup::Pass1 -> PixelJitOptimizer::Run -> PixelJITProcessor::Initialize -> Task_CompileShader -> WARP worker thread. Scalar copy and single-thread copy variants also crashed.

With the original clamp, I compared a cold concurrent submission against one serial first submission per harness (mutex held through its fence and cleanup), then a simultaneous second submission with the same PSOs and fresh buffers. 24 fresh processes per mode, alternating AB/BA, debug layer off:

mode pass access violation other abnormal exit
cold 4 19 1 (255, reason unknown)
serial first use, then parallel 24 0 0

This supports a first-use/concurrency-sensitive shader JIT failure in this fixture, rather than requiring the budget CAS or ExecuteIndirect itself. It does not prove that the driver alone is at fault, or that production prewarming or the entire parallel suite is safe. I agree with retaining #875's test-only serialization approach; not proposing a duplicate PR. Restored unmodified fork GPU suite: 235 passed, 8 ignored, zero failures, serial. AI-assisted investigation; measurements run locally.

**@⁠spk-c** on GitHub · 2026-11-26 11:32 UTC · [original](https://github.com/fxceless/victory-fork/issues/850#issuecomment-7190866225) Follow-up to my earlier WARP-JIT report, using fork `02c8d6c` (upstream `06702fe`), Windows 10 inbox runtime, `d3d10warp.dll` 10.0.19041.7811, Rust 1.98.1. Synthetic buffers only; no title execution. I reduced the indirect fixture to eight independent WarpHarness queues/lists, each with eight dispatch records `[4,1,1]`, a host barrier before submission and an expected worker result of 32. Replacing the clamp with a shader that only writes `uint3(4,1,1)` to each active record (same original root signature/recording path) still crashed in 4/8 fresh processes, without any budget logic, groupshared atomics or source reads. CDB caught a second-chance `0xc0000005` at `d3d10warp!PixelJitProgram::ClassifyVars+0xabe` -> `FeCleanup::Pass1` -> `PixelJitOptimizer::Run` -> `PixelJITProcessor::Initialize` -> `Task_CompileShader` -> WARP worker thread. Scalar copy and single-thread copy variants also crashed. With the **original** clamp, I compared a cold concurrent submission against one serial first submission per harness (mutex held through its fence and cleanup), then a simultaneous second submission with the same PSOs and fresh buffers. 24 fresh processes per mode, alternating AB/BA, debug layer off: | mode | pass | access violation | other abnormal exit | |---|---:|---:|---:| | cold | 4 | 19 | 1 (255, reason unknown) | | serial first use, then parallel | 24 | 0 | 0 | This supports a first-use/concurrency-sensitive shader JIT failure in this fixture, rather than requiring the budget CAS or ExecuteIndirect itself. It does not prove that the driver alone is at fault, or that production prewarming or the entire parallel suite is safe. I agree with retaining #875's test-only serialization approach; not proposing a duplicate PR. Restored unmodified fork GPU suite: 235 passed, 8 ignored, zero failures, serial. AI-assisted investigation; measurements run locally.
Author
Owner

@⁠spk-c on GitHub · 2026-11-26 11:41 UTC · original

Whole GPU suite follow-up on the same base 02c8d6c: unmodified binary, 32 test threads, 5/12 processes passed and 7/12 exited 0xc0000005. Then I tested a single experimental binary with an opt-in serial first execution of the actual clamp/worker PSOs in each indirect WarpHarness, leaving all other GPU tests unchanged. Alternating AB/BA, 12 fresh processes per mode: cold 5 pass, 6 access violations, 1 assertion failure (watch::tests::bits_kept_through_a_phase_that_does_not_ask_them_are_true_in_the_next, exit 101); prewarm 11/12 passed, one access violation. Successful runs were 235 passed, 8 ignored. No title execution. This does not eliminate the whole-suite crash, so I am keeping serial CI and not proposing this as a production fix. AI-assisted, locally measured.

**@⁠spk-c** on GitHub · 2026-11-26 11:41 UTC · [original](https://github.com/fxceless/victory-fork/issues/850#issuecomment-7191044136) Whole GPU suite follow-up on the same base `02c8d6c`: unmodified binary, 32 test threads, 5/12 processes passed and 7/12 exited 0xc0000005. Then I tested a single experimental binary with an opt-in serial first execution of the actual clamp/worker PSOs in each indirect WarpHarness, leaving all other GPU tests unchanged. Alternating AB/BA, 12 fresh processes per mode: cold 5 pass, 6 access violations, 1 assertion failure (`watch::tests::bits_kept_through_a_phase_that_does_not_ask_them_are_true_in_the_next`, exit 101); prewarm 11/12 passed, one access violation. Successful runs were 235 passed, 8 ignored. No title execution. This does not eliminate the whole-suite crash, so I am keeping serial CI and not proposing this as a production fix. AI-assisted, locally measured.
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/fxceless--victory-fork#850
No description provided.