[Bugs] Unable to open a realm at path | Invalid streaming format cookie.
See original GitHub issueGoals
It is a randomly crash. Almost times, it worked nice. But some of this crash was collected by sentry and google crash report from realmjs 2.14.0.
Expected Results
Realm file open by a normal way.
Actual Results
Realm database can not open and an Exception be throwed:
com.facebook.react.common.JavascriptException: Unable to open a realm at path '/data/data/my.app/files/local_v1.realm': Invalid streaming format cookie (3472328566010356275)., stack:
upgradeSchema@1257:159
<unknown>@967:468
v@2:1496
d@2:949
o@2:435
<unknown>@965:542
v@2:1496
d@2:949
o@2:435
<unknown>@619:368
v@2:1496
d@2:949
o@2:435
<unknown>@11:81
v@2:1496
d@2:879
o@2:435
global code@2870:4
at com.facebook.react.modules.core.ExceptionsManagerModule.showOrThrowError(ExceptionsManagerModule.java
at com.facebook.react.modules.core.ExceptionsManagerModule.reportFatalException (ExceptionsManagerModule.java:38)
at java.lang.reflect.Method.invoke (Native Method)
at com.facebook.react.bridge.JavaMethodWrapper.invoke (JavaMethodWrapper.java:372)
at com.facebook.react.bridge.JavaModuleWrapper.invoke (JavaModuleWrapper.java:160)
at com.facebook.react.bridge.queue.NativeRunnable.run (Native Method)
at android.os.Handler.handleCallback (Handler.java:790)
at android.os.Handler.dispatchMessage (Handler.java:99)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage (MessageQueueThreadHandler.java:29)
at android.os.Looper.loop (Looper.java:164)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run (MessageQueueThreadImpl.java:192)
at java.lang.Thread.run (Thread.java:764)
Steps to Reproduce
Sorry, but when i tried with our devices and reproduce code. It worked fine in all times. I think it happen in some special case.
Code Sample
const currentSchema = new studifySchema().current();
const syncConfig = {
sync: {
user,
url: realmUrl(),
error: err => console.log('realm error', err),
},
path: realmDbLocation(userID),
...currentSchema,
};
studifyDB = await Realm.open(syncConfig).progress((transferred, transferable) => {
// ... handler
});
Version of Realm and Tooling
- Realm JS SDK Version: 2.16.0-rc.2
- React Native: React Native 0.57.5
- Nodejs: 8.12
- Client OS & Version: Mac OS Sierra 10.12.6
- Which debugger for React Native: React Native Debugger
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Unable to open a realm at path - Stack Overflow
I tried to open the realm file using Realm's browser app and the file does not open anymore. It has now new permissions:...
Read more >Realm: Create reactive mobile apps in a fraction of the time
Realm is installed as a Gradle plugin. Step 1: Add the class path dependency to the project level build.gradle file.
Read more >Cisco Firepower Release Notes, Version 6.6 - Open and ...
For your convenience, this document lists open and resolved bugs. Important. Bug lists are auto-generated once and are not subsequently updated.
Read more >Known Issues | Cribl Docs
Known Issues. This page lists known issues affecting Cribl Stream and/or Cribl Edge. 2022-12-13 v.4.0–4.0.2 – Default commit message missing for non-admin ...
Read more >curl.1 the man page
curl offers a busload of useful tricks like proxy support, user authentication, FTP upload, HTTP post, SSL connections, cookies, file transfer resume and ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am closing the issue as we haven’t heard back for a while. If the issue persist, notice us and we can reopen it.
@bmunkholm that’s an error from core: https://github.com/realm/realm-core/blob/8afd609420b149de044524e98328892084ccdaf4/src/realm/alloc_slab.cpp#L1181