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 #2671
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#2671
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?
@iiiirokuuug-rgb on GitHub · 2026-11-25 17:50 UTC · original
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.
@pes7 on GitHub · 2026-11-25 18:08 UTC · original
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.@Marvisak on GitHub · 2026-11-25 18:47 UTC · original
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