warm: stop when known-shaders.bin cannot be opened #29
No reviewers
Labels
No labels
accessibility
amd
bug
crash
device-removed
documentation
duplicate
enhancement
feature-request
good first issue
help wanted
input
invalid
launcher
memory
needs-logs
nvidia
off-topic
performance
question
shaders
stutter
visuals
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/VGLALALA--ReVictory-RDNA3!29
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-29"
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?
@Kal0s-design on GitHub · 2026-12-05 14:57 UTC · original
Kal0s-design:fix/warm-zero-pipelines→main· +61 −0 · 3 files · 1 commits · merged 2026-12-05 18:18 UTCThis is for #12, where warm reports 0 made with nothing failed and nothing missing.
The reporter's cache had only known-pipelines.bin copied in. Warm also reads known-shaders.bin from the same folder, and when that file cannot be opened WarmWorker::open returns None. The persistent worker then exits 0 without printing anything. The parent sees no result, takes the first pipeline as the suspect and retries it alone, and the one-shot worker fails to open the file the same way and also exits 0, so the retry is treated as made alone. Neither counter is touched and the pipeline leaves the queue. Every pipeline goes this way, two process starts each, which gives "0 made (0 have no host pipeline, 0 ended their process)" and a warm-done.txt that is never written. The same code is in upstream, so this is not from the RDNA3 tuning.
Warm now checks that known-shaders.bin can be opened before it starts any worker, and stops with an error that names the file and says both files come from runs with VICTORY_PIPELINE_BOOK=1. It only checks that the file opens. An empty file still takes the existing path, which warm_bad relies on.
The new test warm_missing_shaders builds a cache with three pipelines and no known-shaders.bin. On main it printed the same two lines as the issue and exited 0. With this change warm fails and names the file. warm_bad still passes. I ran both on one NVIDIA desktop card, and nothing on this path depends on the vendor. Clippy on the workspace stops in victory-dxil on a manual_range_patterns lint that is already on main, which is also why CI on main is red, so I could not get a clean clippy run past that crate.
Unrelated to the fix, but it may help the reporter. On AMD warm fills the driver's own cache and does not write host-pipelines.bin unless VICTORY_WARM_LIBRARY=1 is set. That file is written by the game run, so not having it after a warm is expected.
A possible follow-up, not in this change, is to stop counting a retry that exits 0 as made unless that pipeline actually reported made. That would close this kind of silent drop for any other cause.
AI-assisted: yes
🤖 Generated with Claude Code
Without known-shaders.bin, WarmWorker::open gives up, the persistent worker exits 0 with no output, and the one-shot retry of each suspect exits 0 too, so it counts as "made alone": every pipeline was dropped uncounted, two process starts each ("0 made ... 0 have no host pipeline, 0 ended their process"), and warm-done.txt was never written (#12). The warm now says which file is missing before starting workers. Co-Authored-By: Claude Opus 5.5 <[email protected]>