A panic while a pipeline is made refuses it, the worker goes on #219
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from Belobug/VIctory-Belobug-AMD. Originally posted by Ingenioeren on 2026-11-26T02:13:15Z.
What
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.
Imported from Belobug/VIctory-Belobug-AMD. Originally posted by ySKELLETONX on 2026-11-26T11:26:12Z.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.