realm-dotnet icon indicating copy to clipboard operation
realm-dotnet copied to clipboard

Compacting a Realm results in an upgrade prompt in Realm Studio

Open peachypixels opened this issue 1 year ago • 1 comments

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

peachypixels avatar Apr 23 '24 14:04 peachypixels

➤ PM Bot commented:

Jira ticket: RNET-1139

sync-by-unito[bot] avatar Apr 23 '24 14:04 sync-by-unito[bot]

I think this is also caused by https://github.com/realm/realm-core/issues/7747 See #3612

markusroessler avatar May 29 '24 17:05 markusroessler