Search Issue Tracker
Won't Fix
Won't Fix in 1.19.X
Votes
1
Found in [Package]
1.19.18
Issue ID
ADDR-2576
Regression
Yes
[Addressables] "Exception: Reentering the Update method is not allowed" error is thrown when adding Task function to a list
Reproduction steps:
1. Open the attached user's Unity project "bug_tasks_and_sync_addressables.zip"
2. Enter the Play mode
3. Observe the error in the Console window
Expected result: No errors are thrown in the Console window
Actual result: Error is thrown in the Console window: "Exception: Reentering the Update method is not allowed. This can happen when calling WaitForCompletion on an operation while inside of a callback."
Reproducible with: 1.18.9 (2019.4.36f1, 2020.3.30f1), 1.19.18 (2021.2.14f1, 2022.1.0b11, 2022.2.0a7)
Not reproducible with: 1.18.4 (2019.4.36f1, 2020.3.30f1)
Could not test with: 1.18.4 (2021.2.14f1, 2022.1.0b11, 2022.2.0a7 (no package available))
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
- Code runs slower when using a cached exception instance compared to creating a new one
- Broken UI in Default Preset Add Section of "Preset Manager" window
- [iOS] The Player freezes when closing the Notification Center and quickly swiping down from top
- Crash on Texture2D:SetPixelImpl when rapidly calling Texture2D.Apply()
- Graph Lines are not rendered when using Experimental GraphView or GridBackground
Resolution Note:
There are no fixes planned for this Bug
Resolution Note (1.19.X):
This issue is with the use of async/await. Addressables API does not make use of c# tpl, and should not be used that way.
If needed to be used, Addressables provides a Task for use with tpl. Which can be obtained from the AsyncOperationHandles returned from the Addressables API. When using this, the issue with the continuation of the async method calling await on Addressables API works as expected.