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 Zettrox/ztrx. Originally posted by Logan-Gaillard on 2026-11-25T10:13:51Z.
RTX 5070 Laptop (8 GB) / 23.4 GB RAM, Windows: five runs of 180–420 s on
90b529f, all held — the earlier device removal is a TDR during pipeline fabricationTest report from a three-agent bench: PC1 runs the game (this machine), PC2 and PC3 read the logs and code. The device work below was done by @AlexisLRC (PC2).
Machine and build
1.0.2.1(Xbox Series X profile), storage on D:.Zettrox/ztrxat90b529f, one commit on top of upstream940d32f.cargo xwin build --release -p victory --target x86_64-pc-windows-msvc, plus a--features diagnosticsbuild for DRED.TdrDelay(2 s, unset in the registry — no bypass was used).What the earlier failure actually is
A previous run of the same build reported
host GPU failure ... (0x887A0004 DXGI_ERROR_UNSUPPORTED)after ~60 s, with no breadcrumbs. With DRED enabled at device creation,GetDeviceRemovedReasonreturns0x887A0006(DXGI_ERROR_DEVICE_HUNG). The0x887A0004isGetAutoBreadcrumbsOutputfailing on a device created without DRED (crates/victory-gpu/src/host.rs:4202) — a diagnostics artifact, not the cause.The death happens during a slow submission: host submissions go 260 ms → 2296 ms → 4173 ms while ~355 pipelines are being fabricated, and the device is removed during the 4178 ms wait. Frame time tracks pipeline fabrication: 1.4–3.2 s/frame while pipelines build, 0.25–0.7 s/frame once the queue drains. That is a TDR inside the fabrication window, not an invalid command.
Reproduction attempts
e0a8c4429320991bThe original death was at ~3 min 28, so the 180 s window was too short and the longer ones ran with a warm cache. Nothing was bypassed to keep the device alive: no
TdrDelaychange, no debug layer.Trap on hybrid machines
One run rejected the shared pipeline cache with
0x887E0001(a blob written by another adapter) — an earlier exe of the same build had run on the Intel iGPU and written the cache. A freshly built exe gets no GPU preference and is created on the iGPU, where the "card budget" is Windows RAM (see the memory side of this bench in #1226 upstream). Two cheap signals in any log:wave lanes(8–32 iGPU, 32–32 dGPU) and the card budget / shared-memory line.Next
0x887A0004.Reports posted by @Logan-Gaillard on behalf of the bench; measurements by @AlexisLRC. No game data in this report.
Imported from Zettrox/ztrx. Originally posted by antikohza on 2026-11-25T10:18:25Z.
Regarding the Trap on hybrid machines section (
0x887E0001shared pipeline cache rejection / freshly built.exes defaulting to the Intel iGPU and reading Windows RAM as the card budget): #84 already includes a fix for that adapter-selection path incrates/victory-gpu/src/host.rs.Specifically, #84 replaces the default
Noneadapter selection withbest_adapter()usingIDXGIFactory6::EnumAdapterByGpuPreference(DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE)(with asupports_fl12()check and max dedicated-VRAM fallback), so freshly built binaries select the discrete GPU (e.g., RTX 5070 Laptop) instead of the iGPU, and matchesadapter_memory()byGetAdapterLuid()(auto-enablingmip_drop = 1at<= 8.5 GiBdedicated VRAM).(Note: #84 does not modify the DRED-off
0x887A0004breadcrumb log message or pipeline-fabrication serialization / TDRs.)Imported from Zettrox/ztrx. Originally posted by Logan-Gaillard on 2026-11-25T10:33:37Z.
Correction after a sixth run: the pipeline-fabrication window is not the cause
A later run on the same machine (
bd0b, 600 s requested, shared warm pipeline cache, diagnostics build, DRED on) contradicts the "TDR while pipelines are fabricated" reading in the report above:0x887A0006(DXGI_ERROR_DEVICE_HUNG);Dispatch; the commands in flight between barriers 10885 and 11455 are dispatches of compute shader5b6eed17c131f881(338×1×1, then 27, 20, 10...);So the removal is a burst of compute dispatches inside one long list, not a slow submission caused by pipeline work. What still stands from the report above: the
0x887A0004is the breadcrumb query failing when DRED was off, the iGPU trap on hybrid machines, and the five runs that held.Also worth noting: the same shader runs on
fxceless/victory-forkon the same GPU without a removal (f429,9457,1367), and the translator's loop bounds are identical in both trees (4096 / 256 / 128). So the difference is in this tree's translation or submission of that shader, not in the shader source.Next measurement. The same build with the translator's loops clipped to 64 (existing switch, no code change): if the list stays under 1 s and the device survives 600 s, those dispatches are spinning at a loop bound for lack of data rather than doing legitimate work.
On #84: thanks @antikohza, I had missed it —
best_adapter()withIDXGIFactory6::EnumAdapterByGpuPreference(DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE), thesupports_fl12()check and the max-dedicated-VRAM fallback is exactly the answer to the iGPU trap described above, and it lines up with what #1296 landed on the mip-drop side. This report was meant as a measurement, not as a patch request, so treat the adapter part as already fixed upstream; the numbers stay useful as a before/after baseline.Imported from Zettrox/ztrx. Originally posted by Logan-Gaillard on 2026-11-25T10:39:57Z.
31b5: clipping the translated loops to 64 makes this build hold 600 sFollow-up on the same machine, same GPU, no code change — only the existing switch that clips translated loops to 64, with a private pipeline cache because the clip changes the translation.
bd0b(loops at 4096/lane)31b5(loops at 64)0x887A0006That fits the reading above: the burst of
5b6eed17c131f881dispatches is a loop that runs to its translation bound (4096 per lane for compute) instead of terminating on data. Cutting the bound keeps the submission short enough for the device to survive ten minutes — and the frame gets more draws done, which is the opposite of what losing legitimate work would look like.So the loop bound is a real lever, but 64 is a working hypothesis, not a fix: it costs whatever those loops were supposed to compute. Next measurement is the smallest bound that still holds (128, then 256) and the name of the loop plus the value it is waiting on, so the fix lands in the data that feeds it rather than in a permanent cut.
Credit: measured by @AlexisLRC on the same bench; the switch predates this report.
Imported from Zettrox/ztrx. Originally posted by Logan-Gaillard on 2026-11-25T11:54:42Z.
ztrx does not mirror descriptor records the title copies into its heaps as bytes; mirroring them fills null slots and lowers GPU time per draw — the device loss is NOT established as fixed
Same bench as above (RTX 5070 Laptop 8 GB, 23.4 GB RAM, Windows, default
TdrDelay, nothing bypassed). This replaces the loop-bound reading of my previous comment: clipping loops was treating a symptom.A/B on the same binary
One release exe,
68d9a72=90b529f+fc2cec0(breadcrumb message) + one commit that mirrors heap records copied as bytes (descriptor.rs+187,descriptor/host.rs+71,host.rs+4). No loop clip, no pipeline skip list, shared warm pipeline cache.5d399d2b45a6VICTORY_HEAP_SYNC=0, same exe)DEVICE_HUNG0x887A0006at 163 sWithout the mirroring, several runs of the day died the same way:
bd0b170.8 s (diagnostics),0ba1191 s (diagnostics),d9a4199.6 s,2aaa217.6 s (both release), plus the original death at ~208 s. Others held without it:c442303.7 s,9320363.9 s,991b423.1 s (diagnostics builds) ande0a8(stopped at 180 s). Why those held is not established; the A/B above is on one binary and one cache.9d2b, world frames only (88 frames over 800 draws): 752 ms/frame median (~1.4 fps), 4 972 draws/frame, 124 ms of GPU per 1 000 draws (278 for the plain release builde0a8, 377 for45a6with mirroring off). The mirroring copies 14 800–18 500 records per frame, in the same range as victory-fork on this card (9 400–19 500). Memory over 600 s: private peak 20.9 GB, lowest free commit 3.5 GB, flat after ~180 s.What it was, and what it was not
5b6eed17c131f881, named by DRED inbd0b, has no loop (disassembled: one backward branch that is a shared tail, acyclic graph). DRED names the oldest unfinished command, not the slow one.VICTORY_GPU_TIMING=1(0ba1) the slow commands are indirect dispatches of computef22a76fcb967ee59, 107–126 ms each, 48 commands over 30 ms across the timed lists of the run, whoseu4/u5tables point at null slots. Same pattern as Marvisak/VIctory#898.Create*Viewcalls reach the host heap. Those slots stay null or stale, and dispatches reading through them run slow (f22a76fcb967ee59itself has no backward branch, so "looping on missing data" is not established for it; only the duration is measured). upstreamMarvisak/VIctorymain (940d32f) has this assync_heaps(descriptor.rs:162), and so doesfxceless/victory-fork; per victory-fork's comment it comes from upstream86a5ed6.90b529fis not "one commit on top of940d32f". It is a root commit, andvictory-gpu/victory-shaderdiffer from940d32fin 80 files;sync_heapsis one of the things missing.Limits
9d2bhad 17 slow submissions, 6 over 1 s, one single list at 4 027 ms that survived.VICTORY_BVH_BUILDER=1+VICTORY_BVH_QUARANTINE=1as in #42 / #55 did not work here: the builder stayed off — 3 of 53 programs missing at its first call, all or nothing — and the device hung at 193.5 s, 70 s into the world), the intro video jumps back (likely because textures written through another view of the same page are only rehashed every 8 frames without a view guard — hypothesis under test), colour banding in shadows.Credit: port, disassembly and A/B by @AlexisLRC; review of the port, memory curves and the texture-refresh analysis by @1mlesc. Evidence: run logs
coord/tests/results/<id>on the bench (ids above).Posted by @Logan-Gaillard on behalf of the bench. No game data in this report.
Edited (twenty minutes after posting): two statements corrected after review by @1mlesc — not every run without mirroring died (four held 180–420 s, reason not established), and "spin" was not established for
f22a76fcb967ee59, which has no loop; only its slowness is measured. Then three more after review by @AlexisLRC: the 48 slow commands are across the run's timed lists, not one list; the ray-tracing switch test failed (details above); the intro-video cause is a hypothesis under test.Imported from Zettrox/ztrx. Originally posted by Logan-Gaillard on 2026-11-25T14:29:35Z.
Test bench: four fixes after a run was lost
Our bench is one GPU machine with a single runner that serialises every run (one game instance at a time, screenshots, log capture, error signatures). This afternoon a 600 s run was lost: the runner process was killed mid-run, so no
result.jsonwas written, the request stayed in the "running" slot, the GPU slot stayed claimed for its full 30 min TTL, the requester was never notified, and the interactive launcher refused to start because it thought a test was still running. The game log showed no error at all — it was not the build.Four fixes, all in the bench, none in the emulator:
result.jsonevery 30 s (statusrunning, duration, peak working set, window title). A runner killed mid-run leaves usable data instead of nothing.test-recover. A new command reclassifies an orphaned run from its own log — error signatures, real duration from the log timestamps, last frame line — moves the request out of the running slot, releases the GPU slot and notifies the requester. It refuses while the runner's heartbeat is under 120 s old, so it cannot race a live run.Credit where it belongs: @1mlesc spotted that the run had died with the runner and asked whether it could be resubmitted — the recovery path exists because of that report; @AlexisLRC reviewed the protocol afterwards and found two real gaps (the missing play lock and the missing priority order between work items), which are now written down.
The recovered run was reported as
lost, 155 s, with the length and the signatures taken from its log; it is not counted as a measurement.