Trouv / bevy_ecs_ldtk

ECS-friendly ldtk plugin for bevy, leveraging bevy_ecs_tilemap
Other
687 stars 79 forks source link

Critical Memory Leak and Segfault when Using Autolayers #118

Closed zicklag closed 1 year ago

zicklag commented 2 years ago

When running a demo map with auto-layers on Linux Ubuntu 20.04 I'm getting a memory leak that will rapidly expand to using 8GB+ of memory in less than 30 seconds before finally segfaulting.

There's nothing obvious in the logs other than the fact that it happens immediately after LDtk asset creation detected. and nothing happens after that.

demo-map.zip trace_log.txt

Trouv commented 2 years ago

Thanks for reporting this. I am able to reproduce this issue. I'm guessing this is a bug that's specific to "Rectangle of tiles" rules. Disabling the "Stamps" rule group of the "Walls" layer allows the level to load fine.

Trouv commented 1 year ago

Looking into this. It only happens with the "Rectangle of Tiles" rules when the rectangles overflow the bounds of the level.

Trouv commented 1 year ago

Should be fixed on the branch fix/out-of-bounds-tiles

zicklag commented 1 year ago

Yep, that fixes it!

zicklag commented 1 year ago

Thanks!