AMD: device removed (0x887A0006 DEVICE_HUNG) ~10 s after the world loads, every run #430
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#430
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?
@Spo7ty on GitHub · 2026-12-06 00:48 UTC · original
Summary
On an AMD GPU (Windows, native D3D12), the GPU device is removed every time, about 10 seconds after
pipelines: the title's render phases are built. That is right after the loading screen, before any input. It reproduces 10 out of 10 runs. None of the switches indocs/troubleshooting-and-crashes.mdsection A change it.Setup
b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93(the release installed 2026-12-06; this exe has noLARP_AGILITY)AMD GPU detected (AMD workarounds active), ray-tracing tier 1.1, tiled resources tier 4, mesh shaders yesdevice15=true supported=false, so buffer views are already by elementseries-s.cmd, borderless, 1280x720, FSR ultra performance (432x240 render), FSR frame generation 2x, texture detail 2 levels down,stream_budget2000What happens
render phases are built.unordered buffer view: the host would refuse it, left null format=39 first≈10.8M count=0 stride=0 raw=true width=182452224. This appears every run.hudlessline (first scene composite).0x887A0006.DRED
page fault at 0x1da688000; no title memory copy below it. All 105 breadcrumb entries reported done == count. 32 lists in flight, mostly mesh-shader and indirect draws.LARP_D3D12_DRED=1: no page fault or breadcrumb line, onlya host command list did not reset … 0x887A0006.What was ruled out (each still hangs at the same moment)
Larp\cacheand rebuild (~11 min)LARP_FG_HUDLESS=0(confirmed in log)LARP_WINE_NO_SPARSE=1: RT structures, positions pool and streamed geometry made whole (confirmed in log)LARP_SHADER_REPLACE=0(confirmed in log)shader-replaceLARP_LEAVE_OUTon the 6 compute shaders in flight at 7 of 8 hangs (7933a53d52c6862f, 1374616d04451041, e81fd01512ba1002, ebf622dcaeae13db, f25a0a9cde081f9b, 3e7c51f5a390d0f0; 6 pipelines left out, confirmed)settings.inithe title'srt_directional_shadows/rt_local_shadows= low,rt_lod_light_shadows/rt_dynamic_shadows= off,bvh_quality= low (confirmed: "12 of 103 options set")bin\D3D12renamed)0x887E0003at device creationAlso in every log (probably unrelated)
host view heap: title slots past 606782 read a null slot count=1245184host ray tracing: a program runs with its walks of the console's structures, which nothing builds(seen withLARP_SHADER_REPLACE=0)Logs
Eleven
play.logfiles, one per run, are inissue-430-logs.zipin a comment below. Each file is named after its test:01-first-run.log02-720p.log03-15-replaced-shaders-moved-out.log04-cache-rebuilt-DRED-page-fault.log(the only one with the DRED page fault)05-FG_HUDLESS-0.log06-WINE_NO_SPARSE-1.log07-AGILITY-0-ignored-by-this-build.log08-bin-D3D12-renamed-0x887E0003.log(startup failure, not the hang)09-SHADER_REPLACE-0.log10-LEAVE_OUT-6-shaders.log11-game-RT-low-FG-off.log@Spo7ty on GitHub · 2026-12-06 00:50 UTC · original
issue-430-logs.zip
@vanya890 on GitHub · 2026-12-06 01:04 UTC · original
I went through all 11 attached runs, including
04-cache-rebuilt-DRED-page-fault.log. One detail looks more actionable than the repeatedunordered buffer viewwarning:PageFaultVA=0x1da688000, with no title-memory copy below it.descriptor::host::near_heaps()classifies that VA as0xd814e800past the end of the shader-visible view heap, at slot 114,289,024 (and also far past the sampler heap). The reported view heap is only0x1e84800bytes, i.e. 1,000,000 32-byte descriptors.host view heap: title slots past 606782 read a null slot).The source already documents that an out-of-range shader heap index can hang or page-fault AMD hosts (
descriptor/host.rs::probe_view_limit). This is not proof that the title-slot warning caused this particular fault, but it makes an invalid shader-visible descriptor index a much stronger lead than thecount=0UAV warning, which is deliberately left null. The crash also persists withLARP_SHADER_REPLACE=0, so I would check any shader path that can bypass the translator's view-index clamp, not only replacement shaders.The DRED breadcrumbs are all
done == count, so this capture does not identify a single stopped command or pipeline. If you can produce a diagnostics build with the offending descriptor index/source shader recorded at the clamp boundary, that should distinguish an unclamped index from a corrupted GPU VA. I would not infer a heap-size fix from the current logs alone.@Spo7ty on GitHub · 2026-12-06 01:08 UTC · original
Thanks, checked this against the source. In this build
probe_view_limitpicks 2,097,152 views whenCreateDescriptorHeapaccepts it, else 1,000,000. This RX 6600 XT (RDNA2, driver 32.0.21045.29003) got 1,000,000, so the driver refused the 2M heap. The doc comment covers NVIDIA (1M, clamped, works) and RDNA3 (uncapped, faulted at slot 0xffff80), so AMD + the 1M portable heap looks like an untested combination.On the DRED address:
near_heapsprints the VA's position against every heap, and 0x1da688000 is ~3.4 GB past the view heap's end. A clamped index can't get there; an unclamped garbage index could, so I agree it doesn't separate the two. The null-slot warning should also appear on NVIDIA, where the title runs, so on its own it may not be the AMD cause.I can build
--features diagnosticslocally. Which switches would you like run (LARP_LOOP_REPORT=1with a lowerLARP_SHADER_LOOP_LIMIT, or something else)? The D3D12 debug layer/GBV isn't available on this machine (no Graphics Tools).@vanya890 on GitHub · 2026-12-06 01:10 UTC · original
Thanks for offering to run a diagnostics build. I would start with one run at the existing per-stage loop limits, not a lower override:
Build with
--features diagnostics. In this build,LARP_LOOP_REPORT=1records the shader hash and console loop-header offset whenever a translated loop reaches its iteration cap. WithLARP_SHADER_LOOP_LIMITunset, the translator keeps its current stage-specific defaults (pixel 128, mesh 256, other stages including compute 4096). That avoids changing the shader's normal limits before we know which loop, if any, is involved. A lower override changes the generated shaders and may stop otherwise legitimate work, so it is a second experiment, not the first.Please reproduce the same world-load crash once and attach a fresh
larp zip-logsarchive. Keep the other switches/settings the same as the DRED run if possible. The diagnostics build records more detailed per-command breadcrumbs; the loop report will tell us whether any translated loop hits its cap and where. If no loop is reported, that is still useful: it shifts attention toward an unclamped descriptor index or corrupted GPU address rather than a runaway translated loop.@vanya890 on GitHub · 2026-12-06 01:11 UTC · original
There are now two open PRs aimed at the same broader AMD RDNA2/RDNA3 world-load page-fault family reported in #288:
cbufferLoadLegacyrows, preserves Wave64 on AMD, and fixes LDS write/atomic synchronization.Your RX 6600 XT is RDNA2, and the faulting VA in your DRED log is likewise far outside the 1M-slot view heap. That does not prove these PRs fix your exact case, but they are much closer candidates than changing stream budget or heap size again. I'd keep the requested
LARP_LOOP_REPORT=1run as the clean baseline first; if it points to a shader hash/loop, we can compare it with #457. A subsequent build combining #455 and #457 would be a useful A/B against the current main.@Spo7ty on GitHub · 2026-12-06 01:42 UTC · original
Diagnostics build (
--features diagnostics,LARP_D3D12_DRED=1,LARP_LOOP_REPORT=1, loop limit unset), logs attached:loops=0 programs=0in every report up to the removal. No translated loop reached its cap.0x1e9311000, no title memory copy below it; 103 breadcrumb entries, all done == count.[mesh 674e860f9713b8ce, pixel fb93cb23cbe58dc0](~530–560 ms in). The warm-cache runs had no creation running and no page fault.Next run: #455 + #457 merged on main, same switches.
@Spo7ty on GitHub · 2026-12-06 01:44 UTC · original
larp-logs-diag-baseline.zip
@Spo7ty on GitHub · 2026-12-06 02:12 UTC · original
#455 + #457 merged on main (
--features diagnostics, same switches): still removed, ~12 s afterrender phases are built. Logs attached (larp-logs-pr455-457.zip; the baseline islarp-logs-diag-baseline.zip).host view heaps: hold 2097152 views ... missing_wide_variants=0loops=0 programs=0up to the removal.0x1acc0e000, no title memory copy below it; 98 breadcrumb entries, all done == count.1e20a0fe8745c1c9e20cfffd27f39ba0[mesh 674e860f9713b8ce, pixel fb93cb23cbe58dc0]had been running for 710 ms.That is the same mesh/pixel pair being created at all three page-fault removals:
d62904684fb1c15fc8763fda007dd6e0[mesh 674e860f9713b8ce, pixel fb93cb23cbe58dc0], 561 ms1048c8c95eaaf0e7c0606fc8cc7ff6a8same pair, 529 ms1e20a0fe8745c1c9e20cfffd27f39ba0same pair, 710 msWarm-cache runs had no creation running at the removal, so it may be a symptom rather than the cause. Next run: same build with
LARP_LEAVE_OUT=674e860f9713b8ce.@Spo7ty on GitHub · 2026-12-06 02:14 UTC · original
larp-logs-pr455-457.zip
@Spo7ty on GitHub · 2026-12-06 02:16 UTC · original
Same #455 + #457 diagnostics build, warm cache,
LARP_LEAVE_OUT=674e860f9713b8ce: still removed, ~11 s afterrender phases are built. Logs attached.named in LARP_LEAVE_OUT, confirmed in the log).loops=0 programs=0up to the removal.pipelines: no creation running; no page fault reported this time, onlya host command list did not reset … 0x887A0006.So the mesh/pixel pair isn't the cause; it was only being created at the page-fault removals because those runs were rebuilding the cache. That's every user-side switch I know of exhausted. If a build with extra checks (e.g. recording which draw/dispatch reads an out-of-range address) would help, I can run it.
larp-logs-1796523317.zip
@Spo7ty on GitHub · 2026-12-06 02:55 UTC · original
Three more runs on the #455 + #457 diagnostics build, all still removed ~2.5 s after the title's first upscaler dispatch:
LARP_RT_OFF=1patch:rt::ready()returnsNone)host ray tracing: off (LARP_RT_OFF), "not running" for the whole runLARP_FSR_VERSION=3.1patch,ffxOverrideVersiontype 5 as in ReVictory'sfidelityfx.rs)runs="3.1.6"(the runtime picks 4.1.2 on this RX 6600 XT otherwise)D3D12Core.dllfrom ReVictory) instead of 1.620.2D3D12 runtime: asking Windows for SDK version 621Timing across the diagnostics runs: the removal always comes 0.5–2.6 s after
upscaler: the title's first upscaler dispatch, i.e. in the first frames that render the world. FSR itself is ruled out (3.1.6 and 4.1.2 both), so that dispatch just marks the first real 3D frame.Possibly useful as a reference: ReVictory runs this title on the same card (RX 6600 XT, same driver) without the removal. It also defaults to FSR 3.1 on cards without FSR 4 support, which LARP doesn't do (the AMD runtime picks 4.1.2 on RDNA2 here).
Happy to run any instrumented build.