Skip to content

Possible deadlock in AssetServer in single-threaded modes. #15807

@andriyDev

Description

@andriyDev

Bevy version

HEAD at bd0c74644fda1c6cbdd2524c2920e81fce063648

What you did

According to the docs at https://github.com/bevyengine/bevy/blob/bd0c74644fda1c6cbdd2524c2920e81fce063648/crates/bevy_asset/src/server/mod.rs#L423C1-L425C21, we're supposed to be dropping the infos guard. However this is no longer true after #15509.

We should either pass the mutex guard to this function, or drop the guard before the function call.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-AssetsLoad files from disk to use for things like images, models, and soundsC-BugAn unexpected or incorrect behavior

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions