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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Resolution Note:
https://github.cds.internal.unity3d.com/unity/Addressables/pull/392