-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
A-ECSEntities, components, systems, and eventsEntities, components, systems, and eventsC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorP-CrashA sudden unexpected crashA sudden unexpected crashP-HighThis is particularly urgent, and deserves immediate attentionThis is particularly urgent, and deserves immediate attention
Description
Bevy version
bevy v0.5.0 (https://github.com/bevyengine/bevy.git?branch=main#05209475)
Operating system & version
Ubuntu 18.04
What you did
use bevy::prelude::*;
fn startup(mut cmd: Commands) {
let v: Vec<(String,)> = Vec::new();
cmd.spawn_batch(v);
}
#[test]
fn test_segv() {
let mut builder = App::build();
builder.add_startup_system(startup.system());
let mut app = builder.app;
app.update();
} // <-- segfault here
What actually happened
process didn't exit successfully: `target/debug/examples/segv-ec3698e577c470a4 test_segv --exact --nocapture` (signal: 11, SIGSEGV: invalid memory reference)
Additional information
Discussion in discord starts here:
https://discord.com/channels/691052431525675048/742884593551802431/849604240765878302
Metadata
Metadata
Assignees
Labels
A-ECSEntities, components, systems, and eventsEntities, components, systems, and eventsC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorP-CrashA sudden unexpected crashA sudden unexpected crashP-HighThis is particularly urgent, and deserves immediate attentionThis is particularly urgent, and deserves immediate attention