Closed hassanbazzi closed 2 years ago
Hi @hassanbazzi .. we just released 10.20.0-beta.3. Can I have you upgrade and verify that you're still seeing this?
Same error on realm@10.20.0-beta.3. This only happens on iOS.
I tried (but failed) to reproduce this. I've setup an app with the latest hermes
release of Realm JS and React Native Reanimated 2.5.0: https://github.com/kraenhansen/reanimated-realm-test .. I tried swiping out the app, hot reloading, etc. I can't get it to crash.
Any help / PR bringing that repo to a crashing state would be greatly appreciated!
@kraenhansen Did you do this with a release build? I've only been able to replicate on release build.
I'll try my best to replicate in an isolated way today.
Yep. My repo uses Realm JS 10.20.0-beta.3.
Thing is, it's tough to replicate in dev. I can only replicate in production in release mode. Maybe try and use my same package.json and pod file?
@hassanbazzi
Did you do this with a release build?
Yep. I tried this in both release and debug build configurations.
We're releasing beta.3 to our users this morning. I'll monitor and let you know :(
Some notes from our experience. It only happnes on IOS production. There is no way to reproduce this on development. Also Crash happens randomly. 1 out of 10 times it works without any issues.
^^ We've seen the same. I basically just close and reopen the app a bunch of times and then it happens. :/
@hassanbazzi & @DioSerdar are you calling Realm JS APIs from inside Reanimated worklets?
atm, we're only using re-animated for entrance and exit animations, nothing else. Not using worklets yet.
We launched the new version with beta.3, and already having 23 users with the crash.
@hassanbazzi I'm really sorry to hear that. I'd love to get to the bottom of this - can you help us reproduce this? Perhaps by altering the repo I linked above or provide concrete steps I need to take with that app to get to a crash.
@kraenhansen I am not even sure that this is caused by the re-animated. We have it as a dependency on the project but it's only used by react-navigation.
@kraenhansen any update on this?
@DioSerdar no update, since we're still missing a reproduction. Unfortunately we can't make progress before we can reproduce the crash. See the repo above which tries but doesn't exhibit the crash.
Just in case anyone else has this problem. We have solved our crash problem by upgrading our react-navigation from 5.x to 6.x and removed any references to re-animated from our dependencies.
@DioSerdar thank you so much. We have upgraded navigation v5 to v6 and it is working ☺
@enescang Do you also have reanimated installed? And which version?
As you can see, our react navigation is at v6 already
@DioSerdar Thank you for sharing
@hassanbazzi no we uninstalled react-native-reanimated. No longer needed as we upgrade the version
Although I am not using realm in my project, I am posting it here since I feel it is something related to react-native-reanimated v2
, react-native v0.67.x
and Macs with M1 chips
(Not sure though, still figuring out the common grounds for this issue).
Even I am facing the same issue with archived builds i.e app crashes on all the iOS device running on < iOS 15.x, runs perfectly fine on iOS 15.0 devices. It crashes as soon as app is launched, seems like internally the program excecution control is not even reaching the JS bundle. I am using react-native v0.67.2
, react-navigation v6
, react-native-reanimated v2
. I am not using realm. I only get iPhone ReportCrash[1858] <Notice>: Formulating report for corpse[1857] [AppName]
log when I try to run it on browser stack devices.
Any help is highly appreciated. Thanks in advance.
Updating react-native-reanimated to the latest version "2.8.0" solved this issue for us.
We used previously: Realm: "10.20.0-beta.5" Navigation: "6.*" react-native-reanimated: "2.5.0"
After the update, we could no longer detect any crashes.
@Fridge-o which version of the Realm are you using?
@rkz98 The same version as mentioned above
"realm": "10.20.0-beta.5"
We only updated react-native-reanimated to the latest version
Please upgrade to version 11.0.0 or later
How frequently does the bug occur?
Sometimes
Description
Hey!
I'm seeing tons of crashes coming in from our users ever since we added reanimated v2 to our project. Everything was going perfectly with 10.20.0-beta.2. But then the crashes started coming in when we added Reanimated v2.
We have no idea why it's happening but we get:
Fatal Exception: RCTFatalException: Unhandled JS Exception: Error: Missing Realm constructor. Did you run "pod install"?
through firebase console.Stacktrace & log output
Can you reproduce the bug?
Yes, sometimes
Reproduction Steps
This usually never happens on fresh install. It only happens if users quit the app and then relaunch.
Version
10.20.0-beta.2
What SDK flavour are you using?
Local Database only
Are you using encryption?
No, not using encryption
Platform OS and version(s)
iOS
Build environment
PodFile:
Cocoapods version
1.11.2