Search Issue Tracker

Fixed

Fixed in 1.19.18

Votes

26

Found in [Package]

1.19.14

Issue ID

ADDR-2426

Regression

Yes

"Unable to load assets of type" errors appear if Assets have Labels when entering the Play Mode

Package: Build Pipeline - Addressables

-

How to reproduce:
1. Open project "AddressablesBug"
2. Open the "Test" Scene
3. Enter the Play Mode
4. Observe the Console window

Expected result: No errors
Actual result: Errors appear "System.Exception: Unable to load asset of type VolotRO.Gameplay.Pilots.AvatarData from location Assets/ScriptableObjects/Avatars/MaleAvatarData.asset. UnityEngine.ResourceManagement.Util.DelayedActionManager:LateUpdate () (at Library/PackageCache/com.unity.addressables@1.19.14/Runtime/ResourceManager/Util/DelayedActionManager.cs:159)"

Reproducible with: 1.19.14 (2021.2.4f1, 2021.2.7f1, 2022.1.0b2)
Not reproducible with: 1.19.14 (2021.2.3f1)
Could not test with: 2019.4.34f1, 2020.3.25f1 (Errors after downgrade)

  1. Resolution Note (fix version 1.19.18):

    Fixed issue where "Unable to load assets of type" error occurs when loading asset with classes referenced by value in "Use Asset Database" mode.

Comments (11)

  1. Andrewkom

    Dec 20, 2021 10:54

    I have the same error and I don't that it's the same issue or not.
    Error is reproducible with Unity 2020.3.24f1 and 2020.3.25f1
    Not reproducible with 2020.3.23f1
    Addressables package is 1.19.14
    So the issue is in engine side.
    In my case Addressables.LoadResourceLocationsAsync(label) method returns more locations than need. After debugging i found out the issue is in ContentBuildInterface.GetTypeForObjects(ids) method in GatherSubObjectTypes(ObjectIdentifier[] ids, string guid) in AddressableAssetEntry class

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.