Uploaded image for project: 'Realm JavaScript SDK'
  1. Realm JavaScript SDK
  2. RJS-768

Unable to write to realm in app group version 6.1.0 only

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: None
    • Component/s: None

      Goals

      Create a new realm object in a realm stored in an app group. It worked for RealmJS 6.0.3, but it no longer works for Realm JS 6.1.0. I believe this may be caused by the following update in 6.1.0:

      > Holding a shared lock while being suspended on iOS would cause the app to be terminated. (6671)(realm/realm-cocoa#6671)

      Expected Results

      The object should be added no issue.

      Actual Results

      I get the error: Continuous transaction through SharedGroup object without history information.
      Full error log

      Steps to Reproduce

      1. Create a Realm in a shared app group.
      2. Try to create a new object:

      Code Sample

      Can't provide the source of the code, but any creation in a shared app group should have similar results.

      realm.write(() => {
            realm.create('MyItem', item, UpdateMode.All);
      });
      

      Version of Realm and Tooling

      • Realm JS SDK Version: 6.1.0
      • Node or React Native: 0.63.3
      • Client OS & Version: iOS 13.4 iPhone 11 Pro Simulator
      • Which debugger for React Native: None

            Assignee:
            thomas.goyne@mongodb.com Thomas Goyne
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: