Alexey Chuprin
09/19/2021, 7:53 PMrunIosSimulatorDebug
get error Uncaught Kotlin exception: kotlin.native.IncorrectDereferenceException: Trying to access top level value not marked as @ThreadLocal or @SharedImmutable from non-main thread
. What am I doing wrong?> Task :runIosSimulatorDebug
Uncaught Kotlin exception: kotlin.native.IncorrectDereferenceException: Trying to access top level value not marked as @ThreadLocal or @SharedImmutable from non-main thread
at 0 GameMain 0x0000000101b21611 kfun:kotlin.Throwable#<init>(kotlin.String?){} + 97 (/opt/buildAgent/work/c5a36d4d82b914cf/kotlin/kotlin-native/runtime/src/main/kotlin/kotlin/Throwable.kt:24:56)
at 1 GameMain 0x0000000101b1a81d kfun:kotlin.Exception#<init>(kotlin.String?){} + 93 (/opt/buildAgent/work/c5a36d4d82b914cf/kotlin/kotlin-native/runtime/src/main/kotlin/kotlin/Exceptions.kt:23:58)
at 2 GameMain 0x0000000101b1aa3d kfun:kotlin.RuntimeException#<init>(kotlin.String?){} + 93 (/opt/buildAgent/work/c5a36d4d82b914cf/kotlin/kotlin-native/runtime/src/main/kotlin/kotlin/Exceptions.kt:34:58)
at 3 GameMain 0x0000000101b5483d kfun:kotlin.native.IncorrectDereferenceException#<init>(kotlin.String){} + 93 (/opt/buildAgent/work/c5a36d4d82b914cf/kotlin/kotlin-native/runtime/src/main/kotlin/kotlin/native/Runtime.kt:31:50)
at 4 GameMain 0x0000000101b7afb3 ThrowIncorrectDereferenceException + 131 (/opt/buildAgent/work/c5a36d4d82b914cf/kotlin/kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/RuntimeUtils.kt:104:11)
at 5 GameMain 0x0000000101d3a7ce CheckGlobalsAccessible + 30
at 6 GameMain 0x00000001021ff625 kfun:com.soywiz.korim.font.<get-iosFontsFolders>#internal + 21 (/Users/runner/work/korge-next/korge-next/korim/src/iosWatchosTvosCommonMain/kotlin/com/soywiz/korim/font/NativeSystemFontProviderFallback.kt:5:93)
at 7 GameMain 0x000000010220a7e8 kfun:kotlin.native.caches.abi#$com.soywiz.korim.font.BitmapFont.Kerning.Companion.globalAccessor(){}com.soywiz.korim.font.BitmapFont.Kerning.Companion + 28600
at 8 GameMain 0x0000000101d4c636 Kotlin_initRuntimeIfNeeded + 1462
at 9 GameMain 0x0000000101d52118 _ZN12_GLOBAL__N_113workerRoutineEPv + 40
at 10 libsystem_pthread.dylib 0x00007fff603438fc _pthread_start + 224
at 11 libsystem_pthread.dylib 0x00007fff6033f443 thread_start + 15
com.example.example.app-X64-Debug: 61527
> Task :runIosSimulatorDebug FAILED
Deactivated User
09/19/2021, 9:25 PMAlexey Chuprin
09/20/2021, 5:24 AMDeactivated User
09/30/2021, 8:46 AMAlexey Chuprin
09/30/2021, 9:32 AM