Intel Arc A770: world draws but stays black, then host GPU device removed (0x887A0004) on the world load; HEAP_VIEWS clamp is past the host heap #2669
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?
Imported from Marvisak/VIctory. Originally posted by iiiirokuuug-rgb on 2026-11-25T17:50:41Z.
Intel Arc A770 16 GB (driver 32.0.101.9033): menus at 30 fps, world draws (494-3,690 draws/frame) but is black, then
host GPU device removed(0x887A0004) during the world load — same on940d32fand onmauri9911/leonida-victorye61ef78.Machine: Xeon E5-2678 v3, 24 GB RAM, 48 GB page file, Windows 11 26200, Intel Arc A770 16 GB (driver 32.0.101.9033), retail 1.0.2.1, release build.
What it reaches:
One world frame was visible on screen before the removal.
TdrDelay=60 /TdrDdiDelay=60 makes no difference — the removal is not a TDR: it follows submissions that take seconds, but the reason stays0x887A0004, and it also happens on 3-list submissions.The descriptor heap is the first thing that breaks. The title asks for 1,245,184 slots:
There is also a constant mismatch that looks like a bug of its own:
victory-shader/src/emit/shader.rsclamps heap indices in translated shaders toHEAP_VIEWS = 1 << 21(2,097,152), butvictory-gpu/src/descriptor/host.rscan never create a heap larger thanPORTABLE_VIEWS = 1_000_000. So any title index in [heap size, 2M) is clamped to 2,097,151, which is past the end of the heap — a descriptor read past the heap.Locally I set
HEAP_VIEWS = 1_000_000 - 65_536(the title region of the largest heap that can exist:PORTABLE_VIEWSminusMIN_DYNAMIC), rebuilt, and re-ran:The world still ends in
0x887A0004, but the clamp fix is worth having: it turns an out-of-bounds descriptor read into a null-slot read, which is what the comment aboveHEAP_VIEWSalready says it intends ("indices past the host's heap faults the device: the last slot instead") — the last slot just has to be inside the heap.This is the same wall as #2550 (RTX 3080: "title slot past host descriptor heap" entering the world) and #1440/#1670/#314 for the removal itself, and I do not see an Intel Arc report on it yet — that is why I am filing it.
VICTORY_WATCH/VICTORY_COPY_MODE=nonechanged nothing for us.No game data is quoted: counts, formats and log lines only.
Imported from Marvisak/VIctory. Originally posted by pes7 on 2026-11-25T18:08:37Z.
Your clamp finding is right, and it is a PR now: #2683. Measured on an NVIDIA machine (the same tier-2 cap), the two directions agree.
What your local patch and mine differ in, and why I did not simply set
HEAP_VIEWS = 1_000_000 - 65_536:HEAP_VIEWSis also the size the host asks for (make((count + DYNAMIC).max(HEAP_VIEWS))), so lowering it to the cargo-cult number would also lower the request - harmless here, becausecount(1 245 184) dominates, but it makes the constant mean two things.fill_null), so any index inside the heap is safe; the only hard requirement isindex < heap size.1_000_000(PORTABLE_VIEWS) is the largest heap that can exist, so no index the clamp can produce is ever outside it - andNULL_BUFFER_VIEW(999 998) then lands inside the heap instead of 32 MB past it.mainthey had none -count + extra == PORTABLE_VIEWSexactly - which is why the log saidno room for the null buffer viewsand every computed-index read went to "what is there". The capped path now keeps its topNULL_RESERVE(1 024) slots for them: title slots are unchanged at 934 464, dynamic slots go from 65 536 to 64 512.Verified here (NVIDIA, warm caches, retail 1.0.2.1):
Your draw counts (11 -> 453-3 690 a frame) are the number I could not produce, because my machine reaches the menu and then dies of the TDR in #2661 before the world is drawn. If you can run #2683, the interesting part is whether the world's picture changes on the Arc with the null slots actually made -
title slot past the host heapwill still name every slot above 934 464, and those are now a null read rather than an out-of-bounds one.On the removal itself: on this machine the debug layer names it
DXGI_ERROR_DEVICE_HUNG(TDR), and it happens in the menu at 30 fps, not during the world load - see #2661. So the two reports may be the same removal (yours survives longer because each world frame is 1.4-6.5 s of CPU work while the GPU side is short, so fewer commands pile up per submission).Two things I would try on the Arc, if you have the patience:
VICTORY_D3D12_DEBUG=1with adiagnosticsbuild - it prints the reason asRemoveDevice ... DXGI_ERROR_DEVICE_HUNG(0x887A0006) instead of the0x887A0004the queue reports afterwards. That would settle whether yourTdrDelay=60experiment was defeated by the DXGI default rather than the registry key.VICTORY_SKIP_PIPELINES=<hash>for the compute shader named in your breadcrumb report, to see whether the removal follows the shader or the submission size.Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T18:47:56Z.
Automated triage for the maintainers.
The clamp mismatch is confirmed in main (
13f91ca):HEAP_VIEWSis1 << 21incrates/victory-shader/src/emit/shader.rs(NULL_BUFFER_VIEW = HEAP_VIEWS - 2), whileHostHeapcreation incrates/victory-gpu/src/descriptor/host.rsfalls back to a heap ofPORTABLE_VIEWS(1,000,000) when the title asks for more. Clamped indices can then point past the heap, and the null buffer views are not made (theno room for the null buffer viewswarning). Open PR #2683 (by @pes7) moves the clamp inside the largest heap a host can make and reserves room for the null views.As a run report: the runs were on
940d32fand on a third-party fork (mauri9911/leonida-victory), not this repository's current main. The heap cap itself is tracked in #2138 (oldest report,title asks for 1,245,184 view slots), also #2550. The later removal may be the hang in #2661. A retry on current main with #2683, ideally adiagnosticsbuild withVICTORY_D3D12_DEBUG=1so the removal reason is named, would help.Generated by Claude Code
Imported from Marvisak/VIctory. Originally posted by borosf on 2026-11-27T11:25:03Z.
Second Intel data point, and one link this thread does not have yet: on this card the removals come after lists whose draws were already dropped for want of dynamic descriptor slots, which ties the crash to the capped-heap finding above rather than to any one PR.
Machine: Windows 11 x64, Ryzen 5 5600, 32 GB RAM (32/64 GB page file), Intel Arc B580 12 GB, release build, title 1.0.2.1 (
game_scarlett_master.exe),VICTORY_D3D12_DRED=1+VICTORY_GPU_TIMING=1.origin/main(63bcca43), 4 runs of ~100 s.What a removal looks like here (
GetDeviceRemovedReasonis the "GPU will not respond" text, and DRED names the list):The faulting addresses are all in the
0x8000…range the A770 report shows, and the list DRED blames is a16x1x1compute dispatch,9146291b38ea9ce1— the same dispatch that appears in the "biggest" bucket of my frame timings (indirect [compute 9146291b38ea9ce1], 171 ms of 765 ms of GPU time in the world).The correlation with the heap cap. The lists that die are the ones where mesh draws were dropped for want of slots, in the same submission:
On this card
HostHeap::newcannot makecount + DYNAMIC(1,245,184 + 262,144) norcount + MIN_DYNAMIC(1,310,720), so it lands onPORTABLE_VIEWSwithcount = 934,464and only 65,536 dynamic slots, and those run out every frame (2,422 + 444 + 258 drops/frame in my capture). I am not claiming the dropped draws cause the removal — the draws are dropped, not submitted — but the same pass keeps hitting the wall, and #3419 (preserve the dynamic budget on capped heaps) is the change that removes it. It deserves a stability test on Arc, not just a timing one.It is not #2958. The same page-fault removal shows up on Belobug's fork lineage (
VIctory-Belobug-AMD,a-publier, which does not contain those commits) on this card: 1 removal in one run, 6 in another. So on B580 this looks like a base-level Intel issue, which is why I am filing it here rather than holding it against that PR (@moe-miau asked for exactly that).Synthetic tests only in the tree; the runs above are my own dump. I have no
0x887A0004occurrence here — the reason text is always the device-hung one — so this may be a second Intel failure mode rather than the same one as the A770.Imported from Marvisak/VIctory. Originally posted by JICK366 on 2026-11-30T06:11:50Z.
Follow-up from Intel Arc A770 16 GB on the same wall, this time with the NVIDIA-fork build v2026.11.29.05 (victory.exe,
--console series-s):Since that release the first blocker on Arc is no longer the heap, it is hardware feature reporting. Every world pipeline is refused:
52 such refusals in a single ~5 minute run (mesh and graphics stages). No draws reach the GPU, so GPU utilisation stays flat while audio keeps playing and the title stays responsive. No device removed and no crash in this run - it simply never draws.
The heap is also tighter than in my first report:
So 606783 of the 1245184 requested slots are actually addressable for the title.
With
HEAP_VIEWSclamped inside the title region the world would draw (per the local rebuild in the first report), but here it never gets that far: the barycentrics refusal comes first. If there were a fallback path that translates barycentrics-free, this heap clamp would be the next wall.Environment: Intel Arc A770 16 GB (Xe-HPG), driver 32.0.101.9175, Windows 11 26200, retail 1.0.2.1, release build.
Imported from Marvisak/VIctory. Originally posted by JICK366 on 2026-11-30T07:31:59Z.
Also reproducing on Arc A770 — with the clamp fix applied, the device removal is gone.
Machine: i5-12400F (6C/12T), 32 GB DDR4-3200, Intel Arc A770 16 GB, driver 32.0.101.9175, Windows 11 26200, retail 1.0.2.1.
Build: self-compiled from the PR #2683 branch (capped_layout / HEAP_VIEWS clamped inside the host heap), Rust 1.98.1 x86_64-pc-windows-gnu.
Result vs. stock builds on this GPU:
The heap is capped exactly once at startup, and nothing falls over:
So the clamp change does what it says: an index past the heap now reads the last in-heap slot instead of faulting. On this GPU it removes 0x887A0004/0x887A0005 entirely — 9+ minute sessions, no removal.
What is left is throughput, not correctness:
The GPU alone spends ~750 ms per frame, so no CPU-side or config change moves this: the title is written against unified memory, and on a discrete card that has to be emulated through PCIe copies (up to 236 MB/frame of read-back). The 0x80070057 compute refusals are on distinct shaders rather than one retried shader, so they look like a capability gap rather than a missing slot.
Two things worth taking from this: (1) the clamp fix is enough to make A770 sessions stable — worth merging on its own; (2) any further Arc progress has to come from cutting the unified-memory emulation cost, not from the descriptor heap.
No game data is quoted: counts and log lines only.