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

assertion failed: data.is::<T>() on command buffer drop #3724

Closed
Wumpf opened this issue Apr 24, 2023 · 1 comment · Fixed by #3726
Closed

assertion failed: data.is::<T>() on command buffer drop #3724

Wumpf opened this issue Apr 24, 2023 · 1 comment · Fixed by #3726
Labels
type: bug Something isn't working

Comments

@Wumpf
Copy link
Member

Wumpf commented Apr 24, 2023

Description
Intermittent assertion when dropping a command buffer when using webgl (not webgpu as in otherwise related #3710)
Haven't isolated yet which circumstances are necessary to trigger this:

panicked at 'assertion failed: data.is::<T>()', /Users/andreas/.cargo/registry/src/github.com-1ecc6299db9ec823/wgpu-0.16.0/src/context.rs:1045:5

Stack:

getImports/imports.wbg.__wbg_new_abda76e883ba8a5f/<@http://127.0.0.1:9090/re_viewer.js:422:21
logError@http://127.0.0.1:9090/re_viewer.js:241:18
getImports/imports.wbg.__wbg_new_abda76e883ba8a5f@http://127.0.0.1:9090/re_viewer.js:421:66
console_error_panic_hook::hook::h7085f0f35ae12a82@http://127.0.0.1:9090/re_viewer.js line 383 > WebAssembly.instantiate:wasm-function[5590]:0x772074
core::ops::function::Fn::call::h4a4c198ad3cbb4af@http://127.0.0.1:9090/re_viewer.js line 383 > WebAssembly.instantiate:wasm-function[20779]:0xa34346
eframe::web::backend::start_web::{{closure}}::{{closure}}::h2be874fa9b88f1af@http://127.0.0.1:9090/re_viewer.js line 383 > WebAssembly.instantiate:wasm-function[11730]:0x98572b
std::panicking::rust_panic_with_hook::hbafe3e603d331223@http://127.0.0.1:9090/re_viewer.js line 383 > WebAssembly.instantiate:wasm-function[11784]:0x98856d
std::panicking::begin_panic_handler::{{closure}}::h8ab6ee68d5b4c391@http://127.0.0.1:9090/re_viewer.js line 383 > WebAssembly.instantiate:wasm-function[12896]:0x9bd960
std::sys_common::backtrace::__rust_end_short_backtrace::h008f69666d134159@http://127.0.0.1:9090/re_viewer.js line 383 > WebAssembly.instantiate:wasm-function[16919]:0xa1fe05
rust_begin_unwind@http://127.0.0.1:9090/re_viewer.js line 383 > WebAssembly.instantiate:wasm-function[15130]:0xa028b6
core::panicking::panic_fmt::h1d17fc068f528130@http://127.0.0.1:9090/re_viewer.js line 383 > WebAssembly.instantiate:wasm-function[16212]:0xa166e0
core::panicking::panic::h27b5eefa3e4ff738@http://127.0.0.1:9090/re_viewer.js line 383 > WebAssembly.instantiate:wasm-function[15333]:0xa06eb8
<T as wgpu::context::DynContext>::command_buffer_drop::ha1744d4f4947ce60@http://127.0.0.1:9090/re_viewer.js line 383 > WebAssembly.instantiate:wasm-function[14681]:0x9f7a2b
<wgpu::CommandBuffer as core::ops::drop::Drop>::drop::ha2e55b23d296c66c@http://127.0.0.1:9090/re_viewer.js line 383 > WebAssembly.instantiate:wasm-function[12229]:0x99f2a2

Platform
Firefox, webgl backend

@Wumpf Wumpf changed the title assertion failed: data.is::<T>() on command buffer drop on webgl assertion failed: data.is::<T>() on command buffer drop Apr 24, 2023
@Wumpf
Copy link
Member Author

Wumpf commented Apr 24, 2023

Minimal repro for all platforms!

                let encoder =
                    device.create_command_encoder(&wgpu::CommandEncoderDescriptor { label: None });
                drop(encoder.finish());

I have a fix ready. PR incoming

@teoxoy teoxoy added the type: bug Something isn't working label Apr 24, 2023
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
None yet
Development

Successfully merging a pull request may close this issue.

2 participants