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
- Can not navigate through the Scene view when using a drawing tablet
- Crash on EditorDisplayDialogProc when opening Dialog box containing buttons with unusually long labels
- Crash on AsyncWriteImageToR2dFile when baking lightmaps using custom parameter with 16x Anti Aliasing samples
- Application Cloud Connection Id is incorrect when using Build Profile with Player Setting Overrides.
- [Android] [GameActivity] UI is unresponsive when Application Entry Point is set to GameActivity
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.