gpu: rescue dead pipeline workers on a 4 GiB stack and fingerprint refused pipelines #400
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!400
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@Kikoarl on GitHub · 2026-11-27 21:55 UTC · original
Kikoarl:fix/pipeline-worker-rescue→main· +574 −43 · 2 files · 1 commits · openSummary
Ports dead pipeline-worker rescue on a 4 GiB stack,
OnceLock-free completion state, and fingerprintedrefused-pipelines.txtfromHasusmogus/cool_fox(#39,5e7faabe) andDoubleGhosty/cool_fox(42b95b99) (GPL-3.0-or-later), rebased ontomain(df2daaf).Relation to PR #249
PR #249 catches Rust panics inside a pipeline build using
catch_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:Pending'sOnceLockwith explicit completion state so stalled/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) againstmain(df2daaf):git diff --check main..HEAD— cleancargo test -p xtask --locked— 6 passed, 0 failed (asset policy: 287 files ok)cargo clippy -p victory-gpu --all-targets --locked— exit 0, 0 warnings in changed files (mainhas pre-existing clippy warnings in untouched files)cargo test -p victory-gpu --locked pipeline::— 27 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.