when change in `nw_path_monitor_set_update_handler...
# kotlin-native
m
when change in
nw_path_monitor_set_update_handler
happens (lambda function called) I get this error:
Copy code
Uncaught Kotlin exception: kotlin.native.IncorrectDereferenceException: illegal attempt to access non-shared <object>@802ec7c8 from other thread
    at 0   MyApp                               0x0000000102926f90 kfun:kotlin.Throwable#<init>(kotlin.String?){} + 96
    at 1   MyApp                               0x000000010291fbe4 kfun:kotlin.Exception#<init>(kotlin.String?){} + 92
    at 2   MyApp                               0x000000010291fe18 kfun:kotlin.RuntimeException#<init>(kotlin.String?){} + 92
    at 3   MyApp                               0x00000001029515ac kfun:kotlin.native.IncorrectDereferenceException#<init>(kotlin.String){} + 92
    at 4   MyApp                               0x00000001029547f4 ThrowIllegalObjectSharingException + 420
    at 5   MyApp                               0x0000000102b11474 Kotlin_CString_toKStringFromUtf8Impl + 0
    at 6   MyApp                               0x0000000102b12c74 _ZN12_GLOBAL__N_136terminateWithIllegalSharingExceptionEP9ObjHeader + 16
    at 7   MyApp                               0x0000000102b1d118 _ZNK16KRefSharedHolder3refIL11ErrorPolicy3EEEP9ObjHeaderv + 116
    at 8   MyApp                               0x00000001029052d4 _ZL39Kotlin_Interop_unwrapKotlinObjectHolderP11objc_object + 48
    at 9   MyApp                               0x00000001027bf268 _4765656e733a736861726564_knbridge96 + 140
    at 10  libnetwork.dylib                    0x0000000182194874 AA148093-0109-348F-91F7-A7E4BC96833D + 1460340
What would be the solution to this?