Crash files: keep only the newest ones when asked (VICTORY_KEEP_CRASHES) #2802

Open
Demos974 wants to merge 1 commit from upstream-pr/2802 into main
Demos974 commented 2026-11-29 17:30:40 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Demos974 on 2026-11-29T17:30:40Z.


What it changes

Every crash leaves a minidump (.dmp, about 34 MB) and a ictory--

With VICTORY_KEEP_CRASHES=<n> (at least 1, since the newest crash log is what a report is asked to attach), before the title runs the n newest minidumps and the n newest crash logs stay, by modified time, and a crashes.log past 1 MiB keeps its last 256 KiB, cut at the start of a record. Unset, nothing changes. Nothing else in the folder is touched (the title keeps its telemetrycache.dat there).

apps/victory/src/crashes.rs (new), one call in apps/victory/src/run.rs.

How it was tested

  • GPU and profile: RTX 5070 Ti 16 GB (driver 621.40), Core Ultra 7 265KF (8 fast + 12 slow cores), 64 GB; Series S, 720p, DLSS Quality, DLSS frame generation x4, no ray tracing
  • Before: the temp folder held 881 MB of crash files
  • After: 169 MB with the switch, the newest crash's files kept; the title started and ran as before
  • For shader changes, the wave sizes tested: not a shader change
  • cargo test passed for the crates it touches: yes (cargo test -p victory --bin victory: 80 passed, two new tests for the choice of files and the cut of crashes.log)

Checked for overlap

  • I searched the open pull requests for crash files and crashes.log. Related: #2074 (writes refused allocations to crashes.log; this only trims it, from the start of a record)

🤖 Generated with Claude Code

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5553254302 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2802). Originally posted by [Demos974](https://github.com/Demos974) on 2026-11-29T17:30:40Z. --- ## What it changes Every crash leaves a minidump (<guid>.dmp, about 34 MB) and a ictory-<date>-<time>-<pid>.crash.log in the title's temp folder (data\<title id>\temp), and our crash reporter appends a record to crashes.log beside it. Nothing ever removed any of them: one machine had 26 dumps, 879 MB, after one morning of crashes. With `VICTORY_KEEP_CRASHES=<n>` (at least 1, since the newest crash log is what a report is asked to attach), before the title runs the `n` newest minidumps and the `n` newest crash logs stay, by modified time, and a `crashes.log` past 1 MiB keeps its last 256 KiB, cut at the start of a record. Unset, nothing changes. Nothing else in the folder is touched (the title keeps its `telemetrycache.dat` there). `apps/victory/src/crashes.rs` (new), one call in `apps/victory/src/run.rs`. ## How it was tested - GPU and profile: RTX 5070 Ti 16 GB (driver 621.40), Core Ultra 7 265KF (8 fast + 12 slow cores), 64 GB; Series S, 720p, DLSS Quality, DLSS frame generation x4, no ray tracing - Before: the temp folder held 881 MB of crash files - After: 169 MB with the switch, the newest crash's files kept; the title started and ran as before - For shader changes, the wave sizes tested: not a shader change - `cargo test` passed for the crates it touches: yes (`cargo test -p victory --bin victory`: 80 passed, two new tests for the choice of files and the cut of `crashes.log`) ## Checked for overlap - [x] I searched the open pull requests for crash files and `crashes.log`. Related: #2074 (writes refused allocations to `crashes.log`; this only trims it, from the start of a record) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2802:upstream-pr/2802'
git switch 'upstream-pr/2802'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2802'
git switch 'upstream-pr/2802'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2802'
git switch 'upstream-pr/2802'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2802'
git switch 'main'
git merge --squash 'upstream-pr/2802'
git switch 'main'
git merge --ff-only 'upstream-pr/2802'
git switch 'main'
git merge 'upstream-pr/2802'
git push origin 'main'
Sign in to join this conversation.
No reviewers
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
trustno1-coder/VIctory-NVIDIA!2802
No description provided.