Keep the shader cache when its translator marker is unreadable #4908
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!4908
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4907"
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?
@andrewpozdnakov7-jpg on GitHub · 2026-12-01 13:24 UTC · original
andrewpozdnakov7-jpg:codex2/fix/preserve-cache-on-marker-read-error→main· +5 −1 · 1 files · 1 commits · openWhat it changes
A transient read failure of
translator.txtis currently treated as a missing marker. Startup then clears translated shaders and compiled host pipeline artifacts even though the marker may name the current translator.The launcher now returns the read error and keeps the cache. Its existing error path reports the failure and continues the launch. A missing marker or one containing invalid UTF-8 still follows the cache refresh path.
How it was tested
clear_stale_inwith a real synthetic marker open through a write handle that denied reads. The artifact cleanup was stubbed to count calls.5fabb46eand releasee1251c31have identical code for this function. It called cleanup once and returned success. On137aed47e7d05e57ef13bb13cc96f19dc06948cf, cleanup was skipped and the Windows sharing error was reported to the caller.cargo xtask policy --stagedaccepted the source file.Checked for overlap
git merge-tree.Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding the change into another commit.AI-assisted with OpenAI Codex.
@tyr0nsur on GitHub · 2026-12-01 13:37 UTC · original
Verified end to end on Windows. I built the exact
5fabb46eand137aed47executables withcargo build --locked -p victoryand ran each withvictory.exe warm --limit 0 --jobs 1. A temporaryvictory.tomlselected isolated cache and data paths. Each cache had a synthetic shader artifact, a host-pipeline artifact and an empty pipeline book.With the current
translator.txtheld open for writing while denying reads, Windows returned sharing violation 32. Main deleted both artifacts. The PR kept both and printed the cache-read warning. Both invocations completed normally and left the book and marker in place.I also checked matching, different, missing and invalid UTF-8 markers through the same command. Matching kept the artifacts. The other three refreshed them, set the current marker and retained the book on both builds. Ten CLI cases passed, with no title or real cache involved.
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.