Skip to content
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

Queries produced by iterators that are grouped by a relation causes crash #220

Closed
iiYese opened this issue Jan 7, 2025 · 1 comment
Closed

Comments

@iiYese
Copy link
Contributor

iiYese commented Jan 7, 2025

Version:

02f4c20

Minimum code to reproduce:

use flecs_ecs::prelude::*;

#[derive(Component)]
struct Foo;

fn main() {
    let world = World::new();
    world.system::<()>().each_iter(|iter, _, _| {
        bar(&iter.world());
    });
    world.progress();
}

fn bar(world: &World) {
    query!(world, (Foo, flecs::Wildcard))
        .group_by::<Foo>()
        .build()
        .each(|_| {})
}

Error received:

fatal: flecs.c: 40045: assert: !(world->flags & EcsWorldReadonly) INTERNAL_ERROR
@iiYese iiYese changed the title Storing queries produced by iterators that are grouped by a relation causes crash Queries produced by iterators that are grouped by a relation causes crash Jan 7, 2025
@Indra-db
Copy link
Owner

Indra-db commented Jan 9, 2025

closed, see: SanderMertens/flecs#1508

@Indra-db Indra-db closed this as completed Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants