Uploaded image for project: 'Realm Kotlin'
  1. Realm Kotlin
  2. RKOTLIN-752

Native crash when run on iOS

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None

      As iOS is still not using the shared code test part wasn't maintained and now as we are moving forward everything got updated Realm from 1.0.0 to 1.6.0 and Kotlin from 1.7.10 to 1.8.0.
      On old versions everything runs fine with no issues, but not when running on Realm 1.1.0+ (went through try and fail to find when it stopped working) which means it's probably connected to new memory management and totally makes sense looking on assembly crash. Unfortunately I couldn't reproduce the issue on sample project so I have to roughly describe where it's crashing.
      It basically happens on app launch as it's data from very first request for app settings stored into Realm. Part is launched in Repo init part injected through Koin and coroutine is launched with this internal scope CoroutineScope(SupervisorJob() + Dispatchers.Default). When I do copyToRealm it's crashes with stacktrace shown on screenshots shared in comments. I've tried using some fake object thinking maybe it's Ktor doing something to coroutine state but still no.

      Could you share what is happening in crashed part so I could find what is causing it?

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: