[GH #91] 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 fabrication #91

Open
opened 2026-11-25 11:10:46 +00:00 by Logan-Gaillard · 5 comments
Logan-Gaillard commented 2026-11-25 11:10:46 +00:00 (Migrated from github.com)

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 fabrication

Test 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

  • Hybrid laptop: RTX 5070 Laptop 8 GB (32-lane) + Intel iGPU, 23.4 GB RAM, Windows, title 1.0.2.1 (Xbox Series X profile), storage on D:.
  • Zettrox/ztrx at 90b529f, one commit on top of upstream 940d32f.
  • cargo xwin build --release -p victory --target x86_64-pc-windows-msvc, plus a --features diagnostics build for DRED.
  • Default 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, GetDeviceRemovedReason returns 0x887A0006 (DXGI_ERROR_DEVICE_HUNG). The 0x887A0004 is GetAutoBreadcrumbsOutput failing 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

Run Build Pipeline cache Window Draws/frame Working set Result
e0a8 release default 180 s 4413 10 881 MB held
c442 diagnostics + DRED warm 149 MB 300 s 1752 12 930 MB held
9320 diagnostics + DRED cold, own dir 360 s 289 12 455 MB held
991b diagnostics + DRED warm 420 s 1131 13 054 MB held

The 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 TdrDelay change, 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

  • 600 s cold-cache run with the diagnostics build and submission timing, to either reproduce the TDR window or exclude it on this hardware.
  • Fix the misleading breadcrumb message: when DRED is off, the log should say so instead of reporting 0x887A0004.
  • Then the pipeline-fabrication serialisation (upstream #1615) becomes the lever, since that is the window where the hang occurs.

Reports posted by @Logan-Gaillard on behalf of the bench; measurements by @AlexisLRC. No game data in this report.

<!-- greyfinch-sync:Zettrox/ztrx:issue:6602137076 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/issues/91). Originally posted by [Logan-Gaillard](https://github.com/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 fabrication Test 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 - Hybrid laptop: **RTX 5070 Laptop 8 GB** (32-lane) + Intel iGPU, **23.4 GB RAM**, Windows, title `1.0.2.1` (Xbox Series X profile), storage on D:. - `Zettrox/ztrx` at **`90b529f`**, one commit on top of upstream `940d32f`. - `cargo xwin build --release -p victory --target x86_64-pc-windows-msvc`, plus a `--features diagnostics` build for DRED. - Default `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, `GetDeviceRemovedReason` returns **`0x887A0006` (`DXGI_ERROR_DEVICE_HUNG`)**. The `0x887A0004` is `GetAutoBreadcrumbsOutput` failing 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 | Run | Build | Pipeline cache | Window | Draws/frame | Working set | Result | | --- | --- | --- | --- | --- | --- | --- | | `e0a8` | release | default | 180 s | 4413 | 10 881 MB | held | | `c442` | diagnostics + DRED | warm 149 MB | 300 s | 1752 | 12 930 MB | held | | `9320` | diagnostics + DRED | cold, own dir | 360 s | 289 | 12 455 MB | held | | `991b` | diagnostics + DRED | warm | 420 s | 1131 | 13 054 MB | held | The 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 `TdrDelay` change, 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 - 600 s cold-cache run with the diagnostics build and submission timing, to either reproduce the TDR window or exclude it on this hardware. - Fix the misleading breadcrumb message: when DRED is off, the log should say so instead of reporting `0x887A0004`. - Then the pipeline-fabrication serialisation (upstream #1615) becomes the lever, since that is the window where the hang occurs. <sub>Reports posted by @Logan-Gaillard on behalf of the bench; measurements by @AlexisLRC. No game data in this report.</sub>
antikohza commented 2026-11-25 11:10:48 +00:00 (Migrated from github.com)
Author

Imported from Zettrox/ztrx. Originally posted by antikohza on 2026-11-25T10:18:25Z.


Regarding the Trap on hybrid machines section (0x887E0001 shared 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 in crates/victory-gpu/src/host.rs.

Specifically, #84 replaces the default None adapter selection with best_adapter() using IDXGIFactory6::EnumAdapterByGpuPreference(DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE) (with a supports_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 matches adapter_memory() by GetAdapterLuid() (auto-enabling mip_drop = 1 at <= 8.5 GiB dedicated VRAM).

(Note: #84 does not modify the DRED-off 0x887A0004 breadcrumb log message or pipeline-fabrication serialization / TDRs.)

<!-- greyfinch-sync:Zettrox/ztrx:comment:7159514966 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/issues/91#issuecomment-7159514966). Originally posted by [antikohza](https://github.com/antikohza) on 2026-11-25T10:18:25Z. --- Regarding the **Trap on hybrid machines** section (`0x887E0001` shared pipeline cache rejection / freshly built `.exe`s defaulting to the Intel iGPU and reading Windows RAM as the card budget): #84 already includes a fix for that adapter-selection path in `crates/victory-gpu/src/host.rs`. Specifically, #84 replaces the default `None` adapter selection with `best_adapter()` using `IDXGIFactory6::EnumAdapterByGpuPreference(DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE)` (with a `supports_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 matches `adapter_memory()` by `GetAdapterLuid()` (auto-enabling `mip_drop = 1` at `<= 8.5 GiB` dedicated VRAM). *(Note: #84 does not modify the DRED-off `0x887A0004` breadcrumb log message or pipeline-fabrication serialization / TDRs.)*
Logan-Gaillard commented 2026-11-25 11:10:49 +00:00 (Migrated from github.com)
Author

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:

  • no pipeline was being fabricated while the world was drawing — the cache was warm;
  • the device was removed at 170.8 s with 0x887A0006 (DXGI_ERROR_DEVICE_HUNG);
  • DRED names a single stopped list (11 906 commands, stopped at 10 886), all Dispatch; the commands in flight between barriers 10885 and 11455 are dispatches of compute shader 5b6eed17c131f881 (338×1×1, then 27, 20, 10...);
  • that submission was already slowing before the removal: 989, 1766, 1878, 3685 ms.

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 0x887A0004 is 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-fork on 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() with IDXGIFactory6::EnumAdapterByGpuPreference(DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE), the supports_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.

<!-- greyfinch-sync:Zettrox/ztrx:comment:7159862421 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/issues/91#issuecomment-7159862421). Originally posted by [Logan-Gaillard](https://github.com/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: - **no pipeline was being fabricated** while the world was drawing — the cache was warm; - the device was removed at **170.8 s** with `0x887A0006` (`DXGI_ERROR_DEVICE_HUNG`); - DRED names a **single stopped list** (11 906 commands, stopped at 10 886), all `Dispatch`; the commands in flight between barriers 10885 and 11455 are dispatches of compute shader `5b6eed17c131f881` (338×1×1, then 27, 20, 10...); - that submission was already slowing before the removal: **989, 1766, 1878, 3685 ms**. 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 `0x887A0004` is 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-fork` on 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()` with `IDXGIFactory6::EnumAdapterByGpuPreference(DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE)`, the `supports_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.
Logan-Gaillard commented 2026-11-25 11:10:49 +00:00 (Migrated from github.com)
Author

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 s

Follow-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)
device removal 170.8 s, 0x887A0006 none, held 600 s
draws/frame at the end 1163 6705
working set 12.8 GB 13.4 GB
world frame time 1530 ms 1145 ms

That fits the reading above: the burst of 5b6eed17c131f881 dispatches 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.

<!-- greyfinch-sync:Zettrox/ztrx:comment:7160006597 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/issues/91#issuecomment-7160006597). Originally posted by [Logan-Gaillard](https://github.com/Logan-Gaillard) on 2026-11-25T10:39:57Z. --- ### `31b5`: clipping the translated loops to 64 makes this build hold 600 s Follow-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) | | --- | --- | --- | | device removal | **170.8 s**, `0x887A0006` | none, **held 600 s** | | draws/frame at the end | 1163 | **6705** | | working set | 12.8 GB | 13.4 GB | | world frame time | 1530 ms | 1145 ms | That fits the reading above: the burst of `5b6eed17c131f881` dispatches 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.
Logan-Gaillard commented 2026-11-25 12:07:13 +00:00 (Migrated from github.com)
Author

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

Correction (25/11, 15 h 10 CET), measured since this was first posted. The title of this comment said "cause found". That was overstated. Every ztrx run on this bench without VICTORY_RELAY shows the same event: one single-list submission of 3.2–4.6 s, 68–114 s into the world, with the same 19 extra compute pipelines bound. With mirroring, 2 runs survived it (5d39, 9d2b) and 2 died on it (ffcb, b7c3, which also carried other changes). The A/B below is one run on each side, so it is compatible with chance. What stands: mirroring fills descriptor slots ztrx left null and lowers GPU time per draw (124 vs 278 ms per 1000 draws, both without relay). The cause of the device loss is still open. Found by @1mlesc, confirmed by @AlexisLRC.

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.

Run Mirroring Result
5d39 on held 300 s
9d2b on held 605 s
45a6 off (VICTORY_HEAP_SYNC=0, same exe) DEVICE_HUNG 0x887A0006 at 163 s

Without the mirroring, several runs of the day died the same way: bd0b 170.8 s (diagnostics), 0ba1 191 s (diagnostics), d9a4 199.6 s, 2aaa 217.6 s (both release), plus the original death at ~208 s. Others held without it: c442 303.7 s, 9320 363.9 s, 991b 423.1 s (diagnostics builds) and e0a8 (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 build e0a8, 377 for 45a6 with 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 in bd0b, has no loop (disassembled: one backward branch that is a shared tail, acyclic graph). DRED names the oldest unfinished command, not the slow one.
  • With VICTORY_GPU_TIMING=1 (0ba1) the slow commands are indirect dispatches of compute f22a76fcb967ee59, 107–126 ms each, 48 commands over 30 ms across the timed lists of the run, whose u4/u5 tables point at null slots. Same pattern as Marvisak/VIctory#898.
  • ztrx has no code that mirrors descriptor records the title writes into its heaps as raw bytes; only Create*View calls reach the host heap. Those slots stay null or stale, and dispatches reading through them run slow (f22a76fcb967ee59 itself has no backward branch, so "looping on missing data" is not established for it; only the duration is measured). upstream Marvisak/VIctory main (940d32f) has this as sync_heaps (descriptor.rs:162), and so does fxceless/victory-fork; per victory-fork's comment it comes from upstream 86a5ed6.
  • Correction to the opening post: 90b529f is not "one commit on top of 940d32f". It is a root commit, and victory-gpu/victory-shader differ from 940d32f in 80 files; sync_heaps is one of the things missing.

Limits

  • Two runs with mirroring, one of them 600 s. Not a statistic.
  • Margin under the 2 s TDR is thin: 9d2b had 17 slow submissions, 6 over 1 s, one single list at 4 027 ms that survived.
  • Image is not right yet: characters near-black (the ray-tracing structure builder is off by default; VICTORY_BVH_BUILDER=1 + VICTORY_BVH_QUARANTINE=1 as 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.
  • The commit is on a local branch; no PR yet. Happy to open one if it helps.

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.

<!-- greyfinch-sync:Zettrox/ztrx:comment:7161668591 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/issues/91#issuecomment-7161668591). Originally posted by [Logan-Gaillard](https://github.com/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 > **Correction (25/11, 15 h 10 CET), measured since this was first posted.** The title of this comment said "cause found". That was overstated. Every ztrx run on this bench **without** `VICTORY_RELAY` shows the same event: one single-list submission of 3.2–4.6 s, 68–114 s into the world, with the same 19 extra compute pipelines bound. With mirroring, 2 runs survived it (`5d39`, `9d2b`) and 2 died on it (`ffcb`, `b7c3`, which also carried other changes). The A/B below is one run on each side, so it is compatible with chance. What stands: mirroring fills descriptor slots ztrx left null and lowers GPU time per draw (124 vs 278 ms per 1000 draws, both without relay). The cause of the device loss is still open. Found by @1mlesc, confirmed by @AlexisLRC. 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. | Run | Mirroring | Result | | --- | --- | --- | | `5d39` | on | **held 300 s** | | `9d2b` | on | **held 605 s** | | `45a6` | off (`VICTORY_HEAP_SYNC=0`, same exe) | `DEVICE_HUNG` `0x887A0006` at **163 s** | Without the mirroring, several runs of the day died the same way: `bd0b` 170.8 s (diagnostics), `0ba1` 191 s (diagnostics), `d9a4` 199.6 s, `2aaa` 217.6 s (both release), plus the original death at ~208 s. Others held without it: `c442` 303.7 s, `9320` 363.9 s, `991b` 423.1 s (diagnostics builds) and `e0a8` (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 build `e0a8`, 377 for `45a6` with 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 in `bd0b`, **has no loop** (disassembled: one backward branch that is a shared tail, acyclic graph). DRED names the oldest unfinished command, not the slow one. - With `VICTORY_GPU_TIMING=1` (`0ba1`) the slow commands are **indirect dispatches of compute `f22a76fcb967ee59`, 107–126 ms each**, 48 commands over 30 ms across the timed lists of the run, whose `u4`/`u5` tables point at **null** slots. Same pattern as Marvisak/VIctory#898. - ztrx has no code that mirrors descriptor records the title writes into its heaps as raw bytes; only `Create*View` calls reach the host heap. Those slots stay null or stale, and dispatches reading through them run slow (`f22a76fcb967ee59` itself has no backward branch, so "looping on missing data" is not established for it; only the duration is measured). upstream `Marvisak/VIctory` main (`940d32f`) has this as `sync_heaps` (`descriptor.rs:162`), and so does `fxceless/victory-fork`; per victory-fork's comment it comes from upstream `86a5ed6`. - **Correction to the opening post:** `90b529f` is not "one commit on top of `940d32f`". It is a root commit, and `victory-gpu`/`victory-shader` differ from `940d32f` in 80 files; `sync_heaps` is one of the things missing. #### Limits - Two runs with mirroring, one of them 600 s. Not a statistic. - Margin under the 2 s TDR is thin: `9d2b` had 17 slow submissions, 6 over 1 s, one single list at 4 027 ms that survived. - Image is not right yet: characters near-black (the ray-tracing structure builder is off by default; `VICTORY_BVH_BUILDER=1` + `VICTORY_BVH_QUARANTINE=1` as 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. - The commit is on a local branch; no PR yet. Happy to open one if it helps. 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). <sub>Posted by @Logan-Gaillard on behalf of the bench. No game data in this report.</sub> <sub>**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.</sub>
Logan-Gaillard commented 2026-11-25 15:08:45 +00:00 (Migrated from github.com)
Author

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.json was 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:

  1. Crash-tolerant results. The runner now writes result.json every 30 s (status running, duration, peak working set, window title). A runner killed mid-run leaves usable data instead of nothing.
  2. 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.
  3. Watchdog. A separate process checks every 20 s: recover orphans, and restart the runner if its heartbeat is older than 120 s. It never starts a second runner (PID + heartbeat guard), and a stop file disables it entirely when the machine is deliberately used for something else.
  4. Play lock. When the same machine is used to play, a lock file carrying the launcher's PID makes the runner skip tests, so a queued run cannot start a second game on top of a live session. An orphaned lock (dead PID) is removed automatically.

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.

<!-- greyfinch-sync:Zettrox/ztrx:comment:7165362270 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/issues/91#issuecomment-7165362270). Originally posted by [Logan-Gaillard](https://github.com/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.json` was 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: 1. **Crash-tolerant results.** The runner now writes `result.json` every 30 s (status `running`, duration, peak working set, window title). A runner killed mid-run leaves usable data instead of nothing. 2. **`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. 3. **Watchdog.** A separate process checks every 20 s: recover orphans, and restart the runner if its heartbeat is older than 120 s. It never starts a second runner (PID + heartbeat guard), and a stop file disables it entirely when the machine is deliberately used for something else. 4. **Play lock.** When the same machine is used to play, a lock file carrying the launcher's PID makes the runner skip tests, so a queued run cannot start a second game on top of a live session. An orphaned lock (dead PID) is removed automatically. 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.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Zettrox/ztrx#91
No description provided.