Skip to content

[webgpu] fix device loss callback to be immediately drop - #7992

Merged
cwfitzgerald merged 1 commit into
gfx-rs:trunkfrom
uael:uael/wegbpu_loss
Jul 23, 2025
Merged

[webgpu] fix device loss callback to be immediately drop#7992
cwfitzgerald merged 1 commit into
gfx-rs:trunkfrom
uael:uael/wegbpu_loss

Conversation

@uael

@uael uael commented Jul 23, 2025

Copy link
Copy Markdown
Contributor

Description

In the WebGPU backend, the closure passed to Device::set_device_lost_callback was immediately dropped leading to crash when loss happen.

Testing

Manually.

Checklist

  • Run cargo fmt.
  • Run taplo format.
  • Run cargo clippy --tests. If applicable, add:
    • --target wasm32-unknown-unknown
  • Run cargo xtask test to run tests.
  • If this contains user-facing changes, add a CHANGELOG.md entry.

@uael
uael requested a review from a team as a code owner July 23, 2025 07:42
@cwfitzgerald
cwfitzgerald enabled auto-merge (squash) July 23, 2025 15:28
@cwfitzgerald cwfitzgerald self-assigned this Jul 23, 2025
@cwfitzgerald
cwfitzgerald merged commit ffd5969 into gfx-rs:trunk Jul 23, 2025
68 of 69 checks passed
uael added a commit to uael/wgpu that referenced this pull request Aug 1, 2025
sharmajai pushed a commit to sharmajai/wgpu that referenced this pull request Oct 12, 2025
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