Uploaded image for project: 'Realm .NET SDK'
  1. Realm .NET SDK
  2. RNET-1139

Compacting a Realm results in an upgrade prompt in Realm Studio

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None

      What happened?

      Hello!

      I was running some test code yesterday and noticed something unusual. It may well be an issue with Realm Studio rather than Realm, but thought I'd post here as a start.

      Basically, compacting a Realm results in Realm Studio presenting an upgrade dialog when the Realm is opened.

      Repro steps

      The steps to reproduce (in code) are...

      1. Create Realm
      2. Add\Write IRealmObject (two properties, 1 x string primary key, 1 x byte[])
      3. Close Realm
      4. Open Realm
      5. Delete IRealmObject
      6. Close Realm
      7. Compact Realm (using Realm.Compact)
      8. Open Realm in Realm Studio (a "Realm file needs an upgrade" dialog appears, showing In-place & Backup and Upgrade options)

      If you repeat the process without step 7, the Realm will open in Realm Studio without the prompt.

      Version

      Realm 12.0.0, Realm Studio 15.0.0/15.0.1

      What Atlas Services are you using?

      Local Database only

      What type of application is this?

      Unity

      Client OS and version

      Windows 10

      Code snippets

      No response

      Stacktrace of the exception/crash you're getting

      No response

      Relevant log output

      No response

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: