victory doctor: name the known problems a run shows, in plain words (stacked on #959) #1609

Open
github-bot wants to merge 9 commits from github-bot/gh-1609 into main AGit
Owner

@⁠EduBertozzi on GitHub · 2026-11-24 19:45 UTC · original
EduBertozzi:ux/doctor → main · +1797 −0 · 5 files · 9 commits · open

Stacked on #959 (the menu): this branch is #959 plus one commit, f17a7d9. Only those commits are new here (plus 1b9aad2).

What

Many "can't run" reports are problems already traced in another issue. #998, for example, turned out to be #741. This adds a small table of those known problems (apps/victory/src/doctor.rs). Each entry has:

  • the text that shows it in a run's output or crash log;
  • what it means, in plain words;
  • where it's tracked.
shows as what it says tracked in
root signature flags c01, Unsupported bit-flag set Windows 10's built-in D3D12 is too old; the Agility runtime fixes it #84, #175, #969
+0x5149aec, INSTANCE_LIST the title stopped itself, its instance pool full #698, #704
+0xb5a5f8 the known Game Init crash #741, #998
has no mesh shaders no mesh shaders; a compute fallback is proposed #3, #961
DXGI_ERROR_DEVICE_HUNG/_REMOVED, 0x887A0006/0005 GPU hung or removed, mostly NVIDIA's 32-lane waves #778, #587, #578
+0x23cf683 the title's own watchdog (frames stopped advancing) #1118, #1286
0xc000001d a console CPU instruction this CPU lacks (CLWB, CLZERO) #106, #103
wave lane count of 64 64-lane programs on a 32-lane GPU #233, #1107
E_OUTOFMEMORY, 0x8007000E out of GPU memory #737, #1086
os error 1455 out of commit (paging file), as the README says –
malformed image the file isn't a title's executable –

Only text that VIctory, D3D12 or the title print verbatim, and that an issue has traced to a cause, is in the table. Anything else gets no guess.

Coverage, measured. I ran the table against the full report text of the 1,462 runs in the Hardware Atlas (#49). Of the 846 that ended in a hang, a crash or the title's watchdog, it names the cause of 584 (69%). A first version named 49%. 1b9aad2 added the title's watchdog (+0x23cf683), console CPU instructions (0xc000001d) and any removed device (0x887A0005), each traced in the issues it links. The Atlas now shows the breakdown under Why runs stop. Most of the rest describe the end only in prose (black, hang), with no signature to go by.

In the menu: a run's log is shown as it comes, as before, and the menu keeps its end. If that log, or what the crash logs gained during the run, matches an entry, the menu lists the problems under What happened, with their links.

On the command line: victory doctor [FILES] does the same for a saved log, or for the data folder's crash logs when no file is given.

When a cause is fixed or a new one is traced, keeping the table current is a one-entry change.

Tested

Native Windows 10 22H2 (19045), GTX 1060, MSVC:

  • cargo test -p victory: 19 tests. The 7 new ones cover:
    • each signature against a line as the issues quote it;
    • colour codes and case;
    • order and repeats;
    • a clean run matching nothing;
    • only the crash log's new part being read;
    • the findings' layout;
    • a child's error output being shown and kept.
  • cargo clippy --workspace --all-targets --locked -- -D warnings, with and without --all-features: clean.
  • In the built victory.exe:
    • Running a file that isn't a title from the menu shows "That file isn't a title's executable" under What happened.
    • victory doctor on a log shaped like #998's names the old Windows 10 runtime and the Game Init crash, with their links.

🤖 Generated with Claude Code

**@⁠EduBertozzi** on GitHub · 2026-11-24 19:45 UTC · [original](https://github.com/Marvisak/VIctory/pull/1609) `EduBertozzi:ux/doctor` → `main` · +1797 −0 · 5 files · 9 commits · open **Stacked on #959** (the menu): this branch is #959 plus one commit, [`f17a7d9`](https://github.com/EduBertozzi/VIctory/commit/f17a7d9). Only those commits are new here (plus [`1b9aad2`](https://github.com/EduBertozzi/VIctory/commit/1b9aad2)). ## What Many "can't run" reports are problems already traced in another issue. #998, for example, turned out to be #741. This adds a small table of those known problems (`apps/victory/src/doctor.rs`). Each entry has: - the text that shows it in a run's output or crash log; - what it means, in plain words; - where it's tracked. | shows as | what it says | tracked in | |---|---|---| | `root signature flags c01`, `Unsupported bit-flag set` | Windows 10's built-in D3D12 is too old; the Agility runtime fixes it | #84, #175, #969 | | `+0x5149aec`, `INSTANCE_LIST` | the title stopped itself, its instance pool full | #698, #704 | | `+0xb5a5f8` | the known Game Init crash | #741, #998 | | `has no mesh shaders` | no mesh shaders; a compute fallback is proposed | #3, #961 | | `DXGI_ERROR_DEVICE_HUNG`/`_REMOVED`, `0x887A0006`/`0005` | GPU hung or removed, mostly NVIDIA's 32-lane waves | #778, #587, #578 | | `+0x23cf683` | the title's own watchdog (frames stopped advancing) | #1118, #1286 | | `0xc000001d` | a console CPU instruction this CPU lacks (CLWB, CLZERO) | #106, #103 | | `wave lane count of 64` | 64-lane programs on a 32-lane GPU | #233, #1107 | | `E_OUTOFMEMORY`, `0x8007000E` | out of GPU memory | #737, #1086 | | `os error 1455` | out of commit (paging file), as the README says | – | | `malformed image` | the file isn't a title's executable | – | Only text that VIctory, D3D12 or the title print verbatim, and that an issue has traced to a cause, is in the table. Anything else gets no guess. **Coverage, measured.** I ran the table against the full report text of the 1,462 runs in the [Hardware Atlas](https://claude.ai/artifact/FDZoCTLSfg26aPU7Y8XtSP) (#49). Of the 846 that ended in a hang, a crash or the title's watchdog, it names the cause of **584 (69%)**. A first version named 49%. [`1b9aad2`](https://github.com/EduBertozzi/VIctory/commit/1b9aad2) added the title's watchdog (`+0x23cf683`), console CPU instructions (`0xc000001d`) and any removed device (`0x887A0005`), each traced in the issues it links. The Atlas now shows the breakdown under *Why runs stop*. Most of the rest describe the end only in prose (black, hang), with no signature to go by. **In the menu:** a run's log is shown as it comes, as before, and the menu keeps its end. If that log, or what the crash logs gained during the run, matches an entry, the menu lists the problems under **What happened**, with their links. **On the command line:** `victory doctor [FILES]` does the same for a saved log, or for the data folder's crash logs when no file is given. When a cause is fixed or a new one is traced, keeping the table current is a one-entry change. ## Tested Native Windows 10 22H2 (19045), GTX 1060, MSVC: - `cargo test -p victory`: 19 tests. The 7 new ones cover: - each signature against a line as the issues quote it; - colour codes and case; - order and repeats; - a clean run matching nothing; - only the crash log's new part being read; - the findings' layout; - a child's error output being shown and kept. - `cargo clippy --workspace --all-targets --locked -- -D warnings`, with and without `--all-features`: clean. - In the built `victory.exe`: - Running a file that isn't a title from the menu shows "That file isn't a title's executable" under What happened. - `victory doctor` on a log shaped like #998's names the old Windows 10 runtime and the Game Init crash, with their links. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Double-clicking victory.exe printed clap's help in a console window that
closed before it could be read (#527). Started with no arguments in a
console of its own (`GetConsoleProcessList` gives one process), or with
VICTORY_MENU=1, it now shows a menu:

1. Run a game: drag the title's .exe onto the window, or type or paste
   its path. Quotes and PowerShell's `& '...'` are taken off. It runs as
   `victory run <exe> --execute` would.
2. Run again: the last game run from the menu, remembered in the data
   folder while the file is still there.
3. Check this PC, in two sections with a mark and a hint per line:
   * This PC: the Windows build (Windows 10's built-in D3D12 stops at
     SM 6.5, and the hint says whether a D3D12\ folder sits beside the
     exe), AVX2, and what a run of this executable gets from the GPU:
     SM 6.6, mesh shaders, the widest wave.
   * Paths: the game, data and cache folders.
4. Open the data folder (saves, crashes.log) in Explorer.

After a run, or a run that stops with an error, the window waits for
Enter so the last lines can be read. A wrong key shows what to type.

Colours: a sunset gradient of VIctory's own (dusk blue, violet, orchid,
pink, peach, amber) for the name and its horizon line, and marks in the
same palette. Nothing of the title's. Virtual-terminal sequences are
turned on in the console; NO_COLOR turns colour off, CLICOLOR_FORCE=1 on.
With arguments, or in a console another program already uses (cmd,
PowerShell, a terminal), nothing changes.

Tests: dragged and pasted paths, answers (and a byte-order mark before
piped input), the remembered game, the check's lines on Windows 10 with a
32-lane GPU without mesh shaders and on Windows 11 without SM 6.6, the
gradient, plain output without colour, and the "run again" line. A piped
run of check / wrong key / bad path / quit printed what's expected.
Dependencies: windows-sys (console, registry) and windows (D3D12 feature
queries) for the app, both already in the workspace; tempfile for tests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Show the Windows 10 Agility hint only when the SM 6.6 check needs it
A run from the menu was `run::run` in the menu's own process, so a title
that crashed or exited took the window with it, and its last lines with
it. It is now a child `victory run <game> --execute` in the same console:
the menu says how it ended (the exit code, in hex for an NTSTATUS such as
0xC0000005) and waits for Enter. Ctrl+C and Ctrl+Break stop the run, not
the menu.

Also: hints wrap to the console's width, under the line they explain
(they ran back to the left edge); "Checking this PC..." shows while the
GPU device is made; the window is titled VIctory; opening the data folder
says which folder it opened.

Tried on Windows 10 19045 with a file that isn't a game: the child stops
with "malformed image", the menu shows exit code 1 and carries on.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
"Check this PC" now starts its GPU lines with the default adapter's name
and user-mode driver version from DXGI, which it reads also where no
shader model 6.6 device can be made (the case "can't run" reports are
about). After the check, C then Enter puts it on the clipboard as plain
text for a GitHub report: no colour, no wrapping, the user's profile
folder written as %USERPROFILE%, through the Win32 clipboard as Unicode
text with CRLF line ends.

Tried on Windows 10 19045 with a GTX 1060: the line reads "GPU: NVIDIA
GeForce GTX 1060 6GB (driver 32.0.15.8266)", and the copied text starts
with "VIctory 0.1.0", keeps the check marks and holds no profile path.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
PowerShell (Windows Terminal's default) pastes a dragged path as
`& 'D:\Games\Tom''s Game\title.exe'`, an apostrophe doubled inside single
quotes. The menu took the quotes off and kept `''`, so such a game was "No
file there". A double-quoted path (cmd) keeps its apostrophe as it is.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Three entries after the launcher in #1330 (sahajiscoding), written for
this menu:

- S sets [paths].game_dir in the config file the tools read
  (VICTORY_CONFIG, else victory.toml beside a double-clicked victory.exe).
  A dropped .exe stands for its folder. The active game_dir line is
  replaced, or one is added under [paths], or [paths] is appended. Every
  other line and comment stays. A folder inside the repository is
  refused with the asset-policy message, and the menu says when
  VICTORY_GAME_DIR overrides the file.
- K shows the keyboard's stand-in pad as gameinput.rs maps it and the
  README lists it.
- M switches the console model a run uses (victory run --console),
  remembered in the data folder.

Tests: the config edit on an empty file, on the example file (comments
kept, one game_dir), with and without [paths], with an apostrophe (a
basic string) and with CRLF, each read back with toml; the model
switch and its memory; the keys table; the run command's --console.
Tried in the built victory.exe with a scratch VICTORY_CONFIG: S from a
dragged .exe, M, K, and a repository folder refused.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Most "can't run" reports in the tracker are a problem already traced in
another issue: #998 was #741, and so on. A table of those problems
(apps/victory/src/doctor.rs) maps each to the text that shows it in a
run's output or crash log, with what it means and where it is tracked:

- Windows 10's built-in D3D12 too old (root signature flags c01)
- the title's instance pool full (+0x5149aec, INSTANCE_LIST)
- the Game Init crash at +0xb5a5f8
- no mesh shaders
- GPU hang (DXGI_ERROR_DEVICE_HUNG)
- 64-lane wave programs on a 32-lane GPU
- out of GPU memory
- out of commit (os error 1455)
- a file that isn't a title's executable

Only text that VIctory, D3D12 or the title print verbatim, and that an
issue has traced to a cause, is in it; anything else gets no guess.

After a run the menu now shows the run's log as it comes and keeps its
end. If the log or what the crash logs gained during the run match, it
lists the problems under "What happened". `victory doctor [FILES]` does
the same for a saved log, or for the data folder's crash logs.

Tests: each signature against a line as the issues quote it, colour
codes and case, order and repeats, a clean run getting nothing, only the
crash log's new part being read, the findings' layout, and a child's
error output shown and kept. Tried in the built victory.exe: a file that
isn't a title (the menu names it) and a log shaped like #998's
(`victory doctor` names both problems with their links).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Measured against the 1,462 runs in the Hardware Atlas (#49), with each
run's report text: the table named something in 417 of the 846 runs that
ended in a hang, a crash or a title watchdog (49%). Three entries bring
that to 584 (69%):

- the GPU entry also names a removed device (DXGI_ERROR_DEVICE_REMOVED,
  0x887A0005, "device removed"), not only a hung one, and says how to
  get DRED output for a report;
- the title's own watchdog (+0x23cf683, a deliberate write to 0 when
  frames stop advancing; #1118, #1286);
- console CPU instructions an Intel CPU lacks (0xc000001d: CLWB,
  CLZERO, emulated on main; #106, #103).

Each was traced in the issues named; the rest of the uncovered runs
show no common verbatim signature (mostly "black" or "hang" in prose).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:38:14 +00:00
Author
Owner

@⁠aef200 on GitHub · 2026-11-24 21:54 UTC · original

One confirmation of the +0x23cf683 row, from a card where both outcomes happen on the same title.

Same machine (RTX 4060 Ti 8 GB, Windows 11 26200, native D3D12), same switches:

  • upstream ffe310e: the watchdog fires after about two minutes, during the opening cutscene;
  • fxceless/victory-gta6 at 1684989: the same title runs about 31 minutes into the prologue and stops at the beat where Lucia is tasered and arrested.

So it reads exactly as your entry says - frames stopped advancing - and not as a time limit or a fixed story point. Frame rate does not explain it either: the run that gets much further is the slower one (780 ms/frame against 430 ms on upstream), so nothing is being outrun.

Two more numbers in case they help the Atlas rather than the table: the 31-minute run held 1-2 fps and about 10-16 GB of RAM, and the watchdog came on a frame that was still being presented at that rate. There was no device removal and no 0xc000001d on either run - both simply stopped with the title's own trap.

**@⁠aef200** on GitHub · 2026-11-24 21:54 UTC · [original](https://github.com/Marvisak/VIctory/pull/1609#issuecomment-7145544946) One confirmation of the `+0x23cf683` row, from a card where both outcomes happen on the same title. Same machine (RTX 4060 Ti 8 GB, Windows 11 26200, native D3D12), same switches: - upstream `ffe310e`: the watchdog fires after about two minutes, during the opening cutscene; - `fxceless/victory-gta6` at `1684989`: the same title runs about 31 minutes into the prologue and stops at the beat where Lucia is tasered and arrested. So it reads exactly as your entry says - frames stopped advancing - and not as a time limit or a fixed story point. Frame rate does not explain it either: the run that gets much further is the slower one (780 ms/frame against 430 ms on upstream), so nothing is being outrun. Two more numbers in case they help the Atlas rather than the table: the 31-minute run held 1-2 fps and about 10-16 GB of RAM, and the watchdog came on a frame that was still being presented at that rate. There was no device removal and no `0xc000001d` on either run - both simply stopped with the title's own trap.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 01:32 UTC · original

Automated triage for the maintainers.

Needs rebase. This pull request conflicts with main (conflicting: Cargo.lock, apps/victory/src/main.rs). It will be reviewed once it is rebased onto the current main.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 01:32 UTC · [original](https://github.com/Marvisak/VIctory/pull/1609#issuecomment-7149657828) <!-- victory-triage v1 head=1b9aad25591616b2f86093c1ceb8eff3701f8cc8 verdict=needs-rebase at=2026-11-25T01:32:09Z --> Automated triage for the maintainers. **Needs rebase.** This pull request conflicts with `main` (conflicting: `Cargo.lock`, `apps/victory/src/main.rs`). It will be reviewed once it is rebased onto the current `main`. --- _Generated by [Claude Code](https://claude.ai/code)_
This pull request has changes conflicting with the target branch.
  • Cargo.lock
  • apps/victory/src/main.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1609/head:github-bot/gh-1609'
git switch 'github-bot/gh-1609'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1609'
git switch 'github-bot/gh-1609'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1609'
git switch 'github-bot/gh-1609'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1609'
git switch 'main'
git merge --squash 'github-bot/gh-1609'
git switch 'main'
git merge --ff-only 'github-bot/gh-1609'
git switch 'main'
git merge 'github-bot/gh-1609'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!1609
No description provided.