fix(gpu): a panicking pipeline build is refused and its worker carries on #249
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by mutlusinan on 2026-11-27T20:08:36Z.
Problem
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.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by mutlusinan on 2026-11-27T20:21:28Z.
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.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 1tsethan on 2026-11-27T23:00:20Z.
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.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by cloph-dsp on 2026-11-28T01:07:10Z.
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).
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-28T02:49:31Z.
Merged into main (
8fc2254) and shipped in v2026.11.27.10. The commit keeps you as its author, so it counts toward the contributors list. GitHub shows this as closed rather than merged only because the commits were applied on top of the newest main (new commit IDs). Thank you!Pull request closed