Queue::submit
should not panic on validation errors
#6317
Labels
area: correctness
We're behaving incorrectly
Queue::submit
should not panic on validation errors
#6317
Description
When an invalid
CommandBuffer
is fed intoQueue::submit
ontrunk
(but, notably, not on 22.1.0), it panics on errors after they are forwarded to our fatal error machinery. This is wrong; we should be handling errors non-fatally, i.e., via the error sink set up byDevice::on_uncaptured_error
or the default panic handler.Repro steps
A Cargo project with the following contents reproduces it for me:
Cargo.toml
:src/main.rs
Expected vs observed behavior
The error scope in the
device.push_error_scope
from repro steps should absorb the validation errors emitted by theRenderPass::end
and all subsequent operations in which the invalidation propagates, includingQueue::submit
.Queue::submit
, however, panics instead. Observe that the above example produces the following output:Extra materials
Discovered in #5714 (comment) as a blocker for that PR.
Platform
-
The text was updated successfully, but these errors were encountered: