Search Issue Tracker

Fixed

Fixed in 1.18.13

Votes

0

Found in [Package]

1.18.13

Issue ID

ADDR-2696

Regression

Yes

[Addressables] AsyncOperationHandle completes with the wrong Operation when releasing the Operation handle before completion

Package: Addressables

-

Addressables release IAsyncOperation before Complete callback invoke.

How to reproduce:
1. Open the attached project "addressrepro"
2. Open the scene "SampleScene" and enter Play mode(Assets/Scenes/SampleScene.unity)
3. Inspect the second message printed in the Console window (Window > General > Console)

Expected result: The message "prefabB=Instance<InstanceProvider>(Resource<GameObject>(PrefabB.prefab) isValid=True" is seen
Actual result: The message "prefabB=Instance<InstanceProvider>(Resource<GameObject>(PrefabC.prefab) isValid=True" is seen

Reproducible with: 1.18.13, 1.19.19 (2020.3.34f1, 2021.3.1f1, 2022.1.0f1, 2022.2.0a11)
Not reproducible with: 1.15.1, 1.18.11 (2020.3.34f1)
Could not test with: 1.19.19 (2019.4.38f1) (Error: A local or parameter named 'op' cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter), 1.14.2 (2020.3.34f1) (Error: cannot convert from 'System.Collections.Generic.List<string>' to 'System.Collections.Generic.IList<UnityEngine.ResourceManagement.ResourceLocations.IResourceLocation>')

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.