"Already continuation registered, can not await twice" - how to debug?See original GitHub issue
Hello! Apologies if this is a basic question - I’ve been struggling with this for a few days. I’m getting the exception on the following await,
System.InvalidOperationException: Already continuation registered, can not await twice or get Status after await.
var handle = Addressables.LoadAssetAsync<UnityEngine.Object>(args.RefCounter.Resource); await handle;
As far as I can see there’s no reason for this error to be thrown? I don’t await the handle twice, so I am unsure how to properly debug this issue? Could it be caused elsewhere in the code since the tasks are pooled? The error isn’t thrown on the first time this code runs - it’s after many loads and under specific circumstances. Any help on how to best track this down would be appreciated.
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top GitHub Comments
2.1.1, it includes fix about IEnumerator.ToUniTask.
when Coroutine(Enumerator) returns immediately, will break pool. Maybe it is not same as first reported, but actualy it is crtical bug.