gpu: rescue dead pipeline workers on a 4 GiB stack and fingerprint refused pipelines #400
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/400"
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Kikoarl on 2026-11-27T21:55:10Z.
Summary
Ports dead pipeline-worker rescue on a 4 GiB stack, out-of-
OnceLockcompletion signaling (building/failed/DONE), and fingerprintedrefused-pipelines.txtfromHasusmogus/cool_fox(#39,5e7faabe) andDoubleGhosty/cool_fox(42b95b99) (GPL-3.0-or-later), rebased ontomain(63b902f).Relation to PR #249
PR #249 (merged into
main) catches Rust panics inside a pipeline build usingcatch_unwindinmake.rs. However, hard worker thread terminations (such as stack overflows during shader translation or NVIDIA driver compilation) unwind or abort pastcatch_unwind, leaving callers stuck waiting on an emptyOnceLockand shrinking the worker pool permanently.Changes
crates/victory-gpu/src/pipeline/make.rs:OnceLock::get_or_init(usingbuilding/failedflags andDONEcondvar signaling aroundcatch_unwind+self.made.set(...)) so stalled or terminated builds release waiters instead of staying unpopulated forever.reap()) during 1 s waits, respawns replacement workers, and rescues affected pipelines once on a dedicated 4 GiB stack (VICTORY_PIPELINE_RESCUE=0disables rescue).crates/victory-gpu/src/pipeline/library.rs:refused-pipelines.txtscoped by translator/driver fingerprint so builds are retried automatically after a translator or driver change (and manually withVICTORY_REFUSED_RETRY=1).Verification
Verified on Windows (
x86_64-pc-windows-msvc) after rebasing ontomain(63b902f):git diff --check origin/main..HEAD— cleancargo test -p xtask --locked— 6 passed, 0 failed (repository_passes_policyok)cargo clippy -p victory-gpu --all-targets --locked— exit 0, 0 warnings in changed files (mainhas pre-existing clippy warnings in untouchedshadow.rs:1708)cargo test -p victory-gpu --locked pipeline::— 28 passed, 0 failedView 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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.