-
Notifications
You must be signed in to change notification settings - Fork 576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Database has an unsupported version (9) and cannot be upgraded, js engine: hermes, #6899
Comments
➤ PM Bot commented: Jira ticket: RJS-2906 |
I am also facing this issue on iOS only. |
@kraenhansen is there anyway to catch this error and do something with the database? |
This version of the database file format (9) is 4 years old (from Realm Core v5). Beginning with RealmCore v14.0.0, you can only upgrade from version 10 and upwards. This means you'd have to pick a version of Realm JS using a Realm Core version lower than v14 to first upgrade the client and then upgrade Realm JS to a recent version in their app. Sorry for the inconvenience this may cause, but it's an important goal of ours to keep the binary size of Realm Core low and removing migration logic to upgrade database files from ancient file format versions is one way to keep the size of the library low. |
@kraenhansen Thank you for the reply. |
There is no requirement to regularly update.
Thanks 🙂 It's been a blast.
Since the project will EOL and not longer receive active maintenance, in less than a year from now, that's probably a wise choice 👍
No worries: You're entirely entitled to your opinion and thanks for calling this out. We need feedback to improve (both positive and negative). |
@kraenhansen As far as I know there is no way to choose which binary to serve your users when they upgrade, it's all controlled by Apple and Google (I am talking about apps releasing on the app stores). They will always be served the last compatible versions (as in, compatible with their Android version). |
How frequently does the bug occur?
Sometimes
Description
Some users are crashing with the Error: Database has an unsupported version (9) and cannot be upgraded, js engine: hermes message.
Does that mean that if a user has an old version of my app because they disabled automatic updates, then they are s.o.l?
Stacktrace & log output
Fatal Exception: com.facebook.react.common.JavascriptException: Error: Database has an unsupported version (9) and cannot be upgraded, js engine: hermes, stack: getSharedRealm@1:866814 Realm@1:1080086 anonymous@1:841222 loadModuleImplementation@1:80600 guardedLoadModule@1:80124 metroRequire@1:79754 anonymous@1:723470 loadModuleImplementation@1:80600 guardedLoadModule@1:80124 metroRequire@1:79754 anonymous@1:701659 loadModuleImplementation@1:80600 guardedLoadModule@1:80124 metroRequire@1:79754 anonymous@1:86644 loadModuleImplementation@1:80600 guardedLoadModule@1:80081 metroRequire@1:79754 global@1:79282 at com.facebook.react.modules.core.ExceptionsManagerModule.reportException(ExceptionsManagerModule.java:65) at java.lang.reflect.Method.invoke(Method.java) at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372) at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:146) at com.facebook.jni.NativeRunnable.run(NativeRunnable.java) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27) at android.os.Looper.loop(Looper.java:246) at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:233) at java.lang.Thread.run(Thread.java:923)
Can you reproduce the bug?
No
Reproduction Steps
No response
Version
12.13.1
What services are you using?
Local Database only
Are you using encryption?
No
Platform OS and version(s)
Android, rn 74.5
Build environment
Which debugger for React Native: ..
Cocoapods version
No response
The text was updated successfully, but these errors were encountered: