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
- Getting a deprecated package for JetBrains Rider pop up when opening or creating a project
- [Android] Volume level of the same audio file is different on Samsung Galaxy Tab A8 between 2023.3.0b3 and 2023.3.0b4
- ‘Expected end of value’ warning occurs when a property declaration includes five or more variable references
- Crash on BurstCompilerService::CompileAsync when entering Play mode in a specific scene
- InvalidOperationException when using Game Camera Preview in Scene window with a custom RenderGraph pass
Resolution Note:
https://github.cds.internal.unity3d.com/unity/Addressables/pull/392