many_sprites
and many_animated_sprites
crashing on initialization
#8782
Labels
A-Diagnostics
Logging, crash handling, error reporting and performance analysis
C-Bug
An unexpected or incorrect behavior
C-Examples
An addition or correction to our examples
Bevy version
Bevy Git (d6d25d8)
What you did
cargo run --example many_sprite
orcargo run --example many_animated_sprites
What went wrong
The
many_sprites
ormany_animated_sprites
runningThey crashed immediately on startup
Additional information
Logs for many_sprites:
Logs for many_animated_sprites:
Theory
Seems like this is caused by PR #8677 which modified the
FrameTimeDiagnosticsPlugin
to callregister_diagnostic
.But
register_diagnostic
must only be called afterDiagnosticsPlugin
has been added.In these two examples, the
FrameTimeDiagnosticsPlugin
is added beforeDefaultPlugins
, which addsDiagnosticsPlugin
,thus causing a crash.
Probably should have this information in
FrameTimeDiagnosticsPlugin
's docs.The text was updated successfully, but these errors were encountered: