DXIL GPU fuzz tests reproducibly fail with E_OUTOFMEMORY on RTX 5060 #1905

Open
opened 2026-11-26 05:08:59 +00:00 by github-bot · 4 comments
Owner

@⁠humicu on GitHub · 2026-11-24 22:56 UTC · original

<html>

DXIL: Four GPU fuzz tests consistently fail with E_OUTOFMEMORY on RTX 5060

Environment

  • XCL commit: 689f2db477c3c062cf162649781640ef8a977c18

  • GPU: NVIDIA GeForce RTX 5060 (8 GB)

  • NVIDIA driver: 617.42 (WDDM)

  • CPU: AMD Ryzen 7 5700X

  • RAM: 32 GB

  • OS: Windows

  • DXCompiler/DXIL: 1.9.2602.17 (21d28f72)

  • Windows SDK: 10.0.26100.0

  • Git working tree: Clean

Description

After updating from c4d37be to 689f2db, both debug and release workspace builds compiled successfully. However, four newly introduced DXIL GPU fuzz tests consistently fail during CreateComputePipelineState with E_OUTOFMEMORY (0x8007000E).

The failures occur at identical seeds during sequential workspace testing and isolated fuzz testing. Seed 70 also fails when executed individually in fresh processes under both debug and release configurations.

Steps to reproduce

Run the full fuzz test group:

cargo test -p xcl --lib gpu::dxil::fuzz_tests::fuzz_validate_and_gpu -- --test-threads=1 --nocapture

Individual debug reproduction:

cargo test -p xcl --lib gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0 -- --exact --nocapture

Individual release reproduction:

cargo test --release -p xcl --lib gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0 -- --exact --nocapture

Expected behavior

All four GPU fuzz tests complete successfully.

Actual behavior

All four tests panic at crates/xcl/src/gpu/dxil/fuzz_tests.rs:1167:110 with the following error:

CreateComputePipelineState: Not enough memory resources are available to complete this operation. (0x8007000E)

The failing seeds are consistent across repeated runs:

Test Seed Shader size Instructions
fuzz_validate_and_gpu_0 70 2884 B 125
fuzz_validate_and_gpu_1 545 2928 B 145
fuzz_validate_and_gpu_2 1019 3012 B 127
fuzz_validate_and_gpu_3 1507 2952 B 115

The isolated group failed in 0.87 seconds, the individual debug test in 0.53 seconds, and the individual release test in 0.86 seconds.

Additional observations

  • Previous commit c4d37be completed sequential workspace testing with 958 passed, 0 failed and 43 ignored.

  • Both debug and release builds compile successfully.

  • The failures reproduce independently of the full workspace test suite.

  • Debug and release configurations produce identical errors for seed 70.

  • No local source modifications are present.

  • nvidia-smi following testing reported:

    • VRAM usage: 790 MiB / 8151 MiB

    • GPU utilization: 0%

    • GPU temperature: 51°C

Actual VRAM exhaustion has not been established, as memory usage was measured after testing rather than during the failure. The consistent failing seeds and reproduction in fresh processes may indicate a generated DXIL or driver compatibility issue.

Happy to provide additional logs or run further diagnostic tests on this hardware if helpful.

Thanks for all the continued work on XCL!

</html>
**@⁠humicu** on GitHub · 2026-11-24 22:56 UTC · [original](https://github.com/xcl-dev/xcl/issues/1905) <html> <body> <!--StartFragment--><h1><span>DXIL: Four GPU fuzz tests consistently fail with E_OUTOFMEMORY on RTX 5060</span></h1><h2><span>Environment</span></h2><ul><li><p><span>XCL commit: </span><code><span>689f2db477c3c062cf162649781640ef8a977c18</span></code></p></li><li><p><span>GPU: NVIDIA GeForce RTX 5060 (8 GB)</span></p></li><li><p><span>NVIDIA driver: 617.42 (WDDM)</span></p></li><li><p><span>CPU: AMD Ryzen 7 5700X</span></p></li><li><p><span>RAM: 32 GB</span></p></li><li><p><span>OS: Windows</span></p></li><li><p><span>DXCompiler/DXIL: 1.9.2602.17 (21d28f72)</span></p></li><li><p><span>Windows SDK: 10.0.26100.0</span></p></li><li><p><span>Git working tree: Clean</span></p></li></ul><h2><span>Description</span></h2><p><span>After updating from </span><code><span>c4d37be</span></code><span> to </span><code><span>689f2db</span></code><span>, both debug and release workspace builds compiled successfully. However, four newly introduced DXIL GPU fuzz tests consistently fail during </span><code><span>CreateComputePipelineState</span></code><span> with </span><code><span>E_OUTOFMEMORY (0x8007000E)</span></code><span>.</span></p><p><span>The failures occur at identical seeds during sequential workspace testing and isolated fuzz testing. Seed 70 also fails when executed individually in fresh processes under both debug and release configurations.</span></p><h2><span>Steps to reproduce</span></h2><p><span>Run the full fuzz test group:</span></p><pre><code><span>cargo test -p xcl --lib gpu::dxil::fuzz_tests::fuzz_validate_and_gpu -- --test-threads=1 --nocapture</span></code></pre><p><span>Individual debug reproduction:</span></p><pre><code><span>cargo test -p xcl --lib gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0 -- --exact --nocapture</span></code></pre><p><span>Individual release reproduction:</span></p><pre><code><span>cargo test --release -p xcl --lib gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0 -- --exact --nocapture</span></code></pre><h2><span>Expected behavior</span></h2><p><span>All four GPU fuzz tests complete successfully.</span></p><h2><span>Actual behavior</span></h2><p><span>All four tests panic at </span><code><span>crates/xcl/src/gpu/dxil/fuzz_tests.rs:1167:110</span></code><span> with the following error:</span></p><pre><code><span>CreateComputePipelineState: Not enough memory resources are available to complete this operation. (0x8007000E)</span></code></pre><p><span>The failing seeds are consistent across repeated runs: | Test | Seed | Shader size | Instructions | | --- | --- | --- | --- | | fuzz_validate_and_gpu_0 | 70 | 2884 B | 125 | | fuzz_validate_and_gpu_1 | 545 | 2928 B | 145 | | fuzz_validate_and_gpu_2 | 1019 | 3012 B | 127 | | fuzz_validate_and_gpu_3 | 1507 | 2952 B | 115 | The isolated group failed in 0.87 seconds, the individual debug test in 0.53 seconds, and the individual release test in 0.86 seconds.</span></p><h2><span>Additional observations</span></h2><ul><li><p><span>Previous commit </span><code><span>c4d37be</span></code><span> completed sequential workspace testing with 958 passed, 0 failed and 43 ignored.</span></p></li><li><p><span>Both debug and release builds compile successfully.</span></p></li><li><p><span>The failures reproduce independently of the full workspace test suite.</span></p></li><li><p><span>Debug and release configurations produce identical errors for seed 70.</span></p></li><li><p><span>No local source modifications are present.</span></p></li><li><p><code><span>nvidia-smi</span></code><span> following testing reported:</span></p><ul><li><p><span>VRAM usage: 790 MiB / 8151 MiB</span></p></li><li><p><span>GPU utilization: 0%</span></p></li><li><p><span>GPU temperature: 51°C</span></p></li></ul></li></ul><p><span>Actual VRAM exhaustion has not been established, as memory usage was measured after testing rather than during the failure. The consistent failing seeds and reproduction in fresh processes may indicate a generated DXIL or driver compatibility issue.</span></p><p><span>Happy to provide additional logs or run further diagnostic tests on this hardware if helpful.</span></p><p><span>Thanks for all the continued work on XCL!</span></p><!--EndFragment--> </body> </html>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:08:59 +00:00
Author
Owner

@⁠PHeitor1 on GitHub · 2026-11-24 23:02 UTC · original

Same here on an RTX 5060 Ti (621.24), same four seeds, and the cause is known: it is not video memory. The NVIDIA driver refuses a compute pipeline that has a groupshared atomic subtract of a non-constant value.

  • Why these seeds: #1426's 55e9c3b stopped emitting atomicrmw sub, which RTX 50 drivers refused, and emits add of 0 - x instead. @⁠Kalmarv inferred that newer drivers fold that back into the subtract. The runs here confirm the trigger: 56 of the 1232 seeds that run on the GPU are refused, all with a groupshared subtract, and a few lines of plain HLSL (InterlockedAdd(g[i], 0u - v), compiled by DXC) are refused too.
  • Which drivers, from the reports so far: 610.74 runs these seeds (Kalmarv, 5070 Ti); 617.14 (frenziedcoder, 5080), yours (617.42) and 621.24 refuse them. I have not seen it reported on RTX 30 cards: an RTX 3060 and a 3060 Ti (621.01) pass #1778's LDS test, which RTX 50 cards fail with this error.
  • It is not only the fuzz tests: a console program with ds_sub_u32 of a register is refused here on both the HLSL and the direct DXIL path.
  • Fix that works here: translate LDS ds_sub_u32 as a compare-exchange loop. Patch and results: the four fuzz tests and #1778's LDS test pass with it. It changes the translators, so it needs a smoke pair on a retail title, which I can't run.

If you can, please try that patch on your 5060 with cargo test -p xcl --lib -- gpu_ds_sub_u32_of_a_register gpu::dxil::fuzz_tests: 617.42 would be a new driver for it.

Run and written with Claude Code (Claude Opus 5.5).

**@⁠PHeitor1** on GitHub · 2026-11-24 23:02 UTC · [original](https://github.com/xcl-dev/xcl/issues/1905#issuecomment-7146939174) Same here on an RTX 5060 Ti (621.24), same four seeds, and the cause is known: it is not video memory. The NVIDIA driver refuses a compute pipeline that has a groupshared atomic subtract of a non-constant value. - **Why these seeds:** #1426's `55e9c3b` stopped emitting `atomicrmw sub`, which RTX 50 drivers refused, and emits `add` of `0 - x` instead. @⁠Kalmarv [inferred](https://git.gtahub.st/github/xcl-dev--xcl/pulls/1426) that newer drivers fold that back into the subtract. The runs [here](https://git.gtahub.st/github/xcl-dev--xcl/pulls/1679) confirm the trigger: 56 of the 1232 seeds that run on the GPU are refused, all with a groupshared subtract, and a few lines of plain HLSL (`InterlockedAdd(g[i], 0u - v)`, compiled by DXC) are refused too. - **Which drivers, from the reports so far:** 610.74 runs these seeds (Kalmarv, 5070 Ti); 617.14 (frenziedcoder, 5080), yours (617.42) and 621.24 refuse them. I have not seen it reported on RTX 30 cards: an RTX 3060 and a 3060 Ti (621.01) pass #1778's LDS test, which RTX 50 cards fail with this error. - **It is not only the fuzz tests:** a console program with `ds_sub_u32` of a register is refused here on both the HLSL and the direct DXIL path. - **Fix that works here:** translate LDS `ds_sub_u32` as a compare-exchange loop. [Patch and results](https://git.gtahub.st/github/xcl-dev--xcl/pulls/1679): the four fuzz tests and #1778's LDS test pass with it. It changes the translators, so it needs a smoke pair on a retail title, which I can't run. If you can, please try that patch on your 5060 with `cargo test -p xcl --lib -- gpu_ds_sub_u32_of_a_register gpu::dxil::fuzz_tests`: 617.42 would be a new driver for it. _Run and written with Claude Code (Claude Opus 5.5)._
Author
Owner

@⁠PHeitor1 on GitHub · 2026-11-24 23:08 UTC · original

Opened as a draft: #1919. It still needs the smoke pair.

Written with Claude Code (Claude Opus 5.5).

**@⁠PHeitor1** on GitHub · 2026-11-24 23:08 UTC · [original](https://github.com/xcl-dev/xcl/issues/1905#issuecomment-7147067718) Opened as a draft: #1919. It still needs the smoke pair. _Written with Claude Code (Claude Opus 5.5)._
Author
Owner

@⁠humicu on GitHub · 2026-11-24 23:26 UTC · original

@⁠PHeitor1 Confirmed working on my RTX 5060 with driver 617.42, originally reported in #1905.

Environment

  • Commit: b54ac4e842a365d75ba97dfd07892cb75a0bd20e
  • GPU: NVIDIA GeForce RTX 5060 (8 GB)
  • Driver: 617.42
  • CPU: Ryzen 7 5700X
  • RAM: 32 GB
  • DXC: 1.9.2602.17
  • Windows SDK: 10.0.26100.0
  • Debug test profile, clean checkout

Tested

cargo test -p xcl --lib -- gpu_ds_sub_u32_of_a_register gpu::dxil::fuzz_tests --test-threads=1 --nocapture

Default HLSL path:

  • 6 passed, 0 failed, 2 ignored (19.84s)

With XCL_DIRECT_DXIL=1:

  • 6 passed, 0 failed, 2 ignored (6.65s)

All four fuzz batches and gpu_ds_sub_u32_of_a_register passed in both configurations. Each run validated 2,000 seeds and GPU-compared 1,232.

The four fuzz failures previously reported on 689f2db no longer occur with this patch.

Not yet tested: Full workspace suite, release configuration and retail-title smoke pair.

Thanks for investigating and addressing this!

AI use: Tests executed locally by me, with ChatGPT assistance interpreting the output and drafting this report.

**@⁠humicu** on GitHub · 2026-11-24 23:26 UTC · [original](https://github.com/xcl-dev/xcl/issues/1905#issuecomment-7147409026) @⁠PHeitor1 Confirmed working on my RTX 5060 with driver 617.42, originally reported in #1905. **Environment** - Commit: `b54ac4e842a365d75ba97dfd07892cb75a0bd20e` - GPU: NVIDIA GeForce RTX 5060 (8 GB) - Driver: 617.42 - CPU: Ryzen 7 5700X - RAM: 32 GB - DXC: 1.9.2602.17 - Windows SDK: 10.0.26100.0 - Debug test profile, clean checkout **Tested** `cargo test -p xcl --lib -- gpu_ds_sub_u32_of_a_register gpu::dxil::fuzz_tests --test-threads=1 --nocapture` Default HLSL path: - 6 passed, 0 failed, 2 ignored (19.84s) With `XCL_DIRECT_DXIL=1`: - 6 passed, 0 failed, 2 ignored (6.65s) All four fuzz batches and `gpu_ds_sub_u32_of_a_register` passed in both configurations. Each run validated 2,000 seeds and GPU-compared 1,232. The four fuzz failures previously reported on `689f2db` no longer occur with this patch. **Not yet tested:** Full workspace suite, release configuration and retail-title smoke pair. Thanks for investigating and addressing this! AI use: Tests executed locally by me, with ChatGPT assistance interpreting the output and drafting this report.
Author
Owner

@⁠FIJI1299 on GitHub · 2026-11-25 18:24 UTC · original

Verified commit 5835139 on Windows (NVIDIA RTX 5070, driver 621.40, DXC 1.8.2502.11):

  • Baseline (main): cargo test -p xcl --lib fuzz_validate_and_gpu fails (E_OUTOFMEMORY on seeds 70, 545, 1019, 1507).
  • PR #1919 (5835139): Both default HLSL and direct DXIL (XCL_DIRECT_DXIL=1) paths pass all DXIL GPU fuzz tests (6 passed, 0 failed, 2 ignored) cleanly.
**@⁠FIJI1299** on GitHub · 2026-11-25 18:24 UTC · [original](https://github.com/xcl-dev/xcl/issues/1905#issuecomment-7170863022) Verified commit `5835139` on Windows (NVIDIA RTX 5070, driver `621.40`, DXC `1.8.2502.11`): * **Baseline (`main`):** `cargo test -p xcl --lib fuzz_validate_and_gpu` fails (`E_OUTOFMEMORY` on seeds `70`, `545`, `1019`, `1507`). * **PR `#1919` (`5835139`):** Both default HLSL and direct DXIL (`XCL_DIRECT_DXIL=1`) paths pass all DXIL GPU fuzz tests (`6 passed, 0 failed, 2 ignored`) cleanly.
This discussion has been locked. Commenting is limited to contributors.
No description provided.