We currently have an iOS app using K/N live in pro...
# kotlin-native
y
We currently have an iOS app using K/N live in production 😄 Unfortunately, in rare instances (and something we can not reproduce in house) our customers get this crash. A block seems to be released by iOS which in turn causes a lambda contained within our K/N framework to be released on a background thread, something we have no control over. I think it’s related to this github issue: https://github.com/JetBrains/kotlin-native/issues/2052 We are also using K/N v1.3.30. We also tried freezing this lambda, but we require some mutations to take place, so we couldn’t go do this in the end. Would anyone be able to help with this?
o
usually, there are ways to refer mutable data even from the frozen lambda. For example: https://github.com/JetBrains/kotlin-native/blob/a65b782eb90512829307822f498d987494fe1c48/runtime/src/main/kotlin/kotlin/native/concurrent/MutableData.kt#L22 allows to share byte buffer in frozen lambda
y
thanks!