https://kotlinlang.org logo
#ios
Title
# ios
n

Nikolay Kasyanov

05/15/2020, 1:35 PM
Hey folks, we started getting a crash in
(anonymous namespace)::garbageCollect(MemoryState*, bool)
after releasing a version of an iOS app with a fairly big chunk of new Kotlin/Native code. There’s a somewhat similar thread but our stack trace is different.
stacktrace:
Copy code
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x010db2ee00000001

Crashed: Thread
0  ModuleName                     0x102097ccc (anonymous namespace)::garbageCollect(MemoryState*, bool) + 2168
1  ModuleName                     0x10209d630 DeinitMemory + 32
2  ModuleName                     0x1020a2b70 (anonymous namespace)::Kotlin_deinitRuntimeCallback(void*) + 892
3  ModuleName                     0x1020a2cb0 konan::onThreadExitCallback(void*) + 32
4  libsystem_pthread.dylib        0x191a48468 _pthread_tsd_cleanup + 504
5  libsystem_pthread.dylib        0x191a45904 _pthread_exit + 80
6  libsystem_pthread.dylib        0x191a452cc _pthread_body + 140
7  libsystem_pthread.dylib        0x191a45220 _pthread_start + 44
8  libsystem_pthread.dylib        0x191a48cdc thread_start + 4
@svyatoslav.scherbina as you were active in the referenced thread, I’d appreciate any input. Thanks!
s

svyatoslav.scherbina

05/15/2020, 3:08 PM
That thread seems related. Please follow the advices I posted there.
n

Nikolay Kasyanov

05/18/2020, 7:06 AM
Thank you.
k

Kashismails

12/25/2023, 8:41 PM
@Nikolay Kasyanov were you able to solve this?
n

Nikolay Kasyanov

12/27/2023, 1:14 PM
@Kashismails it seems like yes, but I can’t remember if the solution was in the thread or it just went away at some point
60 Views