Skip to content

log diagnostics example crash on mac due to RenderDiagnosticsPlugin #21167

@foxzool

Description

@foxzool

Bevy version and features

example crash on

  • 0.17.0.rc
  • main branch

0.16 works fine

[Optional] Relevant system information

If you cannot get Bevy to build or run on your machine, please include:

  • the Rust version you're using (you can get this by running cargo --version)
> cargo --version
cargo 1.90.0 (840b83a10 2025-07-30)
> rustc --version
rustc 1.90.0 (1159e78c4 2025-09-14)
  • the operating system or browser used, including its version
    macOS Sequoia 15.6.1
❯ uname -a
Darwin ZoOL-MBP.local 24.6.0 Darwin Kernel Version 24.6.0: Mon Jul 14 11:30:40 PDT 2025; root:xnu-11417.140.69~1/RELEASE_ARM64_T6041 arm64

If your bug is rendering-related, copy the adapter info that appears when you run Bevy.

` AdapterInfo { name: "Apple M4 Pro", vendor: 0, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Metal }`

You should also consider testing the examples of our upstream dependencies to help isolate any setup-specific issue:

  • wgpu for rendering problems
  • winit for input and window management
  • gilrs for gamepad inputs

What you did

cargo run --package bevy --example log_diagnostics

What went wrong

example crashed

when removed RenderDiagnosticsPlugin , log example works again

Additional information

❯ cargo run --package bevy --example log_diagnostics
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.44s
     Running `target/debug/examples/log_diagnostics`
2025-09-23T02:13:58.730602Z  INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "macOS 15.6.1 Sequoia", kernel: "24.6.0", cpu: "Apple M4 Pro", core_count: "14", memory: "48.0 GiB" }
2025-09-23T02:13:58.798930Z  INFO bevy_render::renderer: AdapterInfo { name: "Apple M4 Pro", vendor: 0, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Metal }
2025-09-23T02:13:59.175018Z  INFO bevy_render::batching::gpu_preprocessing: GPU preprocessing is fully supported on this device.
2025-09-23T02:13:59.203812Z  INFO bevy_winit::system: Creating new window log_diagnostics (0v0)
2025-09-23T02:14:00.154466Z ERROR wgpu::backend::wgpu_core: Handling wgpu errors as fatal by default

thread '<unnamed>' panicked at /Users/zool/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/wgpu-26.0.1/src/backend/wgpu_core.rs:2391:18:
wgpu error: Validation Error

Caused by:
  In a CommandEncoder
    In a pass parameter
      Encoder is invalid


note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Encountered a panic in system `bevy_render::renderer::render_system`!
2025-09-23T02:14:00.287593Z ERROR winit::platform_impl::macos::event_handler: tried to run event handler, but no handler was set

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-BugAn unexpected or incorrect behaviorO-MacOSSpecific to the MacOS (Apple) desktop operating systemP-CrashA sudden unexpected crash

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions