-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System order ambiguity time_system
and event_update_system
#14524
Comments
I don't mind resolving the ambiguity either way: do you have a preference? |
I do not have any preference. I suppose the |
Hmm yeah, I actually think that these two systems aren't actually ambiguous in meaningful ways, since the event system work won't touch time despite having world access. Yeah, marked as ambiguous with is the right approach here. For the actual crash, you need an ordering in bevy_mod_raycast :) |
Thanks. To avoid the crash, I changed from |
As this issue is marked with |
# Objective Resolve possible ambiguity detection panic between `time_system` and `event_update_system`. Fixes #14524 ## Solution Sets `.ambiguous_with(event_update_system)` on `time_system`. This is slightly new territory for me, so please treat with scepticism. ## Testing As described in the issue, added ``` .configure_schedules(ScheduleBuildSettings { ambiguity_detection: LogLevel::Error, ..default() }) ``` to the `time` example and ran it.
Bevy version
0.14.0 and git
main
branch most recent commit ca3d8e8What you did
My app crashes because of a system order ambiguity.
My app has the following code to detect ambiguity:
I reproduced this error/crash in bevy only by adding this code to the
time/time.rs
example.What went wrong
Additional information
My app does have this crash but with 2 pairs of systems, not just the one. This crash comes from a dependency of a dependency of my app:
bevy_mod_raycast
The
update_cursor_ray
system comes frombevy_mod_raycast
. But becauseevent_update_system
comes from Bevy and is common to the 2 pairs of systems, I do not know if I should report a similar issue there.The text was updated successfully, but these errors were encountered: