(removed by author) #792

Closed
opened 2026-11-24 11:01:40 +00:00 by JFIREonFIRE · 3 comments
JFIREonFIRE commented 2026-11-24 11:01:40 +00:00 (Migrated from github.com)
Contributor

Imported from Marvisak/VIctory. Originally posted by JFIREonFIRE on 2026-11-24T11:01:40Z.


(removed by author)

<!-- greyfinch-sync:Marvisak/VIctory:issue:6580301704 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/792). Originally posted by [JFIREonFIRE](https://github.com/JFIREonFIRE) on 2026-11-24T11:01:40Z. --- (removed by author)
nopsled0x commented 2026-11-24 15:04:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by nopsled0x on 2026-11-24T14:58:18Z.


I checked fix/capture-creates-folder (1e82209, on top of ffe310e) on Windows 10, debug build:

  • cargo test -p victory-gpu --locked --features diagnostics -- capture: 3 passed, 0 failed, including capture::tests::a_missing_capture_folder_is_made. The capture module is only compiled with --features diagnostics, so the test does not run without it.
  • cargo clippy -p victory-gpu --all-targets --locked -- -D warnings, with and without --features diagnostics: clean.
  • From reading the diff (not tested beyond the unit test above): made runs inside the OnceLock initializer, so the capture folder not made warning is logged at most once per process. If the folder cannot be created, the path is still returned, as before, so only the warning is new. VICTORY_DUMP_TARGETS takes its folder from the same folder(), so it gets the same fix.
  • Not covered by the test (read, not run): a path that is already a file would only log the warning, and an empty VICTORY_CAPTURE logs nothing, because create_dir_all("") returns Ok. A relative path is resolved against the game process's working directory.

Not verified: cargo test --workspace, cargo xtask policy, rustfmt, workspace-wide clippy, the capture end to end on a real run (the 10 saved frames in the description), or VICTORY_DUMP_TARGETS in practice.

AI-assisted verification (Claude); tests were run locally by me.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7135247200 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/792#issuecomment-7135247200). Originally posted by [nopsled0x](https://github.com/nopsled0x) on 2026-11-24T14:58:18Z. --- I checked `fix/capture-creates-folder` (1e82209, on top of ffe310e) on Windows 10, debug build: - `cargo test -p victory-gpu --locked --features diagnostics -- capture`: 3 passed, 0 failed, including `capture::tests::a_missing_capture_folder_is_made`. The `capture` module is only compiled with `--features diagnostics`, so the test does not run without it. - `cargo clippy -p victory-gpu --all-targets --locked -- -D warnings`, with and without `--features diagnostics`: clean. - From reading the diff (not tested beyond the unit test above): `made` runs inside the `OnceLock` initializer, so the `capture folder not made` warning is logged at most once per process. If the folder cannot be created, the path is still returned, as before, so only the warning is new. `VICTORY_DUMP_TARGETS` takes its folder from the same `folder()`, so it gets the same fix. - Not covered by the test (read, not run): a path that is already a file would only log the warning, and an empty `VICTORY_CAPTURE` logs nothing, because `create_dir_all("")` returns `Ok`. A relative path is resolved against the game process's working directory. Not verified: `cargo test --workspace`, `cargo xtask policy`, `rustfmt`, workspace-wide clippy, the capture end to end on a real run (the 10 saved frames in the description), or `VICTORY_DUMP_TARGETS` in practice. _AI-assisted verification (Claude); tests were run locally by me._
jamesn-xt commented 2026-11-24 17:04:20 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by jamesn-xt on 2026-11-24T16:13:52Z.


Independently reproduced this on Windows 11 / RTX 4080: a nonexistent capture directory lost all requested PNGs. After a local directory-creation change and diagnostics rebuild, a previously nonexistent directory was created and frames were saved in a bounded WARP run.

I submitted the minimal alternative as #1146. Its description credits this issue and the existing JFIREonFIRE branch; please prefer whichever implementation fits. This does not claim to fix title rendering. Validation: workspace 342 passed / 6 ignored; diagnostics GPU tests 53 passed / 1 ignored; both workspace CI Clippy configurations and the asset-policy check passed. No retail logs or captures attached.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7137327141 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/792#issuecomment-7137327141). Originally posted by [jamesn-xt](https://github.com/jamesn-xt) on 2026-11-24T16:13:52Z. --- Independently reproduced this on Windows 11 / RTX 4080: a nonexistent capture directory lost all requested PNGs. After a local directory-creation change and diagnostics rebuild, a previously nonexistent directory was created and frames were saved in a bounded WARP run. I submitted the minimal alternative as #1146. Its description credits this issue and the existing JFIREonFIRE branch; please prefer whichever implementation fits. This does not claim to fix title rendering. Validation: workspace 342 passed / 6 ignored; diagnostics GPU tests 53 passed / 1 ignored; both workspace CI Clippy configurations and the asset-policy check passed. No retail logs or captures attached.
Marvisak commented 2026-11-25 04:07:09 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T03:53:12Z.


Automated triage for the maintainers. Fixed in main by #1146 ("GPU diagnostics: create missing capture output directories"), which credits this issue. The frame writer in crates/victory-gpu/src/capture.rs now calls create_dir_all on the capture folder before it writes each PNG. Proposed for closing as fixed in main. It will be closed in 48 hours unless the reporter replies or a maintainer removes the label.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7152331097 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/792#issuecomment-7152331097). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T03:53:12Z. --- <!-- victory-issue-triage v1 verdict=proposed-close seen=2026-11-24T16:13:52Z at=2026-11-25T03:53:11Z --> Automated triage for the maintainers. Fixed in `main` by #1146 ("GPU diagnostics: create missing capture output directories"), which credits this issue. The frame writer in `crates/victory-gpu/src/capture.rs` now calls `create_dir_all` on the capture folder before it writes each PNG. Proposed for closing as fixed in `main`. It will be closed in 48 hours unless the reporter replies or a maintainer removes the label. --- _Generated by [Claude Code](https://claude.ai/code)_
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
Marvisak/VIctory#792
No description provided.