Skip to content

WinitSettings::desktop_app() is broken #11320

@alice-i-cecile

Description

@alice-i-cecile

Bevy version

e6a324a

[Optional] Relevant system information

Windows

What you did

cargo run --example ui

What went wrong

The screen was black, and the example did not run.

Logs:

     Running `target\debug\examples\ui.exe`
2024-01-13T02:42:08.082255Z  INFO bevy_winit::system: Creating new window "App" (0v1)
2024-01-13T02:42:12.240658Z  INFO bevy_render::renderer: AdapterInfo { name: "NVIDIA GeForce RTX 3080", vendor: 4318, device: 8726, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "537.34", backend: Vulkan }
2024-01-13T02:42:12.658481Z  INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Windows 11 Pro", kernel: "22621", cpu: "", core_count: "24", memory: "31.8 GiB" }
2024-01-13T02:43:13.620288Z  WARN bevy_ecs::world: error[B0003]: Could not despawn entity 0v1 because it doesn't exist in this World.
2024-01-13T02:43:13.620545Z  WARN bevy_ecs::world: error[B0003]: Could not despawn entity 0v1 because it doesn't exist in this World.
2024-01-13T02:43:13.620679Z  WARN bevy_ecs::world: error[B0003]: Could not despawn entity 0v1 because it doesn't exist in this World.
2024-01-13T02:43:13.620941Z  INFO bevy_window::system: No windows are open, exiting
2024-01-13T02:43:13.621533Z  INFO bevy_winit::system: Closing window 0v1
2024-01-13T02:43:13.629905Z  WARN bevy_winit: Window 0v1 is missing `Window` component, skipping event ModifiersChanged(Modifiers { state: ModifiersState(0x0), pressed_mods: ModifiersKeys(0x0) })
2024-01-13T02:43:13.630288Z  WARN bevy_winit: Window 0v1 is missing `Window` component, skipping event Focused(false)
2024-01-13T02:43:13.633516Z  WARN bevy_winit: Window 0v1 is missing `Window` component, skipping event Destroyed

Additional information

First reported by Dj on Discord.

As suggested, removing the desktop_app setting fixed this: everything rendered correctly with no warnings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-WindowingPlatform-agnostic interface layer to run your app inC-BugAn unexpected or incorrect behavior

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions