ribesg
02/16/2022, 2:10 PMBig Chungus
02/16/2022, 2:20 PMribesg
02/16/2022, 2:21 PMBig Chungus
02/16/2022, 2:22 PMribesg
02/16/2022, 2:23 PMBig Chungus
02/16/2022, 2:23 PMribesg
02/16/2022, 2:24 PMMichal Klimczak
02/16/2022, 2:43 PMInvalidMutabilityException: mutation attempt of frozen kotlin.Array@249bab0
in kfun:io.ktor.client.plugins.json.serializer.SerializerInitializer.<init>#internal + 236
. (trying to install kotlinx serialization into ktor) Using coroutines 1.6.0-native-mt fwiw (in regular 1.6.0 had other issues).
(works without new-mm flag)ribesg
02/16/2022, 3:21 PM1.6.0-native-mt
isn’t meant to work with the new memory modelhfhbd
02/16/2022, 3:23 PM1.6.0-native-mt
works with the new MM. Problems are external dependencies, like io.ktor.client.plugins.json
, which uses a shared Json instanceMichal Klimczak
02/16/2022, 3:33 PMMichal Klimczak
02/16/2022, 3:57 PMimplementation("io.ktor:ktor-client-serialization:$ktorVersion")
from my iosMain source set (was left after migration to ktor 2.x).
But now I have kotlin.native.concurrent.InvalidMutabilityException: mutation attempt of frozen io.ktor.client.engine.engines.Node@3d40580
😄kotlin.native.binary.freezing=disabled
in gradle.properties
Aleksei Tirman [JB]
02/17/2022, 2:18 PMMichal Klimczak
02/17/2022, 4:16 PM