[AMD RX 6600 / RDNA2] GPU page fault (DEVICE_HUNG) ~5 s after the world's first frames, every run, incl. v1.0.11-amd #63
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/gamingwithhomie--larp#63
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?
@Tempus3214 on GitHub · 2026-12-05 16:59 UTC · original
Summary
On an RX 6600 (RDNA2), the title gets through loading and shader building, then the host device is removed 4–6 s after the world starts drawing (draws/frame jumps from ~10 to 260–400; that frame takes 3.5–9.8 s). Exit code
-2005270523(0x887A0005). The removal reason is0x887A0006(DEVICE_HUNG). WithLARP_D3D12_DRED=1, it is a GPU page fault at an address no allocation holds. It happened on every run that reached the world (10 runs; DRED was on for the last 7), on three builds, including the official v1.0.11-amd (amd-test88f6950, SHA-256400D2F42…8F66). The view-heap cap in v1.0.11-amd does not change it.System
series-s.cmd),frame_rate = 60,stream_budget = default, title settings all defaultWhat the crash looks like
play.log, every run:host GPU device removed …; page fault at 0x…; no title memory copy below it; …; breadcrumbs (done/count, list) [...]0x1a2320000,0x1ccf6c000,0x1d2150000,0x180cc8000,0x1f0406000,0x188492000, and0x7d825000(the GBV run, where the heaps sat elsewhere). All of them are below every title-memory copy, and none is inside the view or sampler heap.GetPageFaultAllocationOutput1lists no existing and no recently freed allocation at the VA.done == count), so no command is named.unordered buffer view: the host would refuse it, left null format=39 first=~10550000 count=0 stride=0 raw=true width=182452224firstvaries a little per run; the buffer and its width are always the same. The view comes from the title withNumElements = 0, and the source's comment says this is deliberate. I note it only because it is the one consistent marker of the moment.What was tried (each one still faults the same way)
LARP_RT_WHOLE=1(no reserved buffers for RT structures, positions pool, streamed geometry)LARP_RT_OFF=1: host ray tracing off (themake_ready() → Nonepath; log confirmshost ray tracing: off)LARP_SKIP_PIPELINES= the 3 compute shaders GBV flags belowLARP_D3D12_DEBUG=1 LARP_D3D12_GBV=1GPU-based validation (v1.0.11-amd)
GBV ran through to the fault. It reported only these kinds, all at the world's first frames:
UAV Dimension Expected: RawBuffer, In Descriptor: TypedBuffer: compute17af15c4015cb4b6,55679a0547649d0b,b83629b90cd2b7bcComponent Type Expected: FLOAT/UNORM/SNORM, In Descriptor: UINT(UAV and SRV): compute91b10a73e48b2192,b83629b90cd2b7bc,4fb416369fc50b6e,c1488f485ad606fb, and a few others; also once in an amplification shader.There were no out-of-bounds, uninitialized-descriptor or destroyed-resource messages, and the page fault still happened. So I think the faulting address does not come through the descriptor heap. It more likely comes through a raw GPU VA that GBV does not check: root CBV/SRV/UAV, ExecuteIndirect arguments, IA buffer views, copies, or one of the layer's own passes. Ray tracing is ruled out by
LARP_RT_OFF.Not tried yet
LARP_HOST_MAX_WAVE=32(shaders translated for wave32)LARP_BVH_FENCES=0Patch attached (against iceboerg00/larp-amd 45cc4f6,
crates/larp-gpu)relay_land), it names every flight's pipelines first (slow) and only then callsremoval_data. Meanwhile another thread, herecopy_sendwithfail("no list for the copy queue"), reachesfail()→abort(), and the DRED data is never written. The patch does three things:fail()on other threads wait while one thread writes the report (60 s at most).With it, the DRED page-fault line shows up in every run.
LARP_RT_OFF: turns host ray tracing off through the existing set-up-failure path. Useful for bisecting.Attachments (
larp-rdna2-page-fault.zip, Windows username stripped)logs/play-v1.0.11-amd.log: v1.0.11-amd run (with the 3-shader skip list)logs/play-v1.0.11-amd-gpu-validation.log: v1.0.11-amd with debug layer + GBVlogs/play-patched-build-rt-off.log: 45cc4f6 + patch,LARP_RT_OFF=1data/7952987A/crashes.log: every run's failure line, settings.ini, options.inilarp-dred-report-race-and-rt-off.patchI'm happy to run a build with extra checks (for example validating root-descriptor / indirect VAs against live resources at record time) if that would help.
@kaseess on GitHub · 2026-12-05 18:06 UTC · original
Confirmed on a third RDNA2 card (RX 6950 XT, gfx1030). Same binary as the OP's:
Two findings that may save you time.
1. Six compute shaders fail to translate on gfx10 —
LARP_HOST_MAX_WAVE=32fixes all of themWith
effective=64there are 6 of these. WithLARP_HOST_MAX_WAVE=32:So the 32-lane path avoids the whole class. Worth making the default on
VendorId == 0x1002unless there is a reason not to — right now RDNA 2 users have no way to know this switch exists.It does not fix the removal, but it removes six dropped compute pipelines from the picture, which makes the remaining fault much easier to attribute.
2. The removal follows a refused buffer view being left as a null descriptor
Every removal in my logs is preceded, 3–7 s earlier, by:
firstdrifts slightly between runs (10547616,10548160— the same ~10.5 MB buffer, 544 bytes apart),count=0,stride=0,format=39(R8G8_SINT). Then:This matches the "no title memory copy below it" page fault in #83: the slot holds no resource, the shader picks it up bindless by index, and the read faults.
Source,
crates/larp-gpu/src/descriptor/host.rs:buffer_view_ok(line ~2270) refuses a view whose(first + count) * element > width, and also refusescount == 0outright (count > 0 && …).elements_inside(line ~2304) can clamp a past-the-end view to zero elements, which lands in the same refusal.buffer_srvline ~2618,buffer_uavline ~2743) callnull_buffer()/left_null()andreturn None, so the caller leaves the slot null.The comment above
buffer_view_okalready says the console is laxer here and that "one such view ended the run" — so this is a known divergence, not something new. The question is whether the null slot can become a zero view instead:The console semantics are "a view of no records reads as zero", and that also covers the
elements_insideclamp. If the descriptor-shift/bindless machinery can address such a slot, it looks like a contained change; if not, I would like to know why, because every RDNA 2 report in this tracker looks like the same read.Ruled out on this machine
hold 1000000 views), crash unchanged.LARP_BVH_FENCES=0— tested, no change.LARP_D3D12_DEBUG=1— silent: the descriptor is legal from the API's point of view, the fault is at execution.LARP_D3D12_DRED=1— produced nothing in my log without the Windows Graphics Tools installed, so I could not get breadcrumbs; the OP of #63 got them, so following their setup is the way.shader-replace(all 154 files byte-identical to the official package), so it is not a localisation artefact.32.0.21045.16010, I am on32.0.21045.20006; identical symptoms, so it is not one driver regression.Environment
Runs survive 60 s to 34 min depending on the build and switches; the longest was 34 min on an unmodified v1.0.11-amd.
@jiangbei876-beep on GitHub · 2026-12-05 19:16 UTC · original
issue-63-comment.md
@jiangbei876-beep on GitHub · 2026-12-05 19:18 UTC · original
I tested v2026.12.05-amd-rdna2-test2 with mesh_counts = exact on an RX 6600 (RDNA2) and it still removes the device, 19 seconds after "the title's render phases are built" — same GPU page fault as before, not a TDR.
The write-up below has the full timeline, the removal line, and a table of what has been ruled out on this card (LARP_VIEW_HEAP capped and uncapped, TdrDelay = 10, stream_budget 2500/1800, frame_rate 60/30, both series-s and series-x).
The one detail worth noticing: the "slots" it faults on are 86,718,080 and 173,472,000 against heaps of 2,097,152 and 8,192 — those aren't oversized indices, they're values that were never descriptor indices. That lines up with the null-descriptor / bindless read theory in #63.
@madaraXor on GitHub · 2026-12-05 19:39 UTC · original
Written with Claude (an AI assistant) from my logs, at my request.
Same crash on an RX 6700 XT with the AMD patches that are not merged yet, in Series X mode, so the device removal is not explained by the patches so far nor by the Series S shader failures (#81).
Setup
32.0.21045.29003D3D12\next tolarp.execargo build --profile diag -p larp --features diagnostics; no runtime package (no DLSS/FSR folders),LARP_SHADER_REPLACE= the freshly builttarget\shader-replacelarp run game_scarlett_master.exe --execute --console series-x --stream-budget 3000,LARP_D3D12_DRED=1TdrDelay = 10for these runs, to rule out the default 2 s timeoutBuild:
main0f03265plus, cherry-picked:45cc4f6(view heap of 1,000,000),750aabb(wave32 retry for programs a 64-lane host refused),3bf93ae+19bb0d2(BVH builder atomic UAV fences),05e4140(null buffer views by element that end past 4 GiB)c2821e4)What happens (times UTC)
being made 0).amdxc64.dllcrashed twice during compilation (+0xccf439,+0x6b8f74); relaunching resumed.19:35:05: intro at 30 fps, ~11 draws/frame.19:35:10:unordered buffer view: the host would refuse it, left null format=39 first=10402336 count=0 stride=0 raw=true width=182452224, the same buffer width as in this issue and #83.19:35:16: first world frame, 7,898 draws, 6,950 ms.19:35:19: device removed (0x887A0005).What this rules out
05e4140is not the path: its warning (buffer view by element ending past 4 GiB) never appears.does not translatewarnings (38 shaders): 29malformed shader: no DXIL part(the #81 set, most likely replayed from the creation list recorded in my earlier Series S runs), 5a descriptor read only as data, 3a hardware SGPR input, 1a constant lane mask. None of them appears indraws dropped without a host pipelineduring the Series X run. In Series S, 20 of them did, and the world frame had only 496 draws. So in Series X no compute work was dropped before the removal.larp_gpu::regions: title memory read inside a buffer the GPU ownserrors in the seconds before the removal are still there with it.d5c2908, before these patches) were removed the same way within ~7 s of the world's first frames, withTdrDelayat 2 s and at 10 s (reason0x887A0006, DEVICE_HUNG, in the 10 s run).DRED report lost to the race described above
DRED was on in every run, but its report was never printed. The Series X run ended through
mips: the title's branch at 0x14404d956 was reached ... stoppingon another thread, beforeremoval_data. The Series S run withTdrDelay = 10ended througha host command list did not reset. This is the race the OP's patch fixes; merging it would make RDNA2 reports carry the page-fault line.Happy to run a build with that patch or with extra checks.
@madaraXor on GitHub · 2026-12-05 20:50 UTC · original
Written with Claude (an AI assistant) from my logs, at my request.
Follow-up from the RX 6700 XT above (driver
32.0.21045.29003, Windows 10 22H2), now on the larp-amd fork's builds, built from source,--console series-s --stream-budget 2500,LARP_D3D12_DRED=1.AMD GPU detectedlinef6954fc)rdna2=true heap_first_lane=trueno list for the copy queue(0x887A0006), no device-removed datad444d19)rdna2=true heap_first_lane=true quad_live=falseEach RDNA 2 workaround moved the crash later, but it is still there. With amd-4 the device-removed data now reaches the log (thanks to
3655982):It is the same signature as the OP's: the address is in no allocation, below every title memory copy and outside both heaps, and every list's breadcrumbs are complete, so no command is named. The
unordered buffer view: the host would refuse it, left null ... width=182452224warning no longer appears in the test3 and amd-4 runs.Happy to test the next build.
@Evan-Lowry on GitHub · 2026-12-05 23:25 UTC · original
RX 6800 (RDNA2): device removed with GPU page fault on world entry, v1.1.3-amd
bccc4d3), Windows 11 26300, Radeon driver 32.0.21045.29003DRED (LARP_D3D12_DRED=1):
@jmsncode on GitHub · 2026-12-05 23:50 UTC · original
Written with Claude (an AI assistant) from my logs, at my request.
Another RX 6600 data point on the current
amd-test(bccc4d3, v1.1.3-amd), built from source. It is the same page fault as above, plus two things I have not seen reported here.System: RX 6600 8 GB, driver 32.0.21045.29003, Ryzen 5 5600X, 32 GB, Windows 10 22H2 (19045).
Run settings:
--console series-s --stream-budget 2000, fresh cache, a copy ofsaves\+storage\only.Only local change:
D3D12SDKVersionset to 621 to match the Agility SDK 1.621.0 runtime inbin\D3D12\.1. Stock build: the whole PC hung, not just larp.
0x887A0006("host GPU device removed after 1 submissions sent ahead of 32 lists").CM_PROB_DISABLED) until I re-enabled it by hand.2. ReVIctory PR #19's split stops the system hang, but not the fault.
ReVIctory PR #19 (RX 6800 XT TDRs) sends the card compare list (
card.check) to the queue in anExecuteCommandListscall of its own. The reason is that an earlier list in the same call can leave a host copy promoted toCOPY_DESTwhile the check reads it as a shader resource (debug layer ID 538).I ported it to larp's late path in
host.rs, aftercard_before:With that change and
LARP_D3D12_DRED=1, results were as follows:page fault at 0x1effdb000; no title memory copy below it; the nearest above: 0x904369280+0x120000 at host 0x320380000 (6259 copies in all).0x100740000+0x1e84800and the fault is0xeda16800past its end. The sampler heap is0x100086000+0x8000and the fault is0xeff4d000past its end.a25ed0e3d4d521ba,fa0c0819dc86ca60,00167d58cc5a78d7, …) andmesh 3a93976a475b8bdb.So on this card the barrier issue seems to be what turns the fault into a full-system hang. The page fault itself has a separate cause: an address outside every heap and copy.
For comparison, ReVIctory v0.5.0 with the same split ran this game on this card for a 2 h 44 min session without a device removal. It also needs
VICTORY_JOIN_PARTS=1;VICTORY_JOIN_SEND=0;VICTORY_PLANE_NOW=0, which may point at a larp equivalent worth trying.I can test a build when there is one.
@D1plom4ta on GitHub · 2026-12-06 01:03 UTC · original
same issue on the RX6600
@kaseess on GitHub · 2026-12-06 01:20 UTC · original
RDNA2 / RX 6950 XT: v1.1.6-amd still removes the device — and the chain points at FSR4 pipeline compilation, not at the layer's draws
Same machine as my earlier comment (RX 6950 XT 16 GB, gfx1030, Ryzen 5 5600X, 2×8 GB DDR4-3600, Windows 11 26300.9974, driver 32.0.21045.20006, Series S).
Fresh v1.1.6-windows-amd-FULL.zip, SHA-256
2538CA2B…AAB044,bin\larp.exe16,223,232 B SHA-256F14B3B35…AE11— i.e. an unmodified official build, no local patches.Timeline
22866reached 5280 → device removed 0x887A0006 after 35 min,no host list for the mip handles' copiessettings.ini:upscaler=off,frame_generation=offa host command list did not reset (0x887A0005)upscaler=offenforced read-only so the title cannot rewrite itIn all three, 3 s before the removal the log carries the same block:
and in one run the fault underneath it is the driver's own shader compiler:
(The same
amdxc64.dllshows up in the crash log of the Darner layer on this machine,0xc0000005 at amdxc64.dll+0xcde91c, so it is not specific to larp's own code.)What the chain looks like
DeserializeComputePipelineState, which the layer answersE_NOTIMPL;amdxc64.dll) and faults;Two switches that do not avoid it
upscaler = offinsettings.ini(the layer reports4 of 103 options set: upscaler=off, upscaler_mode=quality, frame_generation=off) — FSR4 passes are still compiled at start.amd_fidelityfx_upscaler_xbox.dllfrom the game folder (renamed to.bak, layer logshost DLL: outside the host policy, refused dll="amd_fidelityfx_upscaler_xbox.dll") — the run then dies earlier with0xc0000094integer divide by zero atlarp-image+0x28f03e8(rcx=0,rdx=0), so something divides by a size that came from that module.Ask
DeserializeComputePipelineStateimplementable (return a real pipeline, or a pipeline the title can skip), so the title never falls into the runtime compile for FSR4 on RDNA2?upscaler=offdoes not cover it.settings.ini?Logs and the minidump (Breakpad uploads
game_scarlett_master-*.dmp) are available on request.@kaseess on GitHub · 2026-12-06 01:35 UTC · original
Addendum: DRED capture on the RX 6950 XT (Series X)
Same machine (RX 6950 XT, gfx1030, driver 32.0.21045.20006, Windows 11 26300.9974), official v1.1.6-amd,
--console series-x,upscaler=off,LARP_D3D12_DRED=1. DRED does carry RDNA2 reports — thank you for that.Timeline (UTC):
Two observations, stated only as far as the log goes:
done == count, so no command is named — the same shape as the OP's and @madaraXor's reports.near_heapsreports both heaps aspast its endbecause the faulting VA simply lies above both heap ranges; I read that at first as a descriptor index running past the heap, but with the heap at 0x100410000 and the fault at 0x1b6c38000 the "slot" figure there is arithmetic, not a slot anyone used. So this run says nothing about descriptor indices — it is a shader reading an address the layer never mapped.What would tell us more, if it is useful to you: something in the removal report that says whether 0x1b6c38000 was ever inside a host allocation (a title-memory copy, a sparse chunk, a plain buffer) and if so which one and when it was released — a use-after-free on a host buffer would look exactly like this. With
--features diagnosticson the build we use, is there a counter or ashows/nullviewsline that already answers that, or would a small patch be needed?I have the build tree and the toolchain here, so I can run any diagnostic build you point at.
@22tw on GitHub · 2026-12-06 01:39 UTC · original
RX 6800 XT 16 GB (RDNA2), driver 32.0.21045.29003, i7-13700K, 32 GB RAM, Windows 11 26300. Official v1.1.6-amd FULL, unmodified. Same device removal (0x887A0005 / 0x887A0006) on every run:
series-x: first pipeline pass 60623 finished, removed during the second pass (22866).series-s: removed ~40 s after start,a host command list did not reset.series-s+LARP_BYTE_VIEWS=0+LARP_D3D12_DRED=1: removed after 26 s, same message.@AndreyDermen on GitHub · 2026-12-06 02:55 UTC · original
RX 6750 XT 12 GB (RDNA2), Ryzen [model], 16 GB, driver [version], Series S. Same removal on larp v1.1.0/v1.1.2-amd and on VIctory Bogdy v1.0.0 (built on larp amd-test
f0d4e50). It also matches #193.I have a second runtime on the same PC that does not crash, and it may help answer the mesh-shader question above.
Same pipelines, other runtime, no hang. In my Bogdy v1.0.0 crash the last pipelines created before removal include the ones listed in this thread: mesh
14b229d6926f3e6b,3d8783a44ba8d08e,bcf61fb380f0b1c1,02df3d73364d5969,4c8d9b5bcc24f746,ffd403740726aafa,8563c39d693b36d0, and compute764ca63daec9c616. VIctory Bogdy v0.2.0-beta.22 (separate, non-larp runtime), with the same save, machine and driver, translates and builds those exact pipelines (host mesh pipeline shaders=[mesh 14b229d6926f3e6b],host pipeline shaders=[compute 764ca63daec9c616]) and runs 10–45 min sessions without a removal. So RDNA2 plus this driver can run these mesh shaders. The difference seems to be in what the larp path binds to them.Same buffer, handled differently. Bogdy v1.0.0 logs the refused view a few seconds before removal:
unordered buffer view: the host would refuse it, left null format=39 first=10671200 count=0 stride=0 raw=true width=182452224beta.22 sees the same 182,452,224-byte buffer, copies it whole into card memory, and never refuses a view on it:
a buffer's host copy is in the card's memory start=0x26e40000 len=182452224Both logs are available if useful.