-
Type: Task
-
Resolution: Works as Designed
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
Description
I'm having an issue between react-native 0.69.4, react-native-reanimated 2.10.0 to {{11.0.0-rc.1 and }}realm-js`.
Hermes is activated because I need react-native-reanimated which is needed by react-navigation.
I've tried multiple recent versions of the realm dependency, but unless I plainly remove the dependency from package.json then re-build, the app demonstrates the following crash.
Stacktrace & log output
Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
# adb logcat D SoLoader: libreactnativejni.so not found on /data/data/com.carddecks/lib-main D SoLoader: libreactnativejni.so found on /data/app/~~rE31es5EgCweFGmj6jei5Q==/com.carddecks-H9JfbS-xVSEfJztH4_K0SA==/lib/x86_64 D SoLoader: librealm.so not found on /data/data/com.carddecks/lib-main D SoLoader: librealm.so found on /data/app/~~rE31es5EgCweFGmj6jei5Q==/com.carddecks-H9JfbS-xVSEfJztH4_K0SA==/lib/x86_64 W System.err: java.lang.UnsatisfiedLinkError: dlopen failed: library "libjsc.so" not found: needed by /data/app/~~rE31es5EgCweFGmj6jei5Q==/com.carddecks-H9JfbS-xVSEfJztH4_K0SA==/lib/x86_64/librealm.so in namespace classloader-namespace
Can you reproduce a bug?
Yes, always
Reproduction Steps
- clone repo https://github.com/vaevictis/realm-bug-poc
cd realm-bug-poc # react-native-video-player has some dependency issue with react-native-video # But I didn't remove it because I wanted this to be as close to the project that I am working on # as possible without sharing the product. npm install --legacy-peer-deps npx react-native run-android
- the app launches and instantly crashes, going back to the phone home screen
- check output of adb logcat, there will be a log pointing at Realm
- open package.json
- remove the realm dependency line
- clean-up and re-install node modules:
``rm -rf node_modules && npm install --legacy-peer-deps`` - re-run npx react-native run-android
- The app launches on the Android simulator and displays "hello world"
Version
10.20.?, 10.21.1, v11.0.0-rc.1, v11.0.0-rc.2
What SDK flavour are you using?
Local Database only
Are you using encryption?
No response
Platform OS and version(s)
- Building on Mac OS Monterey 12.5.1 on an Intel Mac Pro 16-Core Intel Xeon W
- Running on Android Simulator: Android 12, API 31, Pixel 5
- The bug is nowhere to be seen on the iOS side of things.