Skip to content

return_after_run example is broken #6311

@rparrett

Description

@rparrett

There are multiple issues with this example.

  • The ClearColor which is meant to visually distinguish the first app from the next is never shown because there are no cameras. This has been broken between Bevy 0.7 and Bevy 0.8 with the Camera Driven Rendering stuff.

  • Since the recent winit upgrade, we get this error after the first window is closed.

thread 'main' panicked at 'Creating EventLoop multiple times is not supported.', /Users/robparrett/.cargo/registry/src/github.1485827954.workers.dev-1ecc6299db9ec823/winit-0.27.4/src/event_loop.rs:106:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
  • Prior to that, I think this was still broken on at least MacOS with a different error after closing the first window.
thread 'main' panicked at 'The panic info must exist here. This failure indicates a developer error.', /Users/robparrett/.cargo/registry/src/github.1485827954.workers.dev-1ecc6299db9ec823/winit-0.26.1/src/platform_impl/macos/app_state.rs:375:14
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /Users/robparrett/.cargo/registry/src/github.1485827954.workers.dev-1ecc6299db9ec823/winit-0.26.1/src/platform_impl/macos/event_loop.rs:237:55

Additional information

AdapterInfo { name: "Apple M1 Max", vendor: 0, device: 0, device_type: DiscreteGpu, backend: Metal }

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-WindowingPlatform-agnostic interface layer to run your app inC-BugAn unexpected or incorrect behaviorC-ExamplesAn addition or correction to our examples

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions