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
- [Android] Stage information is not logged when Log Shader Compilation is enabled
- [Vulkan] The memory allocation increases rapidly when there are multiple (three or more) Real-Time Reflection Probes in the Scene
- [macOS] Library folder of the opened project can be deleted which leads to the crash
- “Default Scene” dropdown field contains a spelling mistake “Default Builtin”
- Editor crashes on PPtr<Mesh> after adding Text Mesh and Cloth Components to the same GameObject
Resolution Note:
https://github.cds.internal.unity3d.com/unity/Addressables/pull/392