RichoDemus / bevy-console

MIT License
285 stars 63 forks source link

Crash when exit_condition "DontExit" #49

Open zwazel opened 1 year ago

zwazel commented 1 year ago

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 commented 1 month ago

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