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

Open
opened 2026-11-27 12:24:00 +00:00 by github-bot · 2 comments
Owner

@⁠tharun-37 on GitHub · 2026-11-27 12:17 UTC · original

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).

**@⁠tharun-37** on GitHub · 2026-11-27 12:17 UTC · [original](https://github.com/Marvisak/VIctory/issues/3515) ## 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).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 12:24:00 +00:00
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-27 12:27 UTC · original

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.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-27 12:27 UTC · [original](https://github.com/Marvisak/VIctory/issues/3515#issuecomment-7218261610) 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://git.gtahub.st/github/Marvisak--VIctory/issues/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.
Author
Owner

@⁠tharun-37 on GitHub · 2026-11-27 12:28 UTC · original

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).

**@⁠tharun-37** on GitHub · 2026-11-27 12:28 UTC · [original](https://github.com/Marvisak/VIctory/issues/3515#issuecomment-7218292272) 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).
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/Marvisak--VIctory#3515
No description provided.