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
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)
-
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
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Happy Harvest] #ThunderLabel text is "\u26C8" instead of "⛈"
- Warning “New Sprite Atlas: There is a mismatch in secondary textures of sprites compared to WhiteUnit, wasting texture space and potentially break draw call batching. Affected Sprites are (Flag)“ is thrown when packing Atlas with Sprite Atlas V2
- Sprite Editor dropdown text is cut-off for options with longer text
- Sprite Editor can't be scrolled horizontally using the trackpad gesture
- BRG picking skips BatchDrawCommandProcedural when selecting the GameObject in the scene
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.