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

Crash when integrating removal of already removed dictionary key

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

      Expected results

      Syncing removal of a dictionary key can cause a crash if the dictionary key is already removed locally. This dotnet `CollectionMerge`-test triggers the crash.

       Process /usr/local/share/dotnet/dotnet:82213 exited with code '134': libc++abi: terminating due to uncaught exception of type realm::KeyNotFound: Cannot remove key "key1" from dictionary: key not found
      

      This should not cause a crash.

      Steps & Code to Reproduce

      See this test

      Core version

      Core version: v14.2.0-11-g687bb983e

            Assignee:
            daniel.tabacaru@mongodb.com Daniel Tabacaru
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: