Hello, I am experiencing runtime crash when I try ...
# multiplatform
s
Hello, I am experiencing runtime crash when I try to access any of my Kotlin Library classes from iOS The error I get is not related to my actual code… (I try to initialize some other class that is not related to the class from the crash) It seems like swift is trying to materialize my classes during runtime and fails? What should I do?
b
You might want to give a bit more detail, it's hard to see what's happening with just 1 line of a stack trace
s
That is all it shows me, Do you know a way I can get more details?
The code it crashes on is
Copy code
let config = CoViewConfig(logger: logger,
                                  context: nil,
                                  serverBaseUrl: "",
                                  extras: [:])
What does
Kotlin_initRuntimeIfNeeded
mean?
b
I'm sorry I don't really know how to fix your problem. When I run into something like this, I try to reproduce it in a unit test and run it on the iosX64 target, it makes it much easier to debug and you get a proper Kotlin stacktrace
s
Ok Thanks! I will try it in the iosX64 target to try and gain more detail
b
Let me know if you find anything, I've had this EXC_BAD_ACCESS before and fixed it by fixing an issue in my code (there was an infinite recursion) but I still don't know what triggered it