[Problem]: [Problem]: 0x80070057 in longroad_gpu::host: a host state prelude did not record (UAV on depth texture / frame=3496) #5
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Lesloo--longroad#5
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 bothmainandnight-1203.Before the crash on frame=3496, logs show
unordered access view of a depth textureandfirst bind pipelinefor 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 commandWhich version
ceb62d0Logs
Version:
ceb62d0Latest 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.logalso 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
@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:
.\scripts\play-longroad.ps1 -More @{ LONGROAD_TEX_PARK = '0' }.\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.
The
method not implemented object="command queue" slot=0xb8line 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.@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):LONGROAD_TEX_PARK='0': With texture parking disabled, the0x80070057(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.LONGROAD_TEX_PARKdefault), the crash happens consistently during a new game / intro sequence (around frames 7443–8896, right after binding compute pipelinehash=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
diagbuild withLONGROAD_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 13:07 UTC · original
I ran the
diagbuild withLONGROAD_D3D12_DEBUG=1(with texture parking enabled) and captured the exact D3D12 debug layer output right before the0x80070057crash:@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!