-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Proto.Promises.PromiseYieldExtensions exception on Android? #512
Comments
Are you able to reproduce in editor by chance? Or is it only happening on device? |
Also, at what point in the program is that running? Before Awake? Looking at the code, the only thing that could be null there is |
I don't have the setup for a simulator and this is on my vanilla testing Android I'm using. The call happens from Awake() on my root "App" MonoBehavior:
async void Awake() {
...
DontDestroyOnLoad(this.gameObject);
await OnApplicationStart();
...
}
public async Promise OnApplicationStart() {
...
await readAppVars();
...
}
|
Does #513 fix it? |
Fix confirmed good to go, appreciate your diligence! |
Well, I found the actual cause. I create the So #513 was only a half-fix. I'm working on a comprehensive fix now. |
ah, ok great -- appreciate your efforts! |
I'm turning the corner on this forthcoming release (excited to show ya Tim!) and just recently have an Android build since a long period. I'm getting a 100% reproducible exception within PP:
Offending function:
Before the switch to PP, the above function look like and was in production:
Looking at the stack trace, it's suspicious to see another async call
loadTextureUsingWebRequest
is unexpectedly interleaved and thinking I'm doing something fooling elsewhere? For reference, here's those other (unrelated but possibly concurrent) functions:The text was updated successfully, but these errors were encountered: