startup_list_resubmit_hardware and _untracked_hardware crash (0xC0000005) on an NVIDIA adapter after the step 7 Close/Reset #1869

Closed
opened 2026-11-24 19:57:31 +00:00 by Leyukaka · 1 comment
Leyukaka commented 2026-11-24 19:57:31 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-24T19:57:31Z.


startup_list_resubmit_hardware and startup_list_resubmit_untracked_hardware crash with an access violation on an NVIDIA adapter. Both _warp variants pass on the same machine and build.

Environment

  • Commit: 106555ab (main), dev preset (Debug)
  • Windows 11 build 26300.9974, MSVC 14.44.35207
  • Adapter: NVIDIA GeForce RTX 5080 (vendor=10de device=2c02), driver 32.0.16.2101
  • Debug layer: not available. The tests set X2W_D3D12_DEBUG=1, and the stand-in logs x2w-d3d12 debug layer: 0x887a002d (not installed?), so no info queue is present and the probe's debug-layer error count reads 0 on both backends.

Reproduction

ctest --preset dev --no-tests=error -R '^startup_list_resubmit(_untracked)?_(hardware|warp)$' --output-on-failure
Test Result
startup_list_resubmit_warp pass
startup_list_resubmit_untracked_warp pass
startup_list_resubmit_hardware SegFault
startup_list_resubmit_untracked_hardware SegFault

Running the executable directly with the tests' environment (X2W_D3D12_PERMISSIVE=1 X2W_D3D12_LIST_NOOP=1 X2W_D3D12_RENDER=1 X2W_D3D12_DEBUG=1, plus X2W_TEST_SUBMIT_FENCE_FAIL=1 for untracked), with stdout and stderr redirected, gives exit code 0xC0000005 for both startup_list_resubmit hardware and startup_list_resubmit hardware untracked. That is neither a step code nor the 77 skip, so the process crashes. The last stand-in lines before the crash are the two diagnostics step 7 provokes on purpose:

x2w-d3d12 Device::CreateCommandQueue type=2 priority=0 flags=0x0 node=0x0 riid=0ec870a6-5d7e-4c22-8cfc-5baae07616ed -> 0x00000000
x2w-render list Close failed 0x80004005
x2w-render list Reset failed 0x80070057 (allocator ...)

Reaching the step 7 compute queue implies that steps 1 to 6 passed their checks on this adapter (each failure returns its own step code first). Their printed lines are lost because the probe writes them with printf to redirected, fully buffered stdout. The crash is at or after the step 7 wrong-type Reset. On the success path the stand-in logs nothing further, so the log does not say which call faults.

On WARP, the same step continues with 7 recovered Reset: 0x00000000, Close: 0x00000000 and the run passes.

Not established

  • which call in step 7, or teardown, faults, and in which module;
  • whether the missing debug layer matters (the _warp runs also had no debug-layer validation);
  • whether other adapters or drivers are affected.

A hypothesis from reading the code, not tested: the recovery branch of list_reset (src/startup_stubs/d3d12_xs_device.cpp, after list Reset failed) creates a replacement COMPUTE list on an allocator that still holds the failed recording, and releases the old list while its earlier submission is still queued behind the step's gate. WARP accepts this; a hardware driver may not. Running the probe in a console (unbuffered stdout) would show whether 7 failed Close and 7 recovered are printed before the crash.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6590229809 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1876). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-24T19:57:31Z. --- `startup_list_resubmit_hardware` and `startup_list_resubmit_untracked_hardware` crash with an access violation on an NVIDIA adapter. Both `_warp` variants pass on the same machine and build. ## Environment - Commit: `106555ab` (`main`), `dev` preset (Debug) - Windows 11 build 26300.9974, MSVC 14.44.35207 - Adapter: NVIDIA GeForce RTX 5080 (`vendor=10de device=2c02`), driver 32.0.16.2101 - Debug layer: not available. The tests set `X2W_D3D12_DEBUG=1`, and the stand-in logs `x2w-d3d12 debug layer: 0x887a002d (not installed?)`, so no info queue is present and the probe's debug-layer error count reads 0 on both backends. ## Reproduction ```text ctest --preset dev --no-tests=error -R '^startup_list_resubmit(_untracked)?_(hardware|warp)$' --output-on-failure ``` | Test | Result | |---|---| | `startup_list_resubmit_warp` | pass | | `startup_list_resubmit_untracked_warp` | pass | | `startup_list_resubmit_hardware` | `SegFault` | | `startup_list_resubmit_untracked_hardware` | `SegFault` | Running the executable directly with the tests' environment (`X2W_D3D12_PERMISSIVE=1 X2W_D3D12_LIST_NOOP=1 X2W_D3D12_RENDER=1 X2W_D3D12_DEBUG=1`, plus `X2W_TEST_SUBMIT_FENCE_FAIL=1` for `untracked`), with stdout and stderr redirected, gives exit code `0xC0000005` for both `startup_list_resubmit hardware` and `startup_list_resubmit hardware untracked`. That is neither a step code nor the 77 skip, so the process crashes. The last stand-in lines before the crash are the two diagnostics step 7 provokes on purpose: ```text x2w-d3d12 Device::CreateCommandQueue type=2 priority=0 flags=0x0 node=0x0 riid=0ec870a6-5d7e-4c22-8cfc-5baae07616ed -> 0x00000000 x2w-render list Close failed 0x80004005 x2w-render list Reset failed 0x80070057 (allocator ...) ``` Reaching the step 7 compute queue implies that steps 1 to 6 passed their checks on this adapter (each failure returns its own step code first). Their printed lines are lost because the probe writes them with `printf` to redirected, fully buffered stdout. The crash is at or after the step 7 wrong-type Reset. On the success path the stand-in logs nothing further, so the log does not say which call faults. On WARP, the same step continues with `7 recovered Reset: 0x00000000, Close: 0x00000000` and the run passes. ## Not established - which call in step 7, or teardown, faults, and in which module; - whether the missing debug layer matters (the `_warp` runs also had no debug-layer validation); - whether other adapters or drivers are affected. A hypothesis from reading the code, not tested: the recovery branch of `list_reset` (`src/startup_stubs/d3d12_xs_device.cpp`, after `list Reset failed`) creates a replacement COMPUTE list on an allocator that still holds the failed recording, and releases the old list while its earlier submission is still queued behind the step's gate. WARP accepts this; a hardware driver may not. Running the probe in a console (unbuffered stdout) would show whether `7 failed Close` and `7 recovered` are printed before the crash. AI-assisted.
R0Y00 commented 2026-11-24 21:01:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T20:36:07Z.


I reproduced both hardware failures on a second NVIDIA configuration: RTX 4060 Laptop (616.56), Windows 11 26200.9974, Debug, main df40e4bc. With the debug layer on, four registered cases passed. With it off, the hardware fixture exited 0xC0000005 in both tracked and untracked modes. Unbuffered checkpoints isolated the fault to the replacement Close, after the recovery Reset returned and before the replacement was submitted or the gate was released. I verified #1888's allocator rotation with the debug layer both on and off: eight WARP and RTX tracked/untracked cases passed. The issue stays open for the protected merge and a final RTX 5080 confirmation.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7143798444 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1876#issuecomment-7143798444). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T20:36:07Z. --- I reproduced both hardware failures on a second NVIDIA configuration: RTX 4060 Laptop (616.56), Windows 11 26200.9974, Debug, main df40e4bc. With the debug layer on, four registered cases passed. With it off, the hardware fixture exited 0xC0000005 in both tracked and untracked modes. Unbuffered checkpoints isolated the fault to the replacement Close, after the recovery Reset returned and before the replacement was submitted or the gate was released. I verified #1888's allocator rotation with the debug layer both on and off: eight WARP and RTX tracked/untracked cases passed. The issue stays open for the protected merge and a final RTX 5080 confirmation.
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
R0Y00/Xbox2Windows#1869
No description provided.