-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Crash with kotlinx.coroutines.JobCancellationException #2170
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
Comments
All logs usually contain Unsafe.park.
|
Hi,
Please try to enable debug mode: https://github.com/Kotlin/kotlinx.coroutines/blob/master/docs/debugging.md#debug-mode to have stacktraces in It's hard to tell what exactly is wrong without actual stacktraces, but as a wild guess, please ensure that you do not invoke |
My team encountered this as well and unfortunately, we haven't identified the root cause. But we did make the following changes in a release and haven't seen it since. Maybe these will be helpful:
Other things to note:
|
We weren't using I already add |
I am not using experimental or deprecated functions in the project at all. I have set in Application I think it will be necessary to wait a few days. Before I get any results from users in beta testing. |
Thanks, that's a great place to start looking!
If the scope of |
I found a bug. It consisted in the fact that I used in one place in my code the Helped me:
I continue to observe. If no new issues are found by the end of the month, I will close the discussion. |
Perhaps this problem is somehow related to a Google bug. |
After switching to Kotlin 1.4, no new error messages appeared. Thanks to all. |
@frist008 have you by any chance switched back to |
We weren't using RX explicitly in our source code. |
Hello.
Migrated my project from RxJava to Kotlin coroutines.
My project has up to 2000-3000 online per day and 20_000 per month.
I started getting all sorts of errors on Crashlitics with JobCancellationException.
Full log:
Fatal Exception: kotlinx.coroutines.JobCancellationException: Job was cancelled
.However, there are 30-50 other streams. I'm worried that I don't have a Stacktrace where the error occurred? and I cannot fix the problem.
Furthermore. I cannot reproduce it myself. This error occurs with real users, but not me. For real users, the error does not repeat itself for a month. The sample for all users is very small - 0.23%. And the chance of repetition is even less.
The error header can be quite different on Crashlitics:
You may also have noticed that I have listed 2 sides of the library that are thrown with JobCancellationException.
It's funny, but I don't use coroutines explicitly in them. It's just magic.
I am using a wrapper to run coroutines.
The text was updated successfully, but these errors were encountered: