https://kotlinlang.org logo
#coroutines
Title
# coroutines
l

louiscad

12/07/2018, 10:53 AM
Hi, I'm using kotlinx.coroutines with TornadoFx and the JavaFx artifact, and it worked fine, but today, it is not working but showing this in the logs:
java.lang.IllegalStateException: Module with the Main dispatcher had failed to initialize
(without cause logged). What could be the issue?
v

Vsevolod Tolstopyatov [JB]

12/07/2018, 11:21 AM
What version of Java and coroutines are you using? Though it is strange, because
cause
should always be logged.
Probably you haven’t included
kotlinx-coroutines-javafx
l

louiscad

12/07/2018, 11:25 AM
I have this in my dependencies:
Copy code
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-javafx:$kotlinx_coroutines_version"
I'm using Kotlin 1.3.10 and kotlinx.coroutines 1.0.1
Tried a rebuild, but same issue
Here's the stacktrace I get when I swap
Dispatcher.Main
with `Dispatchers.JavaFx`:
v

Vsevolod Tolstopyatov [JB]

12/07/2018, 11:33 AM
It is a bug in 1.0.1 🙁 Already fixed in develop
l

louiscad

12/07/2018, 11:35 AM
So that's why it started to fail, I upgraded. Hopefully, I won't need this app to run before you release a new version with the fix 🙂
3 Views