When using 2D and 3D cameras, moving the 2D UI camera to a nondefault render layer causes a crash on Wasm #19167
Labels
A-Rendering
Drawing game state to the screen
C-Bug
An unexpected or incorrect behavior
O-Web
Specific to web (WASM) builds
P-Crash
A sudden unexpected crash
Bevy version
0.16.0
Relevant system information
What you did
See #19166 for the exact setup.
What went wrong
On Wasm, when reloading the game multiple times and running around the spotlights, I sometimes get
The offending line is https://github.com/bevyengine/bevy/blob/v0.16.0/crates/bevy_render/src/render_phase/mod.rs#L779
Additional information
You can see this for yourself by cloning https://github.com/janhohenheim/foxtrot/tree/nondefault-ui-cam (note the branch), running
bevy run web
, and running a bit around.If it does not happen, refresh the page or reload the level by pressing
Escape
and try again.On my Firefox on Fedora, I get the crash in about 1:8 tries.
Note that the crash is not instant, but happens after walking around the light for about 10 seconds
The text was updated successfully, but these errors were encountered: