realm-java: [Realm compact] - io.realm.exceptions.RealmFileException: Unable to open a realm at path 'xxx.realm' Realm file initial open failed: Invalid streaming format cookie (0) Path:Exception backtrace:
How frequently does the bug occur?
Sometimes
Description
Hi,
I have the same issue than https://github.com/realm/realm-java/issues/4237 for the same same problem.
I have 32.000 crashes for 50 users (for 250.000 users in the month)
I don’t find any solution, can you help me please ?
Stacktrace & log output
Caused by io.realm.exceptions.RealmFileException
Unable to open a realm at path '/data/user/0/com.app.androidfr/files/config.realm': Realm file initial open failed: Invalid streaming format cookie (0) Path:Exception backtrace: <backtrace not supported on this platform> Path: /data/user/0/com.app.androidfr/files/config.realm Exception backtrace: <backtrace not supported on this platform>. (Realm file initial open failed: Invalid streaming format cookie (0) Path: /data/user/0/com.app.androidfr/files/config.realm Exception backtrace: <backtrace not supported on this platform> Path: /data/user/0/com.app.androidfr/files/config.realm Exception backtrace: <backtrace not supported on this platform>) (/data/user/0/com.app.androidfr/files/config.realm) in /tmp/realm-java/realm/realm-library/src/main/cpp/io_realm_internal_OsSharedRealm.cpp line 107
io.realm.internal.OsSharedRealm.nativeGetSharedRealm (OsSharedRealm.java)
io.realm.internal.OsSharedRealm.<init> (OsSharedRealm.java:174)
io.realm.internal.OsSharedRealm.getInstance (OsSharedRealm.java:259)
io.realm.internal.OsSharedRealm.getInstance (OsSharedRealm.java:247)
io.realm.BaseRealm.compactRealm (BaseRealm.java:814)
io.realm.Realm.compactRealm (Realm.java:1954)
com.app.helper.realm.ConfigModule$Companion.compact (ConfigModule.kt:47)
com.app.App.initRealm (App.kt:70)
com.app.App.onCreate (App.kt:33)
Can you reproduce the bug?
No
Reproduction Steps
No response
Version
10.13.0
Are you using encryption?
No
Platform OS and version(s)
Android
Build environment
Android Build Tools version: 7.6-bin.zip Gradle version: 7.4.1
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 3
- Comments: 20 (6 by maintainers)
FIY: I just downgraded my app from Realm 10.13.0 to 10.12.0 and the issues are now gone. So this is definitely bug that was introduced in 10.13.0.
@Oshuremy 10.12.0 use the same file format, so downgrading until this has been resolved is a possible workaround.