bevy-console icon indicating copy to clipboard operation
bevy-console copied to clipboard

Crash when exit_condition "DontExit"

Open zwazel opened this issue 2 years ago • 1 comments
trafficstars

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)

zwazel avatar Jul 17 '23 12:07 zwazel