```Crashed: org.reactivecocoa.ReactiveObjC.RACSche...
# kotlin-native
a
Copy code
Crashed: org.reactivecocoa.ReactiveObjC.RACScheduler.mainThreadScheduler
0  Deedster                       0x1035e88ec (anonymous namespace)::garbageCollect(MemoryState*, bool) + 4314450156
1  Deedster                       0x1035f8b40 ObjHeader* (anonymous namespace)::allocInstance<true>(TypeInfo const*, ObjHeader**) + 4314516288
2  Deedster                       0x1030749c0 kfun:kotlinx.serialization.json.JsonObject.$toString$lambda-0$FUNCTION_REFERENCE$380.invoke#internal + 4308732352
3  Flutter                        0x104c5dbcc (Missing)
4  Deedster                       0x1033bd8c8 kfun:se.sdg12.deedster.flutter.channel.BlockFunctionImpl351.$<bridge-UNNN>invoke(kotlin.Any?)#internal + 4312176840
5  Deedster                       0x102dd6230 partial apply for closure #1 in RacObservableMethodsIos.subscribe(receiver:next:error:completed:) + 262 (RxObservable+Utils.swift:262)
6  Deedster                       0x102dd1e44 thunk for @escaping @callee_guaranteed (@guaranteed Swift.AnyObject?) -> () + 4305968708 (<compiler-generated>:4305968708)
7  ReactiveObjC                   0x10594c500 -[RACSubscriber sendNext:] + 120
I found a few closed issues on the Kotlin Native github referring to
garbageCollect
but they were closed as having been fixed / not reproducible in Kotlin 1.3.61, but that is already the version we are running.
Are you using Ktor at all?
@andreasmattsson
a
Not for making actual network calls. I've added the library because I intended to use it for common network stuff, but so far I only use utility functions for URL building etc, and the actual network calls are all made on the native side
r
Then maybe it comes from
kotlinx.serialization
@andreasmattsson are you using Ktor 1.3.1 and did these errors occur when you were using Ktor 1.3.0?
I have this problem but it appeared only with Ktor 1.3.1 (or a dependency that changed between 1.3.0 and 1.3.1)
a
No, we're actually using Ktor 1.3.0 already. But thanks for the suggestion.