SanderMertens / flecs

A fast entity component system (ECS) for C & C++

Home Page:https://www.flecs.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Segfault happens during world teardown after update

BHolman-LBI opened this issue · comments

Describe the bug
Segfault happens when tearing down game world after updating form
707755c
to
aa3d0df

ecs_os_api_free(void *) flecs.c:40044
clear_bucket(ecs_bucket_t *) flecs.c:12709
clear_buckets(ecs_map_t *) flecs.c:12723
ecs_map_fini(ecs_map_t *) flecs.c:12897
flecs_hashmap_fini(ecs_hashmap_t *) flecs.c:13238
flecs_name_index_fini(ecs_hashmap_t *) flecs.c:11274
flecs_name_index_free(ecs_hashmap_t *) flecs.c:11281
free_id_record(ecs_world_t *,unsigned long long,ecs_id_record_t *) flecs.c:35344
flecs_remove_id_record(ecs_world_t *,unsigned long long,ecs_id_record_t *) flecs.c:36077
flecs_table_records_unregister(ecs_world_t *,ecs_table_t *) flecs.c:43992
flecs_table_free(ecs_world_t *,ecs_table_t *) flecs.c:2899
flecs_table_release(ecs_world_t *,ecs_table_t *) flecs.c:2951
clean_tables(ecs_world_t *) flecs.c:34531
fini_store(ecs_world_t *) flecs.c:34550
ecs_fini(ecs_world_t *) flecs.c:35427
flecs::world::~world() flecs.h:14819

To Reproduce
Unable to reproduce in isolation.

No longer able to repro due to internal code changes. Closing because I cannot verify if the bug is present still.