Skip to content
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

Module with the Main dispatcher had failed to initialize in 0.8.2 #1241

Closed
marenovakovic opened this issue Jan 12, 2019 · 3 comments
Closed

Comments

@marenovakovic
Copy link

marenovakovic commented Jan 12, 2019

Getting this exception when using Dispatchers.Main context since am using arrow 0.8.2

java.lang.IllegalStateException: Module with the Main dispatcher had failed to initialize at kotlinx.coroutines.internal.MissingMainCoroutineDispatcher.missing(MainDispatchers.kt:79) at kotlinx.coroutines.internal.MissingMainCoroutineDispatcher.isDispatchNeeded(MainDispatchers.kt:54) at kotlinx.coroutines.DispatchedKt.resumeCancellable(Dispatched.kt:373) at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable(Cancellable.kt:25) at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:109) at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:160) at kotlinx.coroutines.channels.ActorKt.actor(Actor.kt:121) at kotlinx.coroutines.channels.ActorKt.actor$default(Actor.kt:112)

@pakoito
Copy link
Member

pakoito commented Jan 13, 2019

From that stacktrace this doesn't seem related to Arrow directly. Can you please report it in the kotlinx.coroutines repository?

@marenovakovic
Copy link
Author

marenovakovic commented Jan 13, 2019

I thought its related to arrow 0.8.2 because i was using 0.8.1 and everything worked fine, i have just upgraded arrow version nothing else. I have reported the issue to kotlinx.coroutines repo.

@marenovakovic
Copy link
Author

Upgrading to kotlinx.coroutines 1.1.0 solved it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants