Skip to content

Fix crash on meshes with morphs + skins + motion blur when not using storage buffers#20076

Merged
alice-i-cecile merged 1 commit intobevyengine:mainfrom
greeble-dev:morphs-and-skins-and-uniforms
Jul 11, 2025
Merged

Fix crash on meshes with morphs + skins + motion blur when not using storage buffers#20076
alice-i-cecile merged 1 commit intobevyengine:mainfrom
greeble-dev:morphs-and-skins-and-uniforms

Conversation

@greeble-dev
Copy link
Copy Markdown
Contributor

Objective

Fixes #20058

Solution

Fix the dynamic_offsets array being too small if a mesh has morphs and skins and motion blur, and the renderer isn't using storage buffers (i.e. WebGL2). The bug was introduced in #13572.

Testing

  • Minimal repro: https://github.com/M4tsuri/bevy_reproduce.
  • Also examples animated_mesh, morph_targets, test_invalid_skinned_meshes.
  • As far as I can tell Bevy doesn't have any examples or tests that can repro the problem combination.

Tested with WebGL and native, Win10/Chrome/Nvidia.

@greeble-dev greeble-dev added C-Bug An unexpected or incorrect behavior A-Rendering Drawing game state to the screen D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Jul 10, 2025
@greeble-dev greeble-dev added the P-Crash A sudden unexpected crash label Jul 10, 2025
@alice-i-cecile alice-i-cecile added this to the 0.17 milestone Jul 10, 2025
@alice-i-cecile alice-i-cecile added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it A-Animation Make things move and change over time and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Jul 11, 2025
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Jul 11, 2025
Merged via the queue into bevyengine:main with commit f868013 Jul 11, 2025
47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Animation Make things move and change over time A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior D-Straightforward Simple bug fixes and API improvements, docs, test and examples P-Crash A sudden unexpected crash S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

App crashes when loading a GLTF with morph targets while enabling MotionVectorPrepass for camera

3 participants