A panic while a pipeline is made refuses it, the worker goes on #219
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/Belobug--VIctory-Belobug-AMD!219
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-219"
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?
@Ingenioeren on GitHub · 2026-11-26 02:13 UTC · original
Ingenioeren:fix/217-pipeline-worker-panic→main· +28 −1 · 1 files · 1 commits · openWhat
Catch Rust panics during host pipeline creation. Log the shaders and any string panic message, record a refusal, and wake waiters so the worker can continue.
Part of #217 (the second item; the per-pipeline waited-time cap is a behaviour change left out).
The same fix is proposed upstream as Marvisak/VIctory#2980.
Why
A panic killed the worker and left the pipeline marked as being made. Later frames binding it could spend the full wait budget.
How tested
cargo test --locked --offline -p victory-gpu pipeline::make::tests::a_panic_refuses_the_pipeline -- --exact— failed without the guard withpipeline creation panicked(1 failed, exit 101). With the guard, 1 passed.cargo test --locked --offline -p victory-gpu— 114 passed, 0 failed, 4 ignored. Freshorigin/mainhad 113 passed, 0 failed, 4 ignored.cargo test --locked --offline -p victory-gpu --features diagnostics pipeline::make::tests::a_panic_refuses_the_pipeline -- --exact— 1 passed.cargo clippy --locked --offline -p victory-gpu --all-targets— passed with warnings outside the changed file.cargo fmt --check -p victory-gpu— exit 1 for existing formatting differences. No differences in the changed hunks.cargo run --locked --offline -p xtask -- policy --staged— passed for the one staged file.Not tested
No hardware run of a real panicking pipeline. No game run.
AI assistance: prepared with OpenAI Codex under Claude Code's direction, reviewed by Ingenioeren.
@ySKELLETONX on GitHub · 2026-11-26 11:26 UTC · original
Tested on RX 7600 XT, merged together with #229 on
main4f62c2a: allvictory-gpulib tests pass, includinga_panic_refuses_the_pipeline.[profile.release]doesn't setpanic = "abort", so thecatch_unwindtakes effect in release builds too. LGTM.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.