realm / realm-core

Core database component for the Realm Mobile Database SDKs

Home Page:https://realm.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fail to open realm

ionelmoisuc opened this issue · comments

SDK and version

SDK : Console app .Net Framework 4.8
Version: Realm 12.1.0

Observations

  • How frequent do the crash occur?

Sometimes

  • Does it happen in production or during dev/test?

Test/Development

  • Can the crash be reproduced by you?

No

  • Can you provide instructions for how we can reproduce it?

Crash log / stacktrace

Cannot get it.
The app simply stop without any exception
On console screen I get below message:

D:\a\realm-dotnet\realm-dotnet\wrappers\realm-core\src\realm\alloc_slab.cpp:1039 [realm-core-14.6.1] Assertion failed: header->m_top_ref[1] = 0 with (m_top_ref[1], path) = [181496, "C:\ProgramData\...\tiny.realm"]

If I open realm with Realm Studio 15.0.1 I get warning that realm is outdated and option to upgrade. After upgrade both Realm Studio and my console app can open the realm and all is great.

Steps & Code to Reproduce

➤ PM Bot commented:

Jira ticket: RCORE-2122

Hi @ionelmoisuc, thanks for reporting this. Are you able to share the Realm file with us? If so, please send it to realm-help@mongodb.com and mention this Github issue so that we can investigate further.
The assertion indicates that Realm is trying to convert from "streaming format" which is the format that .compact() or .writeTo() produces. Do you know which version of the SDK you used to produce this Realm?

[Internal note: Realm Studio 15.0.1 uses JS 12.7.0-rc.0 which uses core v14.4.1]

commented

i found this when i run ios. and it crash. when realm.open. call function realmCore.openRealmAsync