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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
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.