Record startup errors in the play log #3091

Closed
github-bot wants to merge 1 commit from github-bot/gh-3091 into main AGit
Owner

@⁠Kitrae on GitHub · 2026-11-29 19:57 UTC · original
Kitrae:fix/startup-error-log → main · +40 −3 · 2 files · 1 commits · closed without merging

Related to #3026.

What it changes

When the built-in launcher creates a play log and startup then returns an error, the error chain now goes into that same log. The launcher writes it synchronously before exit so it reaches the file even if the background tracing writer has yet to drain its queue. The original console error and exit status are preserved.

How it was tested

  • Windows, using a synthetic input file and malformed victory.toml. No game data or rendering was involved.
  • Before, victory play exited with code 1 and showed the TOML error on stderr, while the play log contained only its settings header.
  • After, it still exited with code 1 and reported the error on stderr. The play log kept its settings header and included the complete error chain, even with tracing turned off.
  • cargo test --locked -p victory: 83 passed, including the regression test. git diff --check and the asset-policy check for the two changed files passed. The repository-wide policy scan flags an unchanged file, crates/victory-loader/src/heap_sites/frame_users.rs.

Checked for overlap

  • Searched open PRs for missing startup errors in the play log. Related: #2227 and #2713.

AI-assisted contribution using OpenAI Codex.

**@⁠Kitrae** on GitHub · 2026-11-29 19:57 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3091) `Kitrae:fix/startup-error-log` → `main` · +40 −3 · 2 files · 1 commits · closed without merging Related to #3026. ## What it changes When the built-in launcher creates a play log and startup then returns an error, the error chain now goes into that same log. The launcher writes it synchronously before exit so it reaches the file even if the background tracing writer has yet to drain its queue. The original console error and exit status are preserved. ## How it was tested - Windows, using a synthetic input file and malformed `victory.toml`. No game data or rendering was involved. - Before, `victory play` exited with code 1 and showed the TOML error on stderr, while the play log contained only its settings header. - After, it still exited with code 1 and reported the error on stderr. The play log kept its settings header and included the complete error chain, even with tracing turned off. - `cargo test --locked -p victory`: 83 passed, including the regression test. `git diff --check` and the asset-policy check for the two changed files passed. The repository-wide policy scan flags an unchanged file, `crates/victory-loader/src/heap_sites/frame_users.rs`. ## Checked for overlap - [x] Searched open PRs for missing startup errors in the play log. Related: #2227 and #2713. AI-assisted contribution using OpenAI Codex.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 20:00:15 +00:00
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-12-01 10:06 UTC · original

I cherry-picked 082b153 onto current main 5fabb46 as 9d1c7cf, preserving Kitrae as Git author. I kept both current preload markers in Ready and carried the absolute play-log path alongside them. Only the two source files from the original patch changed.

On Windows/MSVC, cargo test --locked -p victory --bin victory startup_error_is_appended_to_the_play_log --jobs 2 passed. It checks that the settings header survives and that the error chain is appended. The staged asset policy check also passed for both files. The run used a temporary log and no game inputs.

The rebased branch is available for this PR.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-12-01 10:06 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3091#issuecomment-7307673367) I cherry-picked `082b153` onto current `main` `5fabb46` as [`9d1c7cf`](https://github.com/andrewpozdnakov7-jpg/VIctory-NVIDIA/commit/9d1c7cf6ccd2d8adfd767ab23bf290642853a0cf), preserving Kitrae as Git author. I kept both current preload markers in `Ready` and carried the absolute play-log path alongside them. Only the two source files from the original patch changed. On Windows/MSVC, `cargo test --locked -p victory --bin victory startup_error_is_appended_to_the_play_log --jobs 2` passed. It checks that the settings header survives and that the error chain is appended. The staged asset policy check also passed for both files. The run used a temporary log and no game inputs. The rebased branch is available for this PR.
github-bot closed this pull request 2026-12-01 18:59:08 +00:00

Pull request closed

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/trustno1-coder--VIctory-NVIDIA!3091
No description provided.