fix(gpu): a panicking pipeline build is refused and its worker carries on #249
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!249
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-249"
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?
@mutlusinan on GitHub · 2026-11-27 20:08 UTC · original
mutlusinan:fix/pipeline-panic→main· +37 −1 · 1 files · 1 commits · openProblem
A panic inside a pipeline build (
HostPipeline::new, e.g. a translator gap reached throughmake) unwound out ofPending::make, leavingmade: OnceLockempty for ever:Fix
makenow delegates tomake_with, which runs the build undercatch_unwind. A panic is logged and recorded asNone— the same state as a failed translation — so the queue entry completes and its waiters wake. A queued pipeline that already failed is never rebuilt (theOnceLockis set), so the test's second call with a panicking closure also observes a completed entry.Verification
cargo check -p victory-gpu --all-targets --target x86_64-pc-windows-msvc --locked— clean.a_panicking_pipeline_is_refused_and_the_worker_continues(not run here:victory-gpuneeds Windows to build).Ported from fxceless/victory-fork
46da5eec(pull request #1353), GPL-3.0-or-later.@mutlusinan on GitHub · 2026-11-27 20:21 UTC · original
Risk assessment (porting review)
host pipeline build panicked) and recorded as "no host pipeline", so the entry completes and waiters wake. The visible effect of a translator bug changes from "stuck queue and a dead worker thread" to "missing pipeline" (a rendering hole).catch_unwindonly applies withpanic = "unwind"; the workspace profiles leave the default, so it does apply. Apanic = "abort"build would make the guard inert.AssertUnwindSafeis deliberate: a panicking build may leave shared state inconsistent, but losing the worker and never completing the entry is worse.mainate69e39c.@1tsethan on GitHub · 2026-11-27 23:00 UTC · original
Independent Windows validation of PR #249.
Tested commit:
52331a3b95ab28d21820cc187bfe8e8842062090.cargo test --locked -p victory-gpu a_panicking_pipeline -- --nocapture --test-threads=1Exit: 0.
Independent verification with OpenAI Codex assistance. Windows 11 Pro build 26200; Rust 1.98.1 MSVC; Windows SDK libraries from Microsoft.Windows.SDK.CPP.x64 10.0.28000.2957. Test harness used an RTX 3070 Ti / AMD integrated-GPU host; adapter identity was not captured for every test. These are focused checks on the stated PR commit, not gameplay, FPS, or a merged-main integration result.
@cloph-dsp on GitHub · 2026-11-28 01:07 UTC · original
Independent local verification (Windows, Rust 1.100.0/MSVC, no game data):
52331a3b95ab28d21820cc187bfe8e8842062090, base (PR parent)0cef07e9d766df48f0e95f13ce3bbbe2290fe9d3.cargo test --locked -p victory-gpu --lib -- pipeline::make::tests::a_panicking_pipeline_is_refused_and_the_worker_continues --exact --test-threads=1 --quiet→ 1 passed, 0 failed, 455 filtered, exit 0.git grep -Ffor the test name on the PR parent returned no hits (test is new on this PR);git diff --check 0cef07e9 HEADclean (1 file, +37/-1).CARGO_TARGET_DIRandCARGO_BUILD_JOBS=2.AI-assisted (Hy4 flash).
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.