Skip to content

binned panics #24990

Closed
Closed

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

Activity

  1. added
    C-BugAn unexpected or incorrect behavior
    S-Needs-TriageThis issue needs to be labelled
    A-RenderingDrawing game state to the screen
    S-Needs-InvestigationThis issue requires detective work to figure out what's going wrong
    and removed
    S-Needs-TriageThis issue needs to be labelled
    on Jul 14, 2026
  2. moved this to Needs SME Triage in Renderingon Jul 14, 2026
  3. ChristopherBiscardi commented on Jul 14, 2026

    @ChristopherBiscardi
    MemberAuthor

    Bisected to #23662

  4. alice-i-cecile commented on Jul 14, 2026

    @alice-i-cecile
    Member
  5. pcwalton commented on Jul 14, 2026

    @pcwalton
    Contributor

    Does #24984 fix it?

  6. ChristopherBiscardi commented on Jul 14, 2026

    @ChristopherBiscardi
    MemberAuthor

    yes it does

  7. moved this from Needs SME Triage to Done in Renderingon Jul 16, 2026
  8. added a commit that references this issue on Jul 16, 2026
    244e0e6
  9. added a commit that references this issue on Sep 8, 2026
    c93e900
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions