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
- Saving moves Toggle Button Group buttons to the wrong place in hierarchy
- [iOS] Visual artifacts are visible when the camera's feed is rendered to a texture
- Error "cannot map expression to ps_4_0 instruction set" in Shader Graph preview when using the GATHER_RED_TEXTURE2D macro in custom hlsl function
- Sprite Renderer image is changed when Mask Interaction is turned by C# script
- URP Player remains in Windows Background processes when the application is closed
Resolution Note:
https://github.cds.internal.unity3d.com/unity/Addressables/pull/392