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)
Comments (11)
-
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
- Test Runner’s vertical scrollbar overlaps with the up and down arrows and upper toolbar tabs when the window is minimized
- The Input Field view is not updated when deleting lines of text
- The scrollbar does not respect empty lines in the Input Field
- “Texture Atlas Viewer“ button text overlaps another button when the UI Toolkit Debugger is narrowed
- Thresholds are no longer automatically calculated after deleting Motion fields in Blendtrees
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.