-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Unexpected crash with AbortFlowException
#1454
Comments
After looking further into this issue, I recognized that the exception is actually thrown by the I also noticed that the documentation does not specify which exception is thrown if the channel "isClosedForSend". Therefore, I think this issue can be closed because it is working as expected. Maybe some kind of boundary for the exception thrown here would make sense here (like the old ClosedSendChannelException)? Side Note: System.setProperty(DEBUG_PROPERTY_NAME, DEBUG_PROPERTY_VALUE_ON)
System.setProperty("kotlinx.coroutines.stacktrace.recovery", "true") To enable stack trace recovery on android, without any success. Am I missing something? |
Thanks for the report! It indeed works as expected:
It should be enough, but only if you set these properties before touching any coroutines-related code. Another approach is to tune R8 rules:
|
After upgrading from version 1.2.2 to 1.3.0-RC2 we encountered this kind of crash at runtime:
Sample code to reproduce: (see #1455 )
Potentially related: #1433
The text was updated successfully, but these errors were encountered: