warm: a full disk no longer leaves pipelines out for good (black skin) #81

Manually merged
github merged 1 commit from github-bot/gh-81 into main 2026-12-01 20:58:48 +00:00 AGit
Owner

@⁠TreXito on GitHub · 2026-12-01 17:22 UTC · original
TreXito:fix/warm-bad-crashes-only → main · +66 −5 · 3 files · 1 commits · merged 2026-12-01 20:55 UTC

What went wrong

victory warm writes every pipeline whose worker ended abnormally twice to warm-bad.txt, and the title then leaves every pipeline named there out for good ("not made: the driver's compiler crashed on it before"). Nothing checked how the worker ended.

Here the disk filled up during a warm. A worker could not save a generated rectangle-list stage (prepared::rectangle: "Disk full. (os error 112)") and ended with std::process::exit(2). Workers kept ending that way, so 26 pipelines went into warm-bad.txt as <key> exit code: 2. Freeing the disk does not undo it: the list is only ever added to.

22 of those 26 were character pipelines. 18 of them are first bound on the same frame as the face draws in the intro, so their draws were dropped for the whole run (a median of about 175 a frame once characters are on screen, up to about 800), and skin came out black on every character.

Change

  • known::ends_compiler(why): a worker's end counts as the compiler's only if it is an exception code (0xC..., what end_on_crash exits with) or a hang (unresponsive for 45 s). An ordinary exit code does not count.
  • victory warm writes only those ends to warm-bad.txt. A pipeline whose worker failed in another way is tried again on the next warm, and the title still makes it under its own crash guard. A real crash there still lands in the list ("ended the compiler in a run").
  • known::bad_line_key(line): both readers, the title's loader in make.rs and warm's skip set, pass over lines whose recorded end is an ordinary exit code. Lists written before this change heal on their own, with no manual cleanup. Comments, bare keys and the title's own lines are read as before.

+66/−5 in known.rs, make.rs and warm.rs, two new unit tests.

Measured

New-game intro, the same shot about 130 s in, diagnostics build. The runs used a local branch that carries this change on top of main plus unrelated local patches, so I compare them by pipeline counts, not frame times:

pipelines left out crashes in the title's guard dropped draws / frame faces
before this change, the 26-line list 22 0 ~175 (median) black
list emptied by hand 0 0 0 lit
this change, the 26-line list left in place 0 0 0 lit

The title made all 22 itself, so the compiler never failed on any of them. With this change the old list stays on disk (26 lines) and simply stops leaving them out.

Checks

  • cargo test -p victory-gpu --lib pipeline::known::tests: 5 passed (2 new).
  • cargo test -p victory --bin victory warm::: 3 passed.
    • Both suites ran under Wine with WINEDLLOVERRIDES='d3d12,d3d12core,dxgi=n'. Without it, the test executables fail to load d3d12.dll.
  • cargo clippy --all-targets for both packages: no warnings in the changed lines. The two in warm.rs around line 214 are already on main.
  • rustfmt --check is clean on the three files.

Not measured: a real compiler crash during a warm. That path is unchanged apart from the new check, and the exception codes are covered by the unit test.

AI-assisted (Claude Code); no game data.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WNCfbX5dPKJzSkgbf16GX4

**@⁠TreXito** on GitHub · 2026-12-01 17:22 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/81) `TreXito:fix/warm-bad-crashes-only` → `main` · +66 −5 · 3 files · 1 commits · merged 2026-12-01 20:55 UTC ## What went wrong `victory warm` writes every pipeline whose worker ended abnormally twice to `warm-bad.txt`, and the title then leaves every pipeline named there out for good ("not made: the driver's compiler crashed on it before"). Nothing checked *how* the worker ended. Here the disk filled up during a warm. A worker could not save a generated rectangle-list stage (`prepared::rectangle`: "Disk full. (os error 112)") and ended with `std::process::exit(2)`. Workers kept ending that way, so 26 pipelines went into `warm-bad.txt` as `<key> exit code: 2`. Freeing the disk does not undo it: the list is only ever added to. 22 of those 26 were character pipelines. 18 of them are first bound on the same frame as the face draws in the intro, so their draws were dropped for the whole run (a median of about 175 a frame once characters are on screen, up to about 800), and skin came out black on every character. ## Change - `known::ends_compiler(why)`: a worker's end counts as the compiler's only if it is an exception code (`0xC...`, what `end_on_crash` exits with) or a hang (`unresponsive for 45 s`). An ordinary exit code does not count. - `victory warm` writes only those ends to `warm-bad.txt`. A pipeline whose worker failed in another way is tried again on the next warm, and the title still makes it under its own crash guard. A real crash there still lands in the list ("ended the compiler in a run"). - `known::bad_line_key(line)`: both readers, the title's loader in `make.rs` and warm's skip set, pass over lines whose recorded end is an ordinary exit code. Lists written before this change heal on their own, with no manual cleanup. Comments, bare keys and the title's own lines are read as before. +66/−5 in `known.rs`, `make.rs` and `warm.rs`, two new unit tests. ## Measured New-game intro, the same shot about 130 s in, diagnostics build. The runs used a local branch that carries this change on top of `main` plus unrelated local patches, so I compare them by pipeline counts, not frame times: | | pipelines left out | crashes in the title's guard | dropped draws / frame | faces | |---|---|---|---|---| | before this change, the 26-line list | 22 | 0 | ~175 (median) | black | | list emptied by hand | 0 | 0 | 0 | lit | | this change, the 26-line list left in place | 0 | 0 | 0 | lit | The title made all 22 itself, so the compiler never failed on any of them. With this change the old list stays on disk (26 lines) and simply stops leaving them out. ## Checks - `cargo test -p victory-gpu --lib pipeline::known::tests`: 5 passed (2 new). - `cargo test -p victory --bin victory warm::`: 3 passed. - Both suites ran under Wine with `WINEDLLOVERRIDES='d3d12,d3d12core,dxgi=n'`. Without it, the test executables fail to load `d3d12.dll`. - `cargo clippy --all-targets` for both packages: no warnings in the changed lines. The two in `warm.rs` around line 214 are already on `main`. - `rustfmt --check` is clean on the three files. Not measured: a real compiler crash during a warm. That path is unchanged apart from the new check, and the exception codes are covered by the unit test. AI-assisted (Claude Code); no game data. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01WNCfbX5dPKJzSkgbf16GX4
A warm worker that ended with an ordinary exit code (a full disk exits
with 2 when a generated stage cannot be saved) was written to
warm-bad.txt like a compiler crash, and the title then left that
pipeline out for good. Only exception codes and hangs go there now,
and both readers pass over earlier lines that record an ordinary exit,
so lists written before this heal on their own.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WNCfbX5dPKJzSkgbf16GX4
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 17:27:22 +00:00
github-bot referenced this pull request from a commit 2026-12-01 20:58:42 +00:00
github manually merged commit 34459c19fe into main 2026-12-01 20:58:47 +00:00
github-bot referenced this pull request from a commit 2026-12-01 21:04:22 +00:00
github-bot referenced this pull request from a commit 2026-12-04 19:05:27 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.