Hey guys, having pretty similar issues to the desc...
# multiplatform
o
Hey guys, having pretty similar issues to the described above and cannot fix it
Copy code
kotlin.native.concurrent.FreezingException: freezing of InvokeOnCompletion[InvokeOnCompletion@360fd08] has failed, first blocker is HttpClient[io.ktor.client.engine.ios.IosClientEngine@362a408]
freezing of InvokeOnCompletion[InvokeOnCompletion@360fd08] has failed, first blocker is HttpClient[io.ktor.client.engine.ios.IosClientEngine@362a408]
I’m running
Copy code
const val kotlinVersion = "1.4.0"
const val coroutinesVersion = "1.3.9-native-mt"
const val ktorVersion = "1.4.0"
const val serializationVersion = "1.0.0-RC"
Anyone can help?
k
j
Check your logging level as per previous issue posted in this channel.
o
I don’t use any logging
k
Same. Not using logging too.
j
one other thing I think I had to do was "force" use of 1.3.9-native-mt e.g.
Copy code
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:${Versions.kotlinCoroutines}") {
    isForce = true
}
hmm, though I see that I did that in just one repo.....other ones (with same dependencies) that are working ok don't have that
fwiw you can compare to what I have in https://github.com/joreilly/PeopleInSpace in case anything else might be different
o
Copy code
implementation(Multiplatform.commonCoroutinesCore) {
                    version {
                        strictly("1.3.9-native-mt")
                    }
                }
@Kurt Renzo Acosta do you use
CoroutineExceptionHandler
?
Apparently it caused this issue in my case
k
huh you are right. I do need that exception handling though. this is very weird
o
yeah, I also need it, but for now a good old
try catch
might do the job
k
I reported this in https://youtrack.jetbrains.com/issue/KTOR-973. Let’s hope we get a fix soon
👍 1
a
I tried this now and is isn't fixed in ktor version
1.4.2
which was released like two days ago
w
Same error here with Ktor version: 1.5.0
Same error when using `use 
CoroutineExceptionHandler
fixed with removing CoroutineExceptionHandler