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

Removing nested collections in `Mixed` for synced realms throws `realm::StaleAccessor`

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

      Expected results

      1. Given the following list with a dictionary containing a dictionary (1_map) and a list (1_list), we'd expect being able to remove the inner collections (1_map and 1_list):
      listWithMap = [
        {
          '1_map': {
            '2_string': 'map value'
          },
          '1_list': ['list value']
        }
      ];
      
      1. Given the following dictionary with a dictionary containing a dictionary (2_map) and a list (2_list), we'd expect being able to remove the inner collections (2_map and 2_list):
      mapWithMap = {
        '1_map': {
          '2_map': {
            '3_string': 'map value'
          },
          '2_list': ['list value']
        }
      };
      

      Actual Results

      Committing a transaction that removes either of the above inner collections works for local realms but throws for synced realms:

      libc++abi: terminating due to uncaught exception of type realm::StaleAccessor: This collection is no more
      

      Steps & Code to Reproduce

      For reference, these Dart tests fail.

      Core version

      Core version: 14.5.0

            Assignee:
            jorgen.edelbo@mongodb.com Jørgen Edelbo
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: