Search Issue Tracker

In Progress

In Progress in 1.19.X

Votes

20

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)

Comments (5)

  1. 14c25c67749f6f5383494bbf64c718a6?d=mm

    Verpous

    Jan 18, 2022 09:29

    I have this issue as well after upgrading from 2020.3.17 to 2020.3.26. In my testing it has nothing to do with labels. The error happens when trying to load a ScriptableObject which has a field that is an instance of a custom serializable type. So if you, say, declare some serializable struct and have a field of that type in your ScriptableObject, you will get this error.

  2. 520b533d278d5396bcf8f8199e64d960?d=mm

    Michal_Stangel

    Jan 14, 2022 08:41

    Still not fixed with Unity 2021.2.8f1 and Addressables 1.19.17. Had to downgrade to 1.17.17.

    System.Exception: Unable to load asset of type UnityEngine.GameObject from location Assets/Core Assets/Graphics/ParticleEffects/KriptoFX/Pack4/Effect24_GroundCrack.prefab.
    UnityEngine.ResourceManagement.Util.DelayedActionManager:LateUpdate () (at Library/PackageCache/com.unity.addressables@1.19.17/Runtime/ResourceManager/Util/DelayedActionManager.cs:159)

  3. 520b533d278d5396bcf8f8199e64d960?d=mm

    Michal_Stangel

    Jan 06, 2022 15:24

    Same error. After upgrading from Unity 2020 to 2021.2.7f1. Addressables 1.19.3 and 1.19.5.

  4. E54edd447da1a24417b7ab5676aca1a9?d=mm

    glenneroo

    Jan 05, 2022 22:45

    I also have the same error with 2020.3.25f1 after upgrading from 2020.3.22f1. If I downgrade the exceptions go away. Happens with Addressables 1.19.3 and 1.19.5. If I use Addressables 1.18.19 then I get completely different exceptions (but the exception is always in DelayedActionManager LateUpdate method (line 159).

  5. 6cb6f6b62303fc30a620c19e9dd54ebd?d=mm

    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.