Console Error When Running WASM #6302
-
Hi there! I'm new to rust and to bevy so forgive me if this is a bit of a silly question. I'm trying to get my game to run in the browser, I have followed the instructions on the bevy cheatbook https://bevy-cheatbook.github.io/platforms/wasm.html But when I load up the wasm file using the command
I get the following error in the console
I'm a bit lost in how to debug it all...just hoping for some direction 😄 any help is greatly appreciated! Cargo.toml file
wasm-bingen version
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
So, I'd go look in the wgpu code, and figure out what the line is. This is the tag for 0.13.2, so we'll start here: https://github.com/gfx-rs/wgpu/releases/tag/v0.13.2 Navigating, we find this file: https://github.com/gfx-rs/wgpu/blob/v0.13.2/wgpu-hal/src/gles/queue.rs So the panic is happening on this line: https://github.com/gfx-rs/wgpu/blob/9f82504d8a3b6e234599b19cc35c299bcec8b138/wgpu-hal/src/gles/queue.rs#L358 Looks like... some sort of extraction process? And it's working with cubemaps? It's probably an off-by-one error. This code was working fine on desktop, so it's almost certainly a bug. Report it upstream to |
Beta Was this translation helpful? Give feedback.
So, I'd go look in the wgpu code, and figure out what the line is. This is the tag for 0.13.2, so we'll start here: https://github.com/gfx-rs/wgpu/releases/tag/v0.13.2
Navigating, we find this file: https://github.com/gfx-rs/wgpu/blob/v0.13.2/wgpu-hal/src/gles/queue.rs
So the panic is happening on this line: https://github.com/gfx-rs/wgpu/blob/9f82504d8a3b6e234599b19cc35c299bcec8b138/wgpu-hal/src/gles/queue.rs#L358
Looks like... some sort of extraction process? And it's working with cubemaps? It's probably an off-by-one error.
This code was working fine on desktop, so it's almost certainly a bug. Report it upstream to
wgpu
, and work with them to find a minimal reproduction :)