https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
o

Oleh

09/10/2020, 8:00 AM
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

Kurt Renzo Acosta

09/10/2020, 8:01 AM
j

John O'Reilly

09/10/2020, 8:02 AM
Check your logging level as per previous issue posted in this channel.
o

Oleh

09/10/2020, 8:02 AM
I don’t use any logging
k

Kurt Renzo Acosta

09/10/2020, 8:02 AM
Same. Not using logging too.
j

John O'Reilly

09/10/2020, 8:04 AM
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

Oleh

09/10/2020, 8:06 AM
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

Kurt Renzo Acosta

09/10/2020, 10:46 AM
huh you are right. I do need that exception handling though. this is very weird
o

Oleh

09/10/2020, 10:47 AM
yeah, I also need it, but for now a good old
try catch
might do the job
k

Kurt Renzo Acosta

09/10/2020, 10:53 AM
I reported this in https://youtrack.jetbrains.com/issue/KTOR-973. Let’s hope we get a fix soon
👍 1
a

Azur Haljeta

11/12/2020, 9:05 AM
I tried this now and is isn't fixed in ktor version
1.4.2
which was released like two days ago
w

wuseal

02/04/2021, 11:41 AM
Same error here with Ktor version: 1.5.0
Same error when using `use 
CoroutineExceptionHandler
fixed with removing CoroutineExceptionHandler