Search Issue Tracker
Fixed in 1.7.4
Votes
0
Found in [Package]
0.8.4-preview
Issue ID
1183875
Regression
No
[Addressables] NullReferenceException appears when addressable scriptable objects are being loaded to the scene
To reproduce:
1. Open attached project
2. Press play in the editor
3. Check the console for errors
Actual results: NullReferenceException appears after entering play mode
Expected results: There should be no errors
Reproduced with: 2018.4.10f1; 2020.1.0a7
Errors:
NullReferenceException: Object reference not set to an instance of an object
CustomizationController+<>c.<Start>b__9_0 (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1[TObject] op) (at Assets/Scripts/CustomizationController.cs:36)
DelegateList`1[T].Invoke (T res) (at Library/PackageCache/com.unity.addressables@1.2.2/Runtime/ResourceManager/Util/DelegateList.cs:69)
UnityEngine.Debug:LogException(Exception)
DelegateList`1:Invoke(AsyncOperationHandle`1) (at Library/PackageCache/com.unity.addressables@1.2.2/Runtime/ResourceManager/Util/DelegateList.cs:73)
UnityEngine.ResourceManagement.ResourceManager:Update(Single)
MonoBehaviourCallbackHooks:Update() (at Library/PackageCache/com.unity.addressables@1.2.2/Runtime/ResourceManager/Util/MonoBehaviourCallbackHooks.cs:19)
Exception encountered in operation UnityEngine.AddressableAssets.Initialization.InitializationOperation, result='', status='Succeeded' - Chain<DataScriptableObject,IResourceLocator>: ChainOperation of Type: DataScriptableObject failed because dependent operation failed
Unknown error in AsyncOperation
UnityEngine.ResourceManagement.ChainOperation`2:OnWrappedCompleted(AsyncOperationHandle`1)
DelegateList`1:Invoke(AsyncOperationHandle`1) (at Library/PackageCache/com.unity.addressables@1.2.2/Runtime/ResourceManager/Util/DelegateList.cs:69)
UnityEngine.ResourceManagement.ResourceManager:Update(Single)
MonoBehaviourCallbackHooks:Update() (at Library/PackageCache/com.unity.addressables@1.2.2/Runtime/ResourceManager/Util/MonoBehaviourCallbackHooks.cs:19)
Exception encountered in operation Resource<DataScriptableObject>(DataObject.asset): Unknown error in AsyncOperation
UnityEngine.AsyncOperation:InvokeCompletionEvent()
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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note (fix version 1.7.4):
Disallow DragAndDrop onto ReadOnlyGroups (ie Built in Data)