Skip to content

Certain shader code reliably crashes whole macOS #11530

Open
@janhohenheim

Description

Bevy version

0.12.1

Relevant system information

  • rustc 1.77.0-nightly (7ffc697ce 2024-01-24)
  • macOS 13.6.3 (22G436)
`2024-01-25T18:30:25.412580Z  INFO bevy_render::renderer: AdapterInfo { name: "AMD Radeon Pro 560", vendor: 0, device: 0, device_type: DiscreteGpu, driver: "", driver_info: "", backend: Metal }`

I tested the same setup on two separate physical machines running the same macOS and rustc versions.
Both machines reliably crash.

What you did

What went wrong

The entire OS except the mouse movement freezes, forcing a reboot by holding down the power button

Additional information

The issue is exactly on https://github.com/janhohenheim/wind-waker-shader/blob/e9a7205f1f8617260239a69040b8181aad5be787/assets/shaders/extended_material.wgsl#L55. Uncomment the line // out.color = main_pass_post_lighting_processing(pbr_input, out.color); and the crash is fixed. This might be a wgpu and not a Bevy issue, but that's hard for me to tell as debugging a whole OS crash is rather painful.

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

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions