Skip to content

many_foxes + motion blur = crash on WebGL #18714

@greeble-dev

Description

@greeble-dev

Bevy version

0.16.0-dev (06f9e5e)

Relevant system information

WebGL/Chrome/Win10/Nvidia

What you did

Open the many_foxes example and add these components to the Camera3d entity:

MotionBlur {
    shutter_angle: 5.0,
    samples: 2,
    #[cfg(all(feature = "webgl2", target_arch = "wasm32", not(feature = "webgpu")))]
    _webgl2_padding: Default::default(),
},
#[cfg(all(feature = "webgl2", target_arch = "wasm32", not(feature = "webgpu")))]
Msaa::Off,

Then:

cargo run --example many_foxes --target wasm32-unknown-unknown

What went wrong

ERROR app: panicked at C:\Users\T\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\wgpu-24.0.3\src\backend\wgpu_core.rs:3273:26:
wgpu error: Validation Error

Caused by:
  In RenderPass::end
    In a set_bind_group command
      Dynamic binding offset index 2 with offset 391680 would overrun the buffer bound to BindGroup with 'skinned_motion_mesh_bind_group' label 1 -> binding 6. Buffer size is 16384 bytes, the binding binds bytes 0..16384, meaning the maximum the binding can be offset is 0 bytes

Additional information

PR: #18715

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-BugAn unexpected or incorrect behaviorS-Needs-TriageThis issue needs to be labelled

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions