Arkadii Ivanov
11/07/2019, 8:17 PMUncaught Kotlin exception: kotlin.native.IncorrectDereferenceException: illegal attempt to access non-shared kotlin.collections.ArrayList@3edc938 from other thread
at 0 MppLib 0x000000010ce1c165 kfun:kotlin.Exception.<init>(kotlin.String?)kotlin.Exception + 85
at 1 MppLib 0x000000010ce1b4c5 kfun:kotlin.RuntimeException.<init>(kotlin.String?)kotlin.RuntimeException + 85
at 2 MppLib 0x000000010ce460d5 kfun:kotlin.native.IncorrectDereferenceException.<init>(kotlin.String)kotlin.native.IncorrectDereferenceException + 85
at 3 MppLib 0x000000010ce48058 ThrowIllegalObjectSharingException + 744
at 4 MppLib 0x000000010cff3d79 _ZNK16KRefSharedHolder14verifyRefOwnerEv + 185
at 5 MppLib 0x000000010d000efc -[KMutableListAsNSMutableArray dealloc] + 44
at 6 libobjc.A.dylib 0x00007fff50bad0d6 _ZN11objc_object17sidetable_releaseEb + 174
at 7 libobjc.A.dylib 0x00007fff50bae75b _ZN19AutoreleasePoolPage12releaseUntilEPP11objc_object + 147
at 8 libobjc.A.dylib 0x00007fff50bae67a objc_autoreleasePoolPop + 199
at 9 libobjc.A.dylib 0x00007fff50bae9c4 _ZN19AutoreleasePoolPage11tls_deallocEPv + 112
at 10 libsystem_pthread.dylib 0x00007fff51bfe6ab _pthread_tsd_cleanup + 551
at 11 libsystem_pthread.dylib 0x00007fff51c01655 _pthread_exit + 70
at 12 libsystem_pthread.dylib 0x00007fff51bfe2f6 _pthread_body + 137
at 13 libsystem_pthread.dylib 0x00007fff51c01249 _pthread_start + 66
at 14 libsystem_pthread.dylib 0x00007fff51bfd40d thread_start + 13
(lldb)
Kris Wong
11/07/2019, 8:18 PMArkadii Ivanov
11/07/2019, 8:20 PMKris Wong
11/07/2019, 8:21 PMArkadii Ivanov
11/07/2019, 8:22 PMArkadii Ivanov
11/07/2019, 8:28 PMQinghua
11/08/2019, 3:02 AMalex009
11/08/2019, 3:29 AM./gradlew :runtime:ios_x64Runtime
(or arm if you test on device)
3. copy runtime/build/ios_x64/runtime.bc
to ~/.konan/kotlin-native-macos-1.3.50/klib/common/stdlib/targets/ios_x64/native/runtime.bc
and all other *.bc to в ~/.konan/kotlin-native-macos-1.3.50/konan/targets/ios_x64/native/
4. rebuild your app and see logs from memory manageralex009
11/08/2019, 3:37 AMolonho
11/08/2019, 8:34 AMArkadii Ivanov
11/08/2019, 8:54 AMolonho
11/11/2019, 8:50 PM