-
Notifications
You must be signed in to change notification settings - Fork 58
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
Uncaught "Call is cancelled" subscription exception #202
Comments
@btilbrook-nextfaze Thanks for the report. If you have any context around cases where you have seen this crash (e.g., what user activity was in process at the time, or led up to the crash), that would be helpful. |
One thing I can say is it seems to be happening when a delta sync subscription is cancelled very shortly after starting. |
The code in question uses a |
Sorry for the delay - we'll discuss this on our Friday bug bash |
Hey, looked into this and you were 100% right about the two issues you raised in that throwing the exception inside the separate thread would always cause the crash and the "this" reference was wrong - I've fixed both of these in the code to rather than throw an exception inside the thread, pass the error back through the callback and we'll now be writing a test to ensure it works before releasing it. Will update this when it's released. |
Great news. Thanks for looking into this - much appreciated! |
@btilbrook-nextfaze the release |
Describe the bug
An uncaught exception in the subscription code is crashing Android apps. There is evidently no way to prevent this from occurring.
To Reproduce
Not commonly reproducable. Might be a multithreading problem. However, the code in question is obviously a poor way to handle the problem.
Expected behavior
The exception is caught and logged or ignored.
Environment
2.10.0
Device Information
29.0.12-5613046
9.0 (Pie) - API 28
Stacktrace
The text was updated successfully, but these errors were encountered: