Skip to content

view bindgroup layout changes can cause crash #24084

@DGriffin91

Description

@DGriffin91

Bevy main

Introduced by #23982

Tested on windows/vulkan with 4070ti.

SSAO example, switching SSAO off after startup:

Caused by:
  In a CommandEncoder
    In a draw command, kind: MultiDrawIndirectCount
      The BindGroupLayout with 'mesh_view_layout_,depth_prepass,normal_prepass,motion_vector_prepass,screen_space_ambient_occlusion,screen_space_transmission' label of current set BindGroup with 'mesh_view_bind_group' label at index 0 is not compatible with the corresponding BindGroupLayout with 'mesh_view_layout_,depth_prepass,normal_prepass,motion_vector_prepass,screen_space_transmission' label of RenderPipeline with 'pbr_opaque_mesh_pipeline' label
        Assigned entry with binding 17 not found in expected bind group layout

Bistro large scene example:

Caused by:
  In Queue::submit
    In a draw command, kind: MultiDrawIndirectCount
      The BindGroupLayout with 'mesh_view_layout_,depth_prepass,normal_prepass,motion_vector_prepass,environment_map,screen_space_ambient_occlusion,screen_space_transmission,contact_shadows' label of current set BindGroup with 'mesh_view_bind_group' label at index 0 is not compatible with the corresponding BindGroupLayout with 'mesh_view_layout_,depth_prepass,normal_prepass,motion_vector_prepass,environment_map,screen_space_ambient_occlusion,contact_shadows' label of RenderPipeline with 'pbr_opaque_mesh_pipeline' label
        Assigned entry with binding 25 not found in expected bind group layout
        Assigned entry with binding 26 not found in expected bind group layout

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-BugAn unexpected or incorrect behaviorP-CrashA sudden unexpected crashP-RegressionFunctionality that used to work but no longer does. Add a test for this!S-Needs-ReviewNeeds reviewer attention (from anyone!) to move forward

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions