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

fix(core): handle HAL errors from query set creation #6505

Conversation

ErichDonGubler
Copy link
Member

@ErichDonGubler ErichDonGubler commented Nov 8, 2024

Connections

Description

When query set creation fails, return an internal error and lose the device, rather than panic.

Testing

-

Checklist

  • Run cargo fmt.
  • Run taplo format.
  • Run cargo clippy. If applicable, add:
    • --target wasm32-unknown-unknown
    • --target wasm32-unknown-emscripten
  • Run cargo xtask test to run tests.
  • Add change to CHANGELOG.md. See simple instructions inside file.

@ErichDonGubler ErichDonGubler added the type: bug Something isn't working label Nov 8, 2024
@ErichDonGubler ErichDonGubler self-assigned this Nov 8, 2024
@ErichDonGubler ErichDonGubler requested a review from a team as a code owner November 8, 2024 19:40
@ErichDonGubler ErichDonGubler force-pushed the handle-query-set-creation-hal-errs branch from 4831b87 to 3dfcd1c Compare November 8, 2024 19:42
CHANGELOG.md Outdated Show resolved Hide resolved
@Wumpf
Copy link
Member

Wumpf commented Nov 9, 2024

even better would be ofc if we also handle all sort of things that could lead to that error. But "not crashing" is obviously a massive improvement

Co-authored-by: Andreas Reich <r_andreas2@web.de>
@ErichDonGubler ErichDonGubler enabled auto-merge (squash) November 9, 2024 12:12
@ErichDonGubler ErichDonGubler merged commit 01973a9 into gfx-rs:trunk Nov 9, 2024
27 checks passed
@ErichDonGubler ErichDonGubler deleted the handle-query-set-creation-hal-errs branch November 9, 2024 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants