For anybody experiencing freezing issues with Ktor...
# ktor
i
For anybody experiencing freezing issues with Ktor for iOS it looks like version
1.4.0
is broken. I used version
1.3.2-1.4.0-rc
and it worked like a charm as suggested here. Had this issue since last week and after a few days finally found the cause haha thought I'd save others the time. For the record, my iOS app was throwing a
Thread 1: signal SIGABRT
on the IDE and saw this in the logs
Uncaught Kotlin exception: kotlin.native.concurrent.InvalidMutabilityException: mutation attempt of frozen kotlinx.coroutines.ChildHandleNode@31dca08
. Again it all works now after reverting the versions.
e
Hey, could you tell me what version of
kotlinx.coroutines
you're using?
i
Yeap currently using
org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9
e
Could you try using
1.3.9-native-mt
?
i
Yeap, I did and it works fine as well, as long as ktor version is downgraded to
1.3.2-1.4.0-rc
oh but you mean using ktor
1.4.0
and coroutines
1.3.9-native-mt
, no?
ok just tried this ^ and get errors:
Caused by: kotlinx.coroutines.CompletionHandlerException: Exception in completion handler ChildCompletion[ChildHandle[DeferredCoroutine{Cancelled}@3376d68], kotlin.Unit]