https://kotlinlang.org logo
#ktor
Title
# ktor
i

Ivann Ruiz

09/08/2020, 7:44 PM
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

e5l

09/09/2020, 5:02 AM
Hey, could you tell me what version of
kotlinx.coroutines
you're using?
i

Ivann Ruiz

09/09/2020, 1:20 PM
Yeap currently using
org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9
e

e5l

09/09/2020, 1:21 PM
Could you try using
1.3.9-native-mt
?
i

Ivann Ruiz

09/09/2020, 1:21 PM
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]
9 Views