Uploaded image for project: 'Realm Core'
  1. Realm Core
  2. RCORE-1381

ClientReset with DiscardLocalChanges are crashing with `[5]: Wrong transactional state` on Core 13

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

      After upgrading to Core 13, Kotlin is now crashing in this test: https://github.com/realm/realm-kotlin/blob/e6b3136b0f659d406ddb51fc4d76be09f71afec7/packages/test-sync/src/androidAndroidTest/kotlin/io/realm/kotlin/test/mongodb/shared/SyncClientResetIntegrationTests.kt#L267

      It crashes with:

      [5]: Wrong transactional state (no active transaction, wrong type of transaction, or transaction already in progress) 
      

      After the Client Reset has happened and we try to freeze the SharedRealkm it crashes with the above in this line: https://github.com/realm/realm-core/blob/master/src/realm/object-store/shared_realm.cpp#L430

      This root cause seems to be this PR: https://github.com/realm/realm-core/pull/5784

      TODO:

            Assignee:
            nicola.cabiddu@mongodb.com Nicola Cabiddu
            Reporter:
            christian.melchior@mongodb.com Christian Melchior (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: