-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assert hit in UnityAsyncUtil package #22
Comments
Hi, I have the same exceptions on production. Android and iOS. Different system version numbers and different devices. No common features. I was unable to reproduce this during testing on my devices. An example of an exception from Android. After receiving a callback from an admob native plugin, that is not invoked on the main thread, I want to wait for the main thread to change the icon state on unity UI. Exception:
Code:
|
Just posting to add some additional info: |
funny because I usually use |
hi, did you manage to solve the problem? |
We're experiencing the Assert failing in the SimpleCoroutineAwaiter implementation of INotifyCompletion.OnCompleted.
We've also seen this error pop up many times before in random places. This particular part of the code is just waiting on a WaitForUpdate instance.
Unfortunately I don't have any other details, and I've not been able to reproduce this despite many attempts. As far as I can tell the generated task state machine code should only invoke the OnCompleted method once ever, so I really don't understand how this could happen.
The Stacktrace
System.Exception Assert hit in UnityAsyncUtil package!
0 IEnumeratorAwaitExtensions.Assert (System.Boolean condition) (<00000000000000000000000000000000>:0)
1 IEnumeratorAwaitExtensions+SimpleCoroutineAwaiter.System.Runtime.CompilerServices.INotifyCompletion.OnCompleted (System.Action continuation) (<00000000000000000000000000000000>:0)
2 System.Runtime.CompilerServices.AsyncVoidMethodBuilder.AwaitOnCompleted[TAwaiter,TStateMachine] (TAwaiter& awaiter, TStateMachine& stateMachine) (<00000000000000000000000000000000>:0)
3 ODDFramework.AdProviderBase+d__40.MoveNext () (<00000000000000000000000000000000>:0)
The text was updated successfully, but these errors were encountered: