Skip to content

Bus error setting cursor.visible #11009

Open
@jeffs

Description

@jeffs

Bevy version

12.1

Relevant system information

macOS Sonoma 14.2

What you did

I tried to hide the cursor by setting window.cursor.visible = false. Here's the code:
https://github.com/jeffs/edu-bevy-spaceship-game/blob/hide-cursor/game-main/src/main.rs#L19-L24

What went wrong

The program crashed. It crashes reliably on Startup or PostStartup:

$ cargo run
    Finished dev [optimized + debuginfo] target(s) in 0.29s
     Running `target/debug/game-main`
2023-12-17T13:36:44.505720Z  INFO bevy_render::renderer: AdapterInfo { name: "Apple M2 Pro", vendor: 0, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Metal }
2023-12-17T13:36:44.646591Z  INFO bevy_winit::system: Creating new window "App" (0v0)
2023-12-17T13:36:44.674669Z  INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "MacOS 14.2 ", kernel: "23.2.0", cpu: "Apple M2 Pro", core_count: "12", memory: "32.0 GiB" }
[1]    14694 bus error  cargo run

Additional information

This seems to be rooted in winit. I also just filed:

The surrounding code is based on Zymartu's Bevy 0.12 Beginner Tutorial Series, but I don't think it's relevant.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-WindowingPlatform-agnostic interface layer to run your app inC-BugAn unexpected or incorrect behaviorO-MacOSSpecific to the MacOS (Apple) desktop operating systemS-Needs-InvestigationThis issue requires detective work to figure out what's going wrong

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions