NiklasEi / bevy_asset_loader

Bevy plugin helping with asset loading and organization
Apache License 2.0
506 stars 56 forks source link

Deadlock when loading many GLTF models #152

Closed dag-h closed 11 months ago

dag-h commented 1 year ago

bevy_asset_loader sometimes does not proceed out of the defined loading state when loading many (around 8+) GLTF models in an AssetCollection. Using this minimal example (models included in repo), the application fails to get out of the loading state about 2/10 times, and seems completely deadlocked. Reducing the number of models reduces the issue significantly.

I can reproduce the issue on several machines.

NiklasEi commented 1 year ago

Before I invest time into investigating this, I would like to see if this issue still persists after updating to Bevy 0.12. It might be fixed due to the significant changes in bevy_assets.

NiklasEi commented 1 year ago

@dag-h could you please test if your project can still deadlock with Bevy 0.12.1?

NiklasEi commented 11 months ago

I was able to reproduce the issue in roughly half of the runs with your repository. After updating to Bevy 0.12.1 and bevy_asset_loader 0.18.0, the issue was resolved.