realm-js: Segmentation fault / segfault in react-native

Goals

Run Realm as stable as possible

Expected Results

No segfaults

Actual Results

Segfaults

OS Version: Android 10 (POT-LX1 10.0.0.166(C431E3R2P3))
Report Version: 104

Exception Type: Unknown (SIGSEGV)

Application Specific Information:
Segfault

Thread 0 Crashed:
0   libjsc.so                       0x754793ea7c        <unknown> + 503712049788
1   libjsc.so                       0x754755cffc        JSValueUnprotect
2   librealmreact.so                0x752b07e200        <unknown> + 503233110528
3   librealmreact.so                0x752b070f30        <unknown> + 503233056560
4   librealmreact.so                0x752b1c27d4        <unknown> + 503234439124
5   librealmreact.so                0x752b1c2538        <unknown> + 503234438456
6   librealmreact.so                0x752b1ef588        <unknown> + 503234622856
7   librealmreact.so                0x752b063138        <unknown> + 503232999736
8   librealmreact.so                0x752b1d6d3c        Java_io_realm_react_RealmReactModule_setupChromeDebugModeRealmJsContext
9   base.odex                       0x755523e470        <unknown> + 503939589232

Steps to Reproduce

I wish I could give you reproduction steps. I’m sharing this issue to check if others encounter this problem and if there are any pointes as to where this is coming frmo.

Code Sample

n/a

Version of Realm and Tooling

Realm: 6.0.3 React Native: 0.63.1 Device:

Key Value
Architecture arm64-v8a
Architectures [arm64v8a, armeabiv7a, armeabi]
Battery Level 100%
Boot Time 20200721T09:24:33.143Z
Brand HUAWEI
Charging True
Connection Type wifi
Family POT-LX1
Free Memory 1131655168
Free Storage 47972577280
Id 3d8412176b72ed02
Language en_NL
Low Memory False
Manufacturer HUAWEI
Memory Size 2819547136
Model POTLX1 (HUAWEIPOTL21)
Model Id HUAWEIPOT-L21
Name POT-LX1
Online True
Orientation portrait
Screen Density 3
Screen DPI 480
Screen Height Pixels 2139
Screen Resolution 2139x1080
Screen Width Pixels 1080
Simulator False
Storage Size 55652122624
Timezone Europe/Amsterdam

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 7
  • Comments: 20 (4 by maintainers)

Most upvoted comments

Hi guys.

I’ve had search a lot and maybe I found a fix. Some people say this is relating to react native screens and I found this comment/Stackoverflow and I did it and until now it works for me. I’m not experienced yet so I don’t know how RN Screens makes crashes on Realm but I put my code with those fixes in production and I didn’t get any other error yet.

I’m still analyzing Sentry and Firebase crashes logs and I will let you know if something change;

Hi,

@douglasndm, I fixed this issue!!!

The problem was because I was creating one connection in wich component, I change and create only one connection and I pass this connection for propierties a other component and… Boommmm

All its OK!!

Thanks for all!!!

I think it seems clear that I’m not the only one experiencing this problem. However, I can imagine that the maintainers of Realm can’t resolve this issue with the information currently provided.

@tgoyne @kneth @blagoev how can we give you the information you need to resolve this problem? Or do you think that this is not a realm problem?

I have the same problems with my production build.

React Native 0.63.2 Realm 6.0.4

Screenshot (191) Screenshot (192)

Hi @jdegger , i also got same issue… my react native app crash when it comes to use realm js.

  • “realm”: “^6.0.3”,
  • “react-native”: “0.63.2
Screen Shot 2020-07-31 at 11 54 47 PM **my device info:** Screen Shot 2020-07-31 at 11 59 53 PM