Host prelude reset fails with 0x8007000E during world load with commit headroom #3515

Open
opened 2026-11-27 12:17:51 +00:00 by tharun-37 · 5 comments
tharun-37 commented 2026-11-27 12:17:51 +00:00 (Migrated from github.com)
Contributor

Imported from Marvisak/VIctory. Originally posted by tharun-37 on 2026-11-27T12:17:51Z.


What happens

On an NVIDIA 8 GB laptop during world load, a diagnostics build stops with:

ERROR victory_gpu::host: a host state prelude did not record (Not enough memory resources are available to complete this operation. (0x8007000E))

This is the command allocator/list reset in HostList::prelude, not the process allocator abort tracked in #471 and not a DXGI_ERROR_DEVICE_HUNG removal.

Setup

  • GPU: RTX 4060 Laptop, 8 GB, driver 32.0.16.2140
  • CPU: i7-13650HX, 16 GB RAM
  • OS: Windows 11 build 26300
  • Page file: 8 GB on C:, 32-64 GB on D:; commit limit 54.38 GB
  • Build: local stack of heap/state fixes, diag profile with --features diagnostics, VICTORY_D3D12_DRED=1
  • Title: Xbox Series package 1.0.2.1

Measured

  • Peak process private commit sampled at 3 s intervals: 24,954 MB
  • System commit at that sample: 40.17 of 54.38 GB
  • The failure happened at the next submission after that peak; no device-removal breadcrumb was produced.

So this is not a system commit-limit exhaustion on this host. It looks like a host-side D3D12 allocation failure at a submission boundary.

Why separate

  • #471 is the memory allocation of N bytes failed abort when system commit is exhausted.
  • #468 is the NVIDIA device-hung/report thread.
  • Here the system still had about 14 GB of commit free, and the failing call is the prelude command list reset.

What would help

A run with VICTORY_D3D12_DEBUG=1 and the count of barriers in the failing prelude would show whether the reset is failing because of the barrier batch size or simply because the driver has no memory left for another command allocator. Aggregate counts and messages only; no game files or dumps.

AI-assisted (OpenCode).

<!-- greyfinch-sync:Marvisak/VIctory:issue:6646269213 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3515). Originally posted by [tharun-37](https://github.com/tharun-37) on 2026-11-27T12:17:51Z. --- ## What happens On an NVIDIA 8 GB laptop during world load, a diagnostics build stops with: ``` ERROR victory_gpu::host: a host state prelude did not record (Not enough memory resources are available to complete this operation. (0x8007000E)) ``` This is the command allocator/list reset in `HostList::prelude`, not the process allocator abort tracked in #471 and not a `DXGI_ERROR_DEVICE_HUNG` removal. ## Setup - GPU: RTX 4060 Laptop, 8 GB, driver 32.0.16.2140 - CPU: i7-13650HX, 16 GB RAM - OS: Windows 11 build 26300 - Page file: 8 GB on C:, 32-64 GB on D:; commit limit 54.38 GB - Build: local stack of heap/state fixes, `diag` profile with `--features diagnostics`, `VICTORY_D3D12_DRED=1` - Title: Xbox Series package 1.0.2.1 ## Measured - Peak process private commit sampled at 3 s intervals: 24,954 MB - System commit at that sample: 40.17 of 54.38 GB - The failure happened at the next submission after that peak; no device-removal breadcrumb was produced. So this is not a system commit-limit exhaustion on this host. It looks like a host-side D3D12 allocation failure at a submission boundary. ## Why separate - #471 is the `memory allocation of N bytes failed` abort when system commit is exhausted. - #468 is the NVIDIA device-hung/report thread. - Here the system still had about 14 GB of commit free, and the failing call is the prelude command list reset. ## What would help A run with `VICTORY_D3D12_DEBUG=1` and the count of barriers in the failing prelude would show whether the reset is failing because of the barrier batch size or simply because the driver has no memory left for another command allocator. Aggregate counts and messages only; no game files or dumps. AI-assisted (OpenCode).
andrewpozdnakov7-jpg commented 2026-11-27 12:27:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-27T12:27:17Z.


I checked the error path on 63bcca4. HostList::prelude uses the same message for ID3D12CommandAllocator::Reset, ID3D12GraphicsCommandList::Reset, and ID3D12GraphicsCommandList::Close. The current log cannot identify which call returned 0x8007000E. Close is also where D3D12 can report errors from commands recorded in the list. Current prelude source

VICTORY_D3D12_DEBUG=1 already makes fail() read the debug queue in a diagnostics build. For the recovery work claimed in #1633, separate labels for the two resets and Close would establish the first failing call. The number of depth-twin copies and state barriers would give context if the failure is at Close.

The commit-headroom sample and the HRESULT are useful. I confirmed the ambiguity in the source without reproducing the laptop's allocation failure. AI-assisted with Codex.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7218261610 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3515#issuecomment-7218261610). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-27T12:27:17Z. --- I checked the error path on `63bcca4`. `HostList::prelude` uses the same message for `ID3D12CommandAllocator::Reset`, `ID3D12GraphicsCommandList::Reset`, and `ID3D12GraphicsCommandList::Close`. The current log cannot identify which call returned `0x8007000E`. `Close` is also where D3D12 can report errors from commands recorded in the list. [Current prelude source](https://github.com/Marvisak/VIctory/blob/63bcca43c6a00a758510398fa43096ce7e4f7df0/crates/victory-gpu/src/host.rs#L1950-L1988) `VICTORY_D3D12_DEBUG=1` already makes `fail()` read the debug queue in a diagnostics build. For the recovery work claimed in [#1633](https://github.com/Marvisak/VIctory/issues/1633#issuecomment-7218078293), separate labels for the two resets and `Close` would establish the first failing call. The number of depth-twin copies and state barriers would give context if the failure is at `Close`. The commit-headroom sample and the HRESULT are useful. I confirmed the ambiguity in the source without reproducing the laptop's allocation failure. AI-assisted with Codex.
tharun-37 commented 2026-11-27 12:28:50 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by tharun-37 on 2026-11-27T12:28:50Z.


Additional run on the same host with the tester switches (VICTORY_SHADER_LOOP_LIMIT=32, VICTORY_SKIP_WAVE64=mesh,compute): the same a host state prelude did not record (0x8007000E) failure appeared after the world rendered. Sampled peak process private commit was 26,903 MB with system commit at 43.35 of 54.38 GB, so about 11 GB of commit was still free at the sample before the failure.

A later device removal in the same session is a separate failure path.

AI-assisted (OpenCode).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7218292272 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3515#issuecomment-7218292272). Originally posted by [tharun-37](https://github.com/tharun-37) on 2026-11-27T12:28:50Z. --- Additional run on the same host with the tester switches (`VICTORY_SHADER_LOOP_LIMIT=32`, `VICTORY_SKIP_WAVE64=mesh,compute`): the same `a host state prelude did not record (0x8007000E)` failure appeared after the world rendered. Sampled peak process private commit was 26,903 MB with system commit at 43.35 of 54.38 GB, so about 11 GB of commit was still free at the sample before the failure. A later device removal in the same session is a separate failure path. AI-assisted (OpenCode).
ColorMeBoom commented 2026-11-28 14:44:56 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by ColorMeBoom on 2026-11-28T14:44:56Z.


Same failure on AMD, with a likely common factor: both machines have 16 GB of RAM.

Setup:

  • RX 5700 XT, 8 GB (Navi 10, RDNA1, no mesh shaders), driver 32.0.21045.29003;
  • Ryzen 7 3700X, 16 GB RAM, Windows 11 26300;
  • paging file 40 GB on C:, commit limit 55.9 GB;
  • release build of main 63bcca4, own dump of 1.0.2.1, shader cache translated first.

Two runs, both into the world, both ending on 0x8007000E:

Series X Series S
World frame rate 0.2–0.6 fps 0.9–1.8 fps
Ended ~8 min, a host state prelude did not record ~5 min, a host command list did not close
Allocation warnings just before 4 no shared buffer + 1 no mapped buffer (81,920 bytes) 70 no shared buffer (65,536 and 4,194,304 bytes) + 3 no mapped buffer

So the prelude/Close error is the end of a run of failed allocations, not the first failure. The first failures are the CPU-visible committed buffers in host.rs (no shared buffer, no mapped buffer).

It isn't commit. Sampled shortly before the Series S failure:

  • system commit: 20.1 of 55.9 GB;
  • free RAM: 8.9 GB;
  • process private: 8.8 GB.

What does match: Windows caps the system memory a GPU can use (shared GPU memory) at half of RAM. dxdiag here reports Shared Memory: 8161 MB next to Dedicated 8151 MB. The paging file doesn't change that cap. Your laptop also has 16 GB RAM and failed with 11–14 GB of commit still free. I'd guess the same ~8 GB shared cap is what runs out there. That's an inference from the two machines; I haven't measured the process's non-local usage at the moment of failure (QueryVideoMemoryInfo(DXGI_MEMORY_SEGMENT_GROUP_NON_LOCAL) would show it). If it holds, the 32 GB machines that reach the world on 8 GB cards have a 16 GB cap, which would explain why they don't hit this.

Aggregate log lines only; no game files.

AI use: Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7240901515 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3515#issuecomment-7240901515). Originally posted by [ColorMeBoom](https://github.com/ColorMeBoom) on 2026-11-28T14:44:56Z. --- Same failure on AMD, with a likely common factor: both machines have 16 GB of RAM. **Setup:** - RX 5700 XT, 8 GB (Navi 10, RDNA1, no mesh shaders), driver 32.0.21045.29003; - Ryzen 7 3700X, **16 GB RAM**, Windows 11 26300; - paging file 40 GB on C:, commit limit 55.9 GB; - release build of `main` `63bcca4`, own dump of 1.0.2.1, shader cache translated first. **Two runs, both into the world, both ending on `0x8007000E`:** | | Series X | Series S | |---|---|---| | World frame rate | 0.2–0.6 fps | 0.9–1.8 fps | | Ended | ~8 min, `a host state prelude did not record` | ~5 min, `a host command list did not close` | | Allocation warnings just before | 4 `no shared buffer` + 1 `no mapped buffer` (81,920 bytes) | 70 `no shared buffer` (65,536 and 4,194,304 bytes) + 3 `no mapped buffer` | So the prelude/`Close` error is the end of a run of failed allocations, not the first failure. The first failures are the CPU-visible committed buffers in `host.rs` (`no shared buffer`, `no mapped buffer`). **It isn't commit.** Sampled shortly before the Series S failure: - system commit: 20.1 of 55.9 GB; - free RAM: 8.9 GB; - process private: 8.8 GB. **What does match:** Windows caps the system memory a GPU can use (shared GPU memory) at half of RAM. `dxdiag` here reports **Shared Memory: 8161 MB** next to Dedicated 8151 MB. The paging file doesn't change that cap. Your laptop also has 16 GB RAM and failed with 11–14 GB of commit still free. I'd guess the same ~8 GB shared cap is what runs out there. That's an inference from the two machines; I haven't measured the process's non-local usage at the moment of failure (`QueryVideoMemoryInfo(DXGI_MEMORY_SEGMENT_GROUP_NON_LOCAL)` would show it). If it holds, the 32 GB machines that reach the world on 8 GB cards have a 16 GB cap, which would explain why they don't hit this. Aggregate log lines only; no game files. AI use: Claude Code (Claude Opus 5.5).
andrewpozdnakov7-jpg commented 2026-11-28 15:10:22 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T15:10:22Z.


#3753 adds a DXGI snapshot at the existing out-of-memory warnings for shared and mapped buffers in diagnostic builds. It records the process's local and non-local usage and budget on the adapter that owns the D3D12 device.

If one of these warnings appears during a normal run on the patched diagnostic build, the first no shared buffer or no mapped buffer line and the nearby DXGI memory budget at buffer allocation failure line would help check the shared-memory hypothesis. The snapshot samples the process budget at the failure. Windows CI and the synthetic check

AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7241259547 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3515#issuecomment-7241259547). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-28T15:10:22Z. --- #3753 adds a DXGI snapshot at the existing out-of-memory warnings for shared and mapped buffers in diagnostic builds. It records the process's local and non-local usage and budget on the adapter that owns the D3D12 device. If one of these warnings appears during a normal run on the patched diagnostic build, the first `no shared buffer` or `no mapped buffer` line and the nearby `DXGI memory budget at buffer allocation failure` line would help check the shared-memory hypothesis. The snapshot samples the process budget at the failure. [Windows CI and the synthetic check](https://github.com/Marvisak/VIctory/pull/3753#issuecomment-7241251435) AI-assisted with OpenAI Codex.
ColorMeBoom commented 2026-11-28 15:27:28 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by ColorMeBoom on 2026-11-28T15:27:28Z.


Confirmed with #3753's snapshot on this machine (RX 5700 XT 8 GB, 16 GB RAM, Series S). At the first no shared buffer:

  • non-local: 8,128 MB used against a budget of 7,862 MB;
  • local: 5,323 of 7,742 MB used.

The run ended 24 s later on a host command list did not close (0x8007000E). So it's the shared (non-local) segment, about half of RAM, that runs out, not commit or video memory. Details: #3753 comment.

AI use: Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7241480760 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3515#issuecomment-7241480760). Originally posted by [ColorMeBoom](https://github.com/ColorMeBoom) on 2026-11-28T15:27:28Z. --- Confirmed with #3753's snapshot on this machine (RX 5700 XT 8 GB, 16 GB RAM, Series S). At the first `no shared buffer`: - **non-local:** 8,128 MB used against a budget of 7,862 MB; - **local:** 5,323 of 7,742 MB used. The run ended 24 s later on `a host command list did not close (0x8007000E)`. So it's the shared (non-local) segment, about half of RAM, that runs out, not commit or video memory. Details: [#3753 comment](https://github.com/Marvisak/VIctory/pull/3753#issuecomment-7241480548). AI use: Claude Code (Claude Opus 5.5).
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
Marvisak/VIctory#3515
No description provided.