-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Labels
A-AppBevy apps and pluginsBevy apps and pluginsA-WindowingPlatform-agnostic interface layer to run your app inPlatform-agnostic interface layer to run your app inC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behavior
Milestone
Description
Bevy version
Present in 0.14.0-rc.2 and main (651f3d0)
Relevant system information
Only tried on MacOS, not sure about other platforms.
What you did
use bevy::{app::AppExit, prelude::*};
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_systems(Startup, startup)
.run();
}
fn startup(mut app_exit: EventWriter<AppExit>) {
app_exit.send(AppExit::Success);
}
What went wrong
The app hangs, unresponsive, and never closes.
Additional information
This also happens if in an Update system that runs on the first frame.
It was working correctly up until 13151. After this PR, the window still closes but with some error logs.
13236 fixed the error logs, but introduced this particular issue.
This use case probably seems crazy but I do rely on it for some example code.
Metadata
Metadata
Assignees
Labels
A-AppBevy apps and pluginsBevy apps and pluginsA-WindowingPlatform-agnostic interface layer to run your app inPlatform-agnostic interface layer to run your app inC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behavior