-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
A-ECSEntities, components, systems, and eventsEntities, components, systems, and eventsC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behavior
Milestone
Description
Bevy version
0.9.0
What you did
While running a parallel query, I accidentally passed an invalid value of 0 as batch_size.
What went wrong
This caused my application to freeze forever and apparently consume a lot of resources (I even got a blue screen of death, but I'm not sure if it was just a coincidence since it happened only once. While my application was frozen, the application was reported as using 100% CPU on the task manager.
I was expecting a panic on a clearly wrong batch_size passed as input.
Additional information
You can easily reproduce this with this application:
use bevy::prelude::{App, Transform};
fn main() {
let mut app = App::new();
app.world.spawn(Transform::default());
app.update();
let mut query = app.world.query::<(&Transform,)>();
query.par_for_each(&app.world, 0, |t| {
})
}
Metadata
Metadata
Assignees
Labels
A-ECSEntities, components, systems, and eventsEntities, components, systems, and eventsC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behavior