Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Propagate errors when openning/closing a command encoder #4999

Merged
merged 1 commit into from
Jan 6, 2024

Conversation

nical
Copy link
Contributor

@nical nical commented Jan 5, 2024

Connections

Downstream bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1873047

Description

There are a few unwraps in CommandEncoder (with TODO comment about dealing with the errors), which Firefox's fuzzer is too good at hitting. This PR just does the plumbing to propagate the errors instead of packing.

Checklist

  • Run cargo fmt.
  • Run cargo clippy.
  • Run cargo xtask test to run tests.

@nical nical requested a review from a team as a code owner January 5, 2024 15:20
Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

less unwraps <3 <3
might be worth a note in the changelog, albeit from the looks of it it's kind hard to pinpoint concrete crashes

@nical
Copy link
Contributor Author

nical commented Jan 6, 2024

Device loss is what our CI seemed to be hitting

@nical nical merged commit 8358868 into gfx-rs:trunk Jan 6, 2024
26 checks passed
@nical nical deleted the encoder-err branch January 6, 2024 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants