-
Notifications
You must be signed in to change notification settings - Fork 6
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
Coroutine issues with Dispatchers.Main #6
Comments
What mentioned packages are you referring to? I'm not super deep into compose-kmp, what library is used to add the Main dispatcher? For a swing-based env you would use |
Sorry, maybe my description was misleading. For the android source set |
What version of coroutines does compose 1.6.0 ship with? |
It looks like the compose-runtime is bringing corountines:1.8.0
|
Maybe this was only because of usage of different coroutine packages? |
Turns out for Windows the issues is still there also with the new version of kotlin-sdk. Changing to |
Not sure what's going on there but changing it to |
The core issue is here and it is going to be fixed soon - Kotlin/kotlinx.coroutines#3914. There is a workaround to disable fast service loader mentioned there |
I'm encountering the known issue with kotlinx.coroutines that affects applications running on Windows.
Disabling the fast service loader, as suggested in the workaround, currently doesn't work on Windows. Setting
So is there some sort of solution or workaround for this issue? |
I used a hack/workaround where i did go into codebase and replaced |
The fix is available: https://github.com/Kotlin/kotlinx.coroutines/releases/tag/1.9.0-RC have you tried upgrading to 1.9.0-RC? |
Thanks for the reminder, |
I can confirm that adding the dependency |
After upgrading to compose-kmp 1.6.0 i'm seeing following issues even when the mentioned packages are present.
I hoped that #5 fixed this issues but its still there. Replacing
Dispatchers.Main
withDispatchers.Default
inFirebaseAuth.kt, AsyncTask.kt
andHandler.kt
seems to fix the issue for me. I'm not super deep into coroutines and dispatcher, please ignore if this does not make sense to you.The text was updated successfully, but these errors were encountered: