Bevy version
0.5.0
Operating system & version
wasm
What you did
Create a system like so:
struct Event;
fn system(mut events: EventWriter<Event>) {}
Set up the app, but do not register the event
App::build()
.with_system(system.system())
.run();
What you expected to happen
The application is misconfigured so I expect this to panic, and ideally the message for the panic would explain that a system attempted to fetch an EventWriter for an unregistered event type.
What actually happened
The application panics with the following:
panicked at 'assertion failed: `(left == right)`
left: `true`,
right: `false`: cannot recursively acquire mutex',
and upon further examination of the stack trace it turns out to be the failure described by #1924
Bevy version
0.5.0
Operating system & version
wasm
What you did
Create a system like so:
Set up the app, but do not register the event
What you expected to happen
The application is misconfigured so I expect this to panic, and ideally the message for the panic would explain that a system attempted to fetch an
EventWriterfor an unregistered event type.What actually happened
The application panics with the following:
and upon further examination of the stack trace it turns out to be the failure described by #1924