Search Issue Tracker
Fixed
Votes
0
Found in [Package]
1.7.5
Issue ID
ADDR-1157
Regression
No
[Addressables] Async loading addressable fails when using "Use Existing Build"
Steps to reproduce:
1. Open and Play User-supplied project
Expected: no errors in the Console
Actual: "Unknown error in AsyncOperation." errors in the Console
Reproduced in: 2020.2.0a7
2019.3.11f1:
"Exception encountered in operation Resource<Sprite>(SquareSprite.png): Unknown error in AsyncOperation
UnityEngine.AsyncOperation:InvokeCompletionEvent()"
"Exception encountered in operation Resource<GameObject>(PlanePrefab.prefab): Unknown error in AsyncOperation
UnityEngine.AsyncOperation:InvokeCompletionEvent()"
"Exception encountered in operation Instance<InstanceProvider>(Resource<GameObject>(PlanePrefab.prefab): Dependency operation failed with System.Exception: Unknown error in AsyncOperation.
UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:<.ctor>b__33_0(AsyncOperationHandle)
DelegateList`1:Invoke(AsyncOperationHandle) (at Library/PackageCache/com.unity.addressables@1.7.5/Runtime/ResourceManager/Util/DelegateList.cs:69)
UnityEngine.ResourceManagement.ResourceManager:Update(Single)
MonoBehaviourCallbackHooks:Update() (at Library/PackageCache/com.unity.addressables@1.7.5/Runtime/ResourceManager/Util/MonoBehaviourCallbackHooks.cs:19)"
2020.1.0b6:
"Exception encountered in operation Resource<Sprite>(SquareSprite.png): Unknown error in AsyncOperation
UnityEngine.AsyncOperation:InvokeCompletionEvent()"
"Exception encountered in operation Resource<GameObject>(PlanePrefab.prefab): Unknown error in AsyncOperation
UnityEngine.AsyncOperation:InvokeCompletionEvent()"
"Exception encountered in operation Instance<InstanceProvider>(Resource<GameObject>(PlanePrefab.prefab): Dependency operation failed with System.Exception: Unknown error in AsyncOperation.
UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:<.ctor>b__33_0(AsyncOperationHandle)
DelegateList`1:Invoke(AsyncOperationHandle) (at Library/PackageCache/com.unity.addressables@1.7.5/Runtime/ResourceManager/Util/DelegateList.cs:69)
UnityEngine.ResourceManagement.ResourceManager:Update(Single)
MonoBehaviourCallbackHooks:Update() (at Library/PackageCache/com.unity.addressables@1.7.5/Runtime/ResourceManager/Util/MonoBehaviourCallbackHooks.cs:19)"
Extra info from investigation:
There are two scenes of interest in this project. Loader and SampleScene.
There are two main scripts here, LoadManager and LoadAddressableAsset. LoadManager prints some info on the Addressables and then loads another scene, SampleScene, using Addressables.LoadSceneAsync. SampleScene then calls Addressables.LoadAssetAsync and Addressables.InstantiateAsync, both of which log the error.
If you skip the Loader scene and simply run in SampleScene the error is still logged.
I tried creating a new project with the same scene loading and asset loading flow and I could not reproduce the error. I'm not sure what the key element is.
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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note:
https://github.cds.internal.unity3d.com/unity/Addressables/pull/392