Repository navigation
victory doctor: name the known problems a run shows, in plain words (stacked on #959) - #1609
EduBertozzi wants to merge 9 commits into
Conversation
…s at once Double-clicking victory.exe printed clap's help in a console window that closed before it could be read (Marvisak#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 <noreply@anthropic.com>
… when SM 6.6 is missing 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 <noreply@anthropic.com>
…eport "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 <noreply@anthropic.com>
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 <noreply@anthropic.com>
Three entries after the launcher in Marvisak#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 <noreply@anthropic.com>
Most "can't run" reports in the tracker are a problem already traced in another issue: Marvisak#998 was Marvisak#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 Marvisak#998's (`victory doctor` names both problems with their links). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Measured against the 1,462 runs in the Hardware Atlas (Marvisak#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; Marvisak#1118, Marvisak#1286); - console CPU instructions an Intel CPU lacks (0xc000001d: CLWB, CLZERO, emulated on main; Marvisak#106, Marvisak#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 <noreply@anthropic.com>
|
One confirmation of the Same machine (RTX 4060 Ti 8 GB, Windows 11 26200, native D3D12), same switches:
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 |
|
Automated triage for the maintainers. Needs rebase. This pull request conflicts with Generated by Claude Code |
Stacked on #959 (the menu): this branch is #959 plus one commit,
f17a7d9. Only those commits are new here (plus1b9aad2).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:root signature flags c01,Unsupported bit-flag set+0x5149aec,INSTANCE_LIST+0xb5a5f8has no mesh shadersDXGI_ERROR_DEVICE_HUNG/_REMOVED,0x887A0006/0005+0x23cf6830xc000001dwave lane count of 64E_OUTOFMEMORY,0x8007000Eos error 1455malformed imageOnly 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%.
1b9aad2added 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:cargo clippy --workspace --all-targets --locked -- -D warnings, with and without--all-features: clean.victory.exe:victory doctoron a log shaped like 0xc0000005 at +0xb5a5f8 right after XUserAddAsync (Windows 10 22H2, RTX 3060 Laptop) #998's names the old Windows 10 runtime and the Game Init crash, with their links.🤖 Generated with Claude Code