[Problem]: [Problem]: 0x80070057 in longroad_gpu::host: a host state prelude did not record (UAV on depth texture / frame=3496) #5

Open
opened 2026-12-03 18:33:57 +00:00 by github-bot · 4 comments
Owner

@⁠ontyxxx on GitHub · 2026-12-03 18:27 UTC · original

What kind of problem?

Crashes or closes

What happened?

Recurring crash during the opening cutscene / early frames (observed around frame=1988 and frame=3496, as well as a prior session ending after method not implemented object="command queue" slot=0xb8). Reproduces consistently on both main and night-1203.

Before the crash on frame=3496, logs show unordered access view of a depth texture and first bind pipeline for vertex/pixel stages, followed by:
ERROR longroad_gpu::host: a host state prelude did not record ... (0x80070057); a diagnostics build with LONGROAD_D3D12_DEBUG=1 names the command

INFO longroad_gpu::descriptor::host: unordered access view of a depth texture resource=0x1ab0cba5240 view=Some([56, 4, 0, 0, 421876992, 9, 1770830018, 32763, 420894560, 9])
INFO longroad_gpu::resource: depth texture with unordered access resource=0x1ab0cbaa480 desc=ResourceDesc { dimension: 3, alignment: 0, width: 256, height: 256, depth_or_array_size: 3, mip_levels: 1, format: 53, sample_count: 1, sample_quality: 0, layout: 0, flags: 2150629382 } twin=true
INFO longroad_gpu::pipeline: first bind pipeline=0x1ab151a3950 frame=3496 stage="vertex" size=1260 hash=d5b1bcfe40fd84b2
INFO longroad_gpu::pipeline: first bind pipeline=0x1ab151a3950 frame=3496 stage="pixel" size=1196 hash=fb0b42420f99e5e7
ERROR longroad_gpu::host: a host state prelude did not record ... (0x80070057); a diagnostics build with LONGROAD_D3D12_DEBUG=1 names the command

### Graphics card and its video memory

NVIDIA GeForce RTX 4060 (8 GB)

### CPU

intel core i5 12400f

### RAM

32gb ddr5

### Graphics driver version

NVIDIA GeForce Game Ready 621.40

### Windows

Windows 11

### Ray tracing

Off (-NoRt)

### How you started it

```text
Started via Play-Longroad.cmd from PowerShell in C:\GTA.6.Recomp-InsaneRamZes\longroad-main; tested on both main and night-1203 branches with default/cleared settings and no custom F1 menu changes.
2026-12-03

Which version

ceb62d0

Logs

Version: ceb62d0

Latest crash log (%LOCALAPPDATA%\longroad\data\7952987A\crashes.log):
unix time 1796321593, process 10208
Longroad: host GPU failure: a host state prelude did not record ... (0x80070057); a diagnostics build with LONGROAD_D3D12_DEBUG=1 names the command

Earlier crash entries in crashes.log also show:
title said: FFX FSR4 ACO: DeserializeComputePipelineStateX FAILED hr=0x80004001 for 'FFX_FSR4_PASS_21'..'FFX_FSR4_RCAS_PASS' -- falling back to NewBE

Latest session log tail (%LOCALAPPDATA%\longroad\logs\longroad-nvidia-20261203-211227.log):
INFO longroad_gpu::descriptor::host: unordered access view of a depth texture resource=0x25d8c3c4fa0 view=Some([56, 4, 0, 0, 422139776, 9, 1770830018, 32763, 387231824, 9])
ERROR longroad_gpu::host: a host state prelude did not record ... (0x80070057); a diagnostics build with LONGROAD_D3D12_DEBUG=1 names the command




### Screenshots or a short video

_No response_
**@⁠ontyxxx** on GitHub · 2026-12-03 18:27 UTC · [original](https://github.com/Lesloo/longroad/issues/5) ### What kind of problem? Crashes or closes ### What happened? Recurring crash during the opening cutscene / early frames (observed around frame=1988 and frame=3496, as well as a prior session ending after `method not implemented object="command queue" slot=0xb8`). Reproduces consistently on both `main` and `night-1203`. Before the crash on frame=3496, logs show `unordered access view of a depth texture` and `first bind pipeline` for vertex/pixel stages, followed by: `ERROR longroad_gpu::host: a host state prelude did not record ... (0x80070057); a diagnostics build with LONGROAD_D3D12_DEBUG=1 names the command` ```text INFO longroad_gpu::descriptor::host: unordered access view of a depth texture resource=0x1ab0cba5240 view=Some([56, 4, 0, 0, 421876992, 9, 1770830018, 32763, 420894560, 9]) INFO longroad_gpu::resource: depth texture with unordered access resource=0x1ab0cbaa480 desc=ResourceDesc { dimension: 3, alignment: 0, width: 256, height: 256, depth_or_array_size: 3, mip_levels: 1, format: 53, sample_count: 1, sample_quality: 0, layout: 0, flags: 2150629382 } twin=true INFO longroad_gpu::pipeline: first bind pipeline=0x1ab151a3950 frame=3496 stage="vertex" size=1260 hash=d5b1bcfe40fd84b2 INFO longroad_gpu::pipeline: first bind pipeline=0x1ab151a3950 frame=3496 stage="pixel" size=1196 hash=fb0b42420f99e5e7 ERROR longroad_gpu::host: a host state prelude did not record ... (0x80070057); a diagnostics build with LONGROAD_D3D12_DEBUG=1 names the command ### Graphics card and its video memory NVIDIA GeForce RTX 4060 (8 GB) ### CPU intel core i5 12400f ### RAM 32gb ddr5 ### Graphics driver version NVIDIA GeForce Game Ready 621.40 ### Windows Windows 11 ### Ray tracing Off (-NoRt) ### How you started it ```text Started via Play-Longroad.cmd from PowerShell in C:\GTA.6.Recomp-InsaneRamZes\longroad-main; tested on both main and night-1203 branches with default/cleared settings and no custom F1 menu changes. 2026-12-03 ``` ### Which version ceb62d0 ### Logs Version: ceb62d0 Latest crash log (`%LOCALAPPDATA%\longroad\data\7952987A\crashes.log`): unix time 1796321593, process 10208 Longroad: host GPU failure: a host state prelude did not record ... (0x80070057); a diagnostics build with LONGROAD_D3D12_DEBUG=1 names the command Earlier crash entries in `crashes.log` also show: title said: FFX FSR4 ACO: DeserializeComputePipelineStateX FAILED hr=0x80004001 for 'FFX_FSR4_PASS_21'..'FFX_FSR4_RCAS_PASS' -- falling back to NewBE Latest session log tail (`%LOCALAPPDATA%\longroad\logs\longroad-nvidia-20261203-211227.log`): INFO longroad_gpu::descriptor::host: unordered access view of a depth texture resource=0x25d8c3c4fa0 view=Some([56, 4, 0, 0, 422139776, 9, 1770830018, 32763, 387231824, 9]) ERROR longroad_gpu::host: a host state prelude did not record ... (0x80070057); a diagnostics build with LONGROAD_D3D12_DEBUG=1 names the command ```[cite: 10] ### Screenshots or a short video _No response_
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-03 18:33:58 +00:00
Author
Owner

@⁠Lesloo on GitHub · 2026-12-03 21:30 UTC · original

Thanks for the detailed report! What the error means: before each submission longroad records a short list of its own (state changes, copies between depth textures and their colour twins, texture uploads and, on 8 and 12 GB cards, the texture park's moves). Closing that list failed with E_INVALIDARG, which means the driver refused one of the commands in it, and longroad can't go on from there.

I tried to reproduce it with main set up as an 8 GB RTX 4060 (Series S profile, texture park on, the card's budget capped at 7.6 GB, RT off): 7 minutes in the world with the card full, the same 256x256x3 depth texture made many times, no error, not even with the D3D12 debug layer watching. So something in your setup is still different. Three things would help:

  1. Does it still happen with the texture park off? In PowerShell, in the longroad folder:
    .\scripts\play-longroad.ps1 -More @{ LONGROAD_TEX_PARK = '0' }
  2. A run with the D3D12 debug layer, which names the command the driver refuses:
    .\scripts\play-longroad.ps1 -Build diag -More @{ LONGROAD_D3D12_DEBUG = '1' }
    (the first start builds the diagnostics version, a few minutes, and it runs slower; Windows needs the optional feature "Graphics Tools" for the debug layer). Then the lines just before the error in the newest log in %LOCALAPPDATA%\longroad\logs.
  3. Does it also happen from a save that starts in the world, or only from a new game / the opening? And you're on driver 621.40 (I'm on 621.24): did it start with a driver update?

The method not implemented object="command queue" slot=0xb8 line is a separate thing: a queue method longroad doesn't have yet. If that session ended right after it, its full log would help too.

**@⁠Lesloo** on GitHub · 2026-12-03 21:30 UTC · [original](https://github.com/Lesloo/longroad/issues/5#issuecomment-7392880143) Thanks for the detailed report! What the error means: before each submission longroad records a short list of its own (state changes, copies between depth textures and their colour twins, texture uploads and, on 8 and 12 GB cards, the texture park's moves). Closing that list failed with E_INVALIDARG, which means the driver refused one of the commands in it, and longroad can't go on from there. I tried to reproduce it with main set up as an 8 GB RTX 4060 (Series S profile, texture park on, the card's budget capped at 7.6 GB, RT off): 7 minutes in the world with the card full, the same 256x256x3 depth texture made many times, no error, not even with the D3D12 debug layer watching. So something in your setup is still different. Three things would help: 1. Does it still happen with the texture park off? In PowerShell, in the longroad folder: `.\scripts\play-longroad.ps1 -More @{ LONGROAD_TEX_PARK = '0' }` 2. A run with the D3D12 debug layer, which names the command the driver refuses: `.\scripts\play-longroad.ps1 -Build diag -More @{ LONGROAD_D3D12_DEBUG = '1' }` (the first start builds the diagnostics version, a few minutes, and it runs slower; Windows needs the optional feature "Graphics Tools" for the debug layer). Then the lines just before the error in the newest log in %LOCALAPPDATA%\longroad\logs. 3. Does it also happen from a save that starts in the world, or only from a new game / the opening? And you're on driver 621.40 (I'm on 621.24): did it start with a driver update? The `method not implemented object="command queue" slot=0xb8` line is a separate thing: a queue method longroad doesn't have yet. If that session ended right after it, its full log would help too.
Author
Owner

@⁠ontyxxx on GitHub · 2026-12-04 12:44 UTC · original

Thanks for the detailed explanation! I tested your suggestions on longroad-wave64-fold (RTX 4060 8 GB, i5-12400F, 32 GB RAM, driver 621.40):

  1. LONGROAD_TEX_PARK='0': With texture parking disabled, the 0x80070057 (E_INVALIDARG) crash is completely gone and the game boots and runs without crashing! However, because of the 8 GB VRAM limit without texture parking, about half of the textures in the world are missing and render as solid white.
  2. Repro context: With texture parking enabled (LONGROAD_TEX_PARK default), the crash happens consistently during a new game / intro sequence (around frames 7443–8896, right after binding compute pipeline hash=89d08e561897d4e5), before actually getting into open-world gameplay. I don't have an older save file to test yet, and I haven't tested on drivers prior to 621.40.

Since disabling texture parking fixes the crash, it looks like the invalid D3D12 command is coming specifically from the texture parking transfer/move path on 8 GB cards. I can run a diag build with LONGROAD_D3D12_DEBUG=1 (with texture parking enabled) and share the exact D3D12 debug layer message if that would help pinpoint the exact failing command!

**@⁠ontyxxx** on GitHub · 2026-12-04 12:44 UTC · [original](https://github.com/Lesloo/longroad/issues/5#issuecomment-7411857741) Thanks for the detailed explanation! I tested your suggestions on `longroad-wave64-fold` (RTX 4060 8 GB, i5-12400F, 32 GB RAM, driver 621.40): 1. **`LONGROAD_TEX_PARK='0'`:** With texture parking disabled, the `0x80070057` (`E_INVALIDARG`) crash is completely gone and the game boots and runs without crashing! However, because of the 8 GB VRAM limit without texture parking, about half of the textures in the world are missing and render as solid white. 2. **Repro context:** With texture parking enabled (`LONGROAD_TEX_PARK` default), the crash happens consistently during a new game / intro sequence (around frames 7443–8896, right after binding compute pipeline `hash=89d08e561897d4e5`), before actually getting into open-world gameplay. I don't have an older save file to test yet, and I haven't tested on drivers prior to 621.40. Since disabling texture parking fixes the crash, it looks like the invalid D3D12 command is coming specifically from the texture parking transfer/move path on 8 GB cards. I can run a `diag` build with `LONGROAD_D3D12_DEBUG=1` (with texture parking enabled) and share the exact D3D12 debug layer message if that would help pinpoint the exact failing command!
Author
Owner

@⁠ontyxxx on GitHub · 2026-12-04 13:07 UTC · original

I ran the diag build with LONGROAD_D3D12_DEBUG=1 (with texture parking enabled) and captured the exact D3D12 debug layer output right before the 0x80070057 crash:

WARN longroad_gpu::host: D3D12: ID3D12CommandList::CopyBufferRegion: Using CopyBufferRegion on Command List (0x00000154DA27A390:'Unnamed ID3D12GraphicsCommandList Object'): Resource state (0x400: D3D12_RESOURCE_STATE_COPY_DEST) (assumed at first use) of resource (0x000001513BD28B70:'Unnamed ID3D12Resource Object') (subresource: 0) is invalid for use as a source buffer. Expected State Bits (all): 0x800: D3D12_RESOURCE_STATE_COPY_SOURCE, Assumed Actual State: 0x400: D3D12_RESOURCE_STATE_COPY_DEST, Missing State: 0x800: D3D12_RESOURCE_STATE_COPY_SOURCE. id=538 severity=1

ERROR longroad_gpu::host: a host state prelude did not record (0x80070057); debug layer: ID3D12CommandQueue1::ExecuteCommandLists: Using SetComputeRootShaderResourceView on Command List (0x00000155232EFEC0:'Unnamed ID3D12GraphicsCommandList Object'): Resource state (0x400: D3D12_RESOURCE_STATE_COPY_DEST) (promoted from COMMON state) of resource (0x00000151B40C0A80:'Unnamed ID3D12Resource Object') (subresource: 0) is invalid for use as a root shader resource. Expected State Bits (all): 0x40: D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE, Assumed Actual State: 0x400: D3D12_RESOURCE_STATE_COPY_DEST, Missing State: 0x40: D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE.
**@⁠ontyxxx** on GitHub · 2026-12-04 13:07 UTC · [original](https://github.com/Lesloo/longroad/issues/5#issuecomment-7412404036) I ran the `diag` build with `LONGROAD_D3D12_DEBUG=1` (with texture parking enabled) and captured the exact D3D12 debug layer output right before the `0x80070057` crash: ```text WARN longroad_gpu::host: D3D12: ID3D12CommandList::CopyBufferRegion: Using CopyBufferRegion on Command List (0x00000154DA27A390:'Unnamed ID3D12GraphicsCommandList Object'): Resource state (0x400: D3D12_RESOURCE_STATE_COPY_DEST) (assumed at first use) of resource (0x000001513BD28B70:'Unnamed ID3D12Resource Object') (subresource: 0) is invalid for use as a source buffer. Expected State Bits (all): 0x800: D3D12_RESOURCE_STATE_COPY_SOURCE, Assumed Actual State: 0x400: D3D12_RESOURCE_STATE_COPY_DEST, Missing State: 0x800: D3D12_RESOURCE_STATE_COPY_SOURCE. id=538 severity=1 ERROR longroad_gpu::host: a host state prelude did not record (0x80070057); debug layer: ID3D12CommandQueue1::ExecuteCommandLists: Using SetComputeRootShaderResourceView on Command List (0x00000155232EFEC0:'Unnamed ID3D12GraphicsCommandList Object'): Resource state (0x400: D3D12_RESOURCE_STATE_COPY_DEST) (promoted from COMMON state) of resource (0x00000151B40C0A80:'Unnamed ID3D12Resource Object') (subresource: 0) is invalid for use as a root shader resource. Expected State Bits (all): 0x40: D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE, Assumed Actual State: 0x400: D3D12_RESOURCE_STATE_COPY_DEST, Missing State: 0x40: D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE.
Author
Owner

@⁠ontyxxx on GitHub · 2026-12-04 13:08 UTC · original

Also, as mentioned earlier, setting LONGROAD_TEX_PARK='0' completely avoids this crash on my RTX 4060 8 GB (though half the textures render white due to the 8 GB VRAM limit), and the crash with texture parking enabled consistently occurs during the new game intro sequence on driver 621.40. Hope this helps pinpoint the missing state transition!

**@⁠ontyxxx** on GitHub · 2026-12-04 13:08 UTC · [original](https://github.com/Lesloo/longroad/issues/5#issuecomment-7412425434) Also, as mentioned earlier, setting LONGROAD_TEX_PARK='0' completely avoids this crash on my RTX 4060 8 GB (though half the textures render white due to the 8 GB VRAM limit), and the crash with texture parking enabled consistently occurs during the new game intro sequence on driver 621.40. Hope this helps pinpoint the missing state transition!
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/Lesloo--longroad#5
No description provided.