Reloading Via React Native Debug Menu Causes Crash when Realm is installed
See original GitHub issueDescription
Looks like another incarnation of https://github.com/software-mansion/react-native-reanimated/issues/1285
Was happening on my project when tried to add reanimated 2 (just plainly calling <Animated.View />
). I’ve tracked it down to a possible conflict with another dependancy: realmjs.
Below are the steps to reproduce it from reanimated 2 playground
Screenshots
Steps To Reproduce
- checkout reanimated 2 playground
- upgrade react native to 0.63.3
- add realm:
yarn add realm
npx pod-install
- run in simulator and try to refresh with cmd+R
Package versions
- React: 16.13.1
- React Native: 0.63.3
- React Native Reanimated: 2.0.0-alpha.8
- NodeJS: v14.9.0
Issue Analytics
- State:
- Created 3 years ago
- Reactions:9
- Comments:18 (1 by maintainers)
Top Results From Across the Web
Realm: create causing a crash within android (react-native)
Please perform some troubleshooting by stepping through your code, line by line to determine which line is crashing and update the question with ......
Read more >Reloading Via React Native Debug Menu Causes Crash when ...
Reloading Via React Native Debug Menu Causes Crash when Realm is installed.
Read more >Realm: Create reactive mobile apps in a fraction of the time
Run react-native run-ios to rebuild the whole thing. Chrome Debugging is slow. We are aware of this. The reason for this is that...
Read more >Using Hermes - React Native
Edit your android/app/gradle.properties file and make sure hermesEnabled is true: # Use this property to enable or disable the Hermes JS engine.
Read more >In iOS 15, when the app is restarted, it immediately crashes.
After the iOS 15 update, the following process causes the app to die. ... issue in an iOS react-native app after iOS 15...
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
We’re in the process of removing realm-js, mainly due to lack of Hermes support and this is another…
These lines are causing the crash:
I guess both modules are tinkering somewhat with JSI and are causing this problem.
I’ve added the following lines to
Podfile
to prevent the app from crashing upon reload (in our case temporarily). Should be used with care though! As obviously something is going wrong on either Realm or Reanimated v2’s side and this error hints towards a memory issue/leak. TheNDEBUG
flag within theRealm-jsi
module is only used for reference counting.Have the same problem, is there any workaround or planned fix for this? Thanks.