Closed micHar closed 2 years ago
Looks like adding kotlin.native.binary.freezing=disabled
to gradle.properties
. helps, so I guess it's something with atomic refs and will work out of the box in 1.6.20, right? Same thing broke ktor for me.
I see the issue. Adding to the backlog.
I've updated to 0.6.0 and am still getting this exception.
Uncaught Kotlin exception: kotlin.native.concurrent.InvalidMutabilityException: mutation attempt of frozen co.touchlab.crashkios.LogCrashHandler@43d270 at 0 kmmsharedmodule 0x00000001126ae71b kfun:kotlin.Exception#<init>(kotlin.String?){} + 11 at 1 kmmsharedmodule 0x00000001126cbbb2 ThrowInvalidMutabilityException + 1010 at 2 kmmsharedmodule 0x00000001126ca125 kfun:kotlin.native.concurrent.AtomicReference#<init>(1:0){} + 85 at 3 kmmsharedmodule 0x000000011298c287 kfun:co.touchlab.crashkios.DefaultCrashHandler#<init>(){} + 759 at 4 kmmsharedmodule 0x0000000112d8093e objc2kotlin.6474 + 862 at 5 iosApp 0x000000010bda4c3e $s6iosApp15KMMCrashHandlerC5startyyFZ + 78
Version
0.5.0
(but0.4.0
too, I think) crash when launched with the new memory model. Everything is fine when it's disabled.Had this with both
1.6.0
and1.6.0-native-mt
.