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

Kotlin SDK does not run with R8/Proguard enabled

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Local

      SDK and version

      SDK : Kotlin Realm
      Version: 1.0.1 (library base)

      Observations

      • How frequent do the crash occur? - Reproducibly
      • Does it happen in production or during dev/test? Test
      • Can the crash be reproduced by you? Yes
      • Can you provide instructions for how we can reproduce it? Build app with R8/Proguard minify enabled

      Crash log / stacktrace

      2022-07-26 22:05:30.770 E/REALM: /Users/realm/workspace-realm-kotlin/releases/packages/cinterop/src/jvm/jni/java_class.cpp:49: [realm-core-12.1.0] Assertion failed: cls with (class_name) = ["io/realm/kotlin/internal/interop/sync/NetworkTransport"]
      <backtrace not supported on this platform>!!! IMPORTANT: Please report this at https://github.com/realm/realm-core/issues/new/choose

      Steps & Code to Reproduce

      Build app using Realm with R8/Proguard minify enabled. Attempt to open realm crashes:

      private val config = RealmConfiguration.Builder(setOf(MessageObject::class, MediaObject::class, ResponseObject::class, ContactObject::class)).build()
      val realm = Realm.open(config)

            Assignee:
            claus.rorbech@mongodb.com Claus Rørbech (Inactive)
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: