Skip to content

Failed sub-asset loads can get stuck in LoadState::Loading #22607

@greeble-dev

Description

@greeble-dev

Bevy version

0.18

What you did

// Load a labeled sub-asset that doesn't exist.
let handle = asset_server.load::<AssetType>("asset#non_existent_subasset");

// Or load a labeled sub-asset that does exist, but is not of type `WrongAssetType`.
let handle = asset_server.load::<WrongAssetType>("asset#subasset");

What went wrong

I expected AssetServer::get_load_state(handle) to eventually return LoadState::Failed with an appropriate error. But instead it gets stuck in LoadState::Loading.

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 behaviorS-Waiting-on-AuthorThe author needs to make changes or address concerns before this can be merged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions