Skip to content

binned panics #24990

Description

@ChristopherBiscardi

current main: 3253ed4

is panicking on

debug_assert_eq!(
self.bin_metadata_buffer.values()[bin_metadata_index as usize].instance_count as usize,
bin.entity_to_binned_mesh_instance_index.len()
);
in a few examples, such as world_serialization and custom_skinned_mesh.

What you did

cargo run --example custom_skinned_mesh --features debug
cargo run --example world_serialization --features debug

What went wrong

panic where left is 1 greater than right. world_serialization is left:2, right 1. custom_skinned_mesh is:

2026-07-14T18:02:11.696455Z  INFO bevy_winit::system: Creating new window custom_skinned_mesh (67v0)

thread 'Compute Task Pool (5)' (21234861) panicked at crates/bevy_render/src/render_phase/mod.rs:308:9:
assertion `left == right` failed
  left: 11
 right: 10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

thread 'Compute Task Pool (5)' (21234861) panicked at crates/bevy_ecs/src/error/handler.rs:141:1:
Encountered an error in system `bevy_pbr::material::queue_material_meshes`: System panicked

Encountered a panic in system `bevy_pbr::material::queue_material_meshes`!

thread 'Render thread' (21234967) panicked at crates/bevy_ecs/src/error/handler.rs:141:1:
Encountered an error in system `bevy_render::run_render_schedule`: Exclusive system panicked

Encountered a panic in system `bevy_render::run_render_schedule`!

Additional information

first encountered on the #24841 example runs after merging main

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-BugAn unexpected or incorrect behaviorS-Needs-InvestigationThis issue requires detective work to figure out what's going wrong

    Type

    No type

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions