WebGPU backend: "Cannot perform %TypedArray%.prototype.set on a detached ArrayBuffer" if buffer is destroyed #6202
Labels
area: api
Issues related to API surface
backend: webgpu
Issues with direct interface with WebGPU
type: bug
Something isn't working
Description
Map a buffer for reading (update after #7007: must map for writing and actually write, instead), then
destroy()
it before dropping itsBufferView
, and get this error:There are two problems here:
Why is it even trying to write back, when the mapping was for reading? That's not a bug, but it's certainly an inefficiency.Fixed by Don’t copy buffer data back to JS if unnecessary, in WebGPU backend. #7007Platform
wgpu
version: 22.1.0Browser version: Chrome 128.0.6613.113 (macOS)
The text was updated successfully, but these errors were encountered: