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

Assertion failure in shared realm ctor

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

      We have a .NET test that seems to trigger this assertion failure: https://github.com/realm/realm-core/pull/6230/files#diff-55d86000317cc91bb15c4dfb558cd47af4e8dadecbfc7f5eef4524532a054fcbR85

      The test is fairly straightforward:

      Unable to find source-code formatter for language: csharp. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      // Open a read-write realm to create the file
      var config = new RealmConfiguration(Guid.NewGuid().ToString());
      var realm = Realm.GetInstance(config);
      realm.Dispose();
      
      config.IsReadOnly = true;
      
      // Open the same realm as readonly
      realm = Realm.GetInstance(config);
      Realm frozenRealm = null;
      
      // Freeze the readonly realm
      Assert.DoesNotThrow(() => frozenRealm = realm.Freeze());
      frozenRealm.Dispose();
      

            Assignee:
            thomas.goyne@mongodb.com Thomas Goyne
            Reporter:
            nikola.irinchev@mongodb.com Nikola Irinchev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: