Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when exit_condition "DontExit" #49

Open
zwazel opened this issue Jul 17, 2023 · 1 comment
Open

Crash when exit_condition "DontExit" #49

zwazel opened this issue Jul 17, 2023 · 1 comment

Comments

@zwazel
Copy link

zwazel commented Jul 17, 2023

I need to run some systems before closing the game, so I set the exit_condition of the WindowPlugin to "ExitCondition::DontExit".

When closing the game i get following errors:

thread 'Compute Task Pool (11)' panicked at '`EguiContexts::ctx_mut` was called for an uninitialized context (primary window), make sure your system is run after [`EguiSet::InitContexts`] (or [`EguiStartupSet::InitContexts`] for startup systems)', 
stack backtrace: ....
Encountered a panic in system `bevy_console::console::console_ui`!
Encountered a panic in system `bevy_app::main_schedule::Main::run_main`!
error: process didn't exit successfully: (exit code: 101)
@makspll
Copy link
Collaborator

makspll commented Sep 4, 2024

I think this will be fixed on main now, could you try with that version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants