Skip to content

Example shader_material_bindless crashes #18124

@hukasu

Description

@hukasu

Bevy version

Since #17965 (5d7a605)

[Optional] Relevant system information

2025-03-03T02:14:32.889785Z  INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Linux (NixOS 24.11)", kernel: "6.6.69", cpu: "Intel(R) Core(TM) i7-14700KF", core_count: "20", memory: "31.2 GiB" }    
2025-03-03T02:14:33.028432Z  INFO bevy_render::renderer: AdapterInfo { name: "NVIDIA GeForce RTX 4060 Ti", vendor: 4318, device: 10243, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "565.77", backend: Vulkan }

What you did

cargo run --example shader_material_bindless

What went wrong

Crash

Additional information

May be linux exclusive as reported by https://thebevyflock.github.io/bevy-example-runner/

Full log

2025-03-03T02:14:32.889785Z  INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Linux (NixOS 24.11)", kernel: "6.6.69", cpu: "Intel(R) Core(TM) i7-14700KF", core_count: "20", memory: "31.2 GiB" }    
2025-03-03T02:14:32.969335Z ERROR wgpu_hal::gles::egl: EGL 'eglCreateSyncKHR' code 0x3004: EGL_BAD_ATTRIBUTE error: In eglCreateSyncKHR: EGL_SYNC_NATIVE_FENCE_FD_ANDROID specified valid fd butEGL_SYNC_STATUS is also being set
    
2025-03-03T02:14:33.028432Z  INFO bevy_render::renderer: AdapterInfo { name: "NVIDIA GeForce RTX 4060 Ti", vendor: 4318, device: 10243, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "565.77", backend: Vulkan }
2025-03-03T02:14:33.451764Z  INFO bevy_winit::system: Creating new window App (0v1)
2025-03-03T02:14:33.451828Z  INFO winit::platform_impl::linux::x11::window: Guessed window scale factor: 1
2025-03-03T02:14:33.575263Z ERROR bevy_pbr::material_bind_groups: Binding array wasn't present for buffer at index BindlessIndex(0)

thread 'Compute Task Pool (13)' panicked at /home/hukasu/Code/bevy_fork/crates/bevy_pbr/src/material_bind_groups.rs:765:13:
An allocation into an empty slab should always succeed
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Encountered a panic in system `bevy_render::render_asset::prepare_assets<bevy_pbr::material::PreparedMaterial<shader_material_bindless::BindlessMaterial>>`!

thread 'Compute Task Pool (13)' panicked at /home/hukasu/Code/bevy_fork/crates/bevy_pbr/src/material_bind_groups.rs:1214:18:
Bindings buffer must exist
Encountered a panic in system `bevy_pbr::material::prepare_material_bind_groups<shader_material_bindless::BindlessMaterial>`!

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-BugAn unexpected or incorrect behaviorP-CrashA sudden unexpected crash

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions