Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

System order ambiguity update_cursor_ray and event_update_system #120

@thmxv

Description

@thmxv

Following our chat in issue #114 I added this code into my app:

fn main() {
    let mut app = App::new();
    app.configure_schedules(ScheduleBuildSettings {
        ambiguity_detection: LogLevel::Warn,
        ..default()
    });
    ...
}

to detect system ambiguities. It did not help at the time (I am still looking for my mistake causing #114, but thanks a lot for you help) however, after migrating to Bevy 0.14, this now create the following warning:

2024-07-30T17:07:34.811700Z  WARN bevy_ecs::schedule::schedule: Schedule First has ambiguities.
2 pairs of systems with conflicting data access have indeterminate execution order. Consider adding `before`, `after`, or `ambiguous_with` relationships between these:
 -- update_cursor_ray and event_update_system (in set EventUpdates)
    conflict on: bevy_ecs::world::World
 -- time_system (in set TimeSystem) and event_update_system (in set EventUpdates)
    conflict on: bevy_ecs::world::World

The second pair of systems causing an ambiguity is internal to Bevy and reported in bevyengine/bevy#14524. But the first pair, regarding update_cursor_ray and event_update_system is internal to this mod.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions