-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Strict Mode DiskReadViolation on Android when converting Rx Publisher to Flow #1817
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
This is an improper use of SL on our side. This code is invoked once per application, so as a temporary workaround you can first invoke |
I think this still occurs, because This worked for me as a workaround (near app start):
|
I'm not sure if r8 is the right solution here, if coroutines are initialized after the stricty mode is set, this still happens: To reproduce:
Stacktrace:
|
I have some code that is converting an
Observable
to aFlow
in the following manner:I cannot reproduce on my own test device but someone else on my team was able to reproduce the following Strict Mode violation:
It points to the following top-level property which performs some static initialization within
ReactiveFlow.kt
:The text was updated successfully, but these errors were encountered: