Crash files: keep only the newest ones when asked (VICTORY_KEEP_CRASHES) #2802
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2802
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2802"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Demos974 on GitHub · 2026-11-29 17:30 UTC · original
Demos974:crash-files-cleanup→main· +164 −0 · 2 files · 1 commits · openWhat 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 thennewest minidumps and thennewest crash logs stay, by modified time, and acrashes.logpast 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 itstelemetrycache.datthere).apps/victory/src/crashes.rs(new), one call inapps/victory/src/run.rs.How it was tested
cargo testpassed 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 ofcrashes.log)Checked for overlap
crashes.log. Related: #2074 (writes refused allocations tocrashes.log; this only trims it, from the start of a record)🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.