question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

/lib/arm64/librealmreact.so Crashes on app launch

See original GitHub issue

Goals

Expected Results

Actual Results

[18:48] Jaideep Singh (Contractor)

Build fingerprint: ‘samsung/hero2ltexx/hero2lte:8.0.0/R16NW/G935FXXU2ERGE:user/release-keys’

Revision: ‘9’

ABI: ‘arm64’

pid: 21491, tid: 21588, name: mqt_js >>> <<<

signal 7 (SIGBUS), code 1 (BUS_ADRALN), fault addr 0x37bf3a90253f5

x0 0000000000000000 x1 0000000000000000 x2 0000000000000005 x3 a9037bf3a90253f5

x4 0000000000000040 x5 0000007329905788 x6 0000000000ffffff x7 ffffffffffffffff

x8 00000000000000e2 x9 a0e2bc1e8f6365e0 x10 0000000000000001 x11 0000000000000000

x12 0000007337fbb2c8 x13 0000000000000050 x14 000000000000000d x15 aaaaaaaaaaaaaaab

x16 000000732a38c710 x17 000000733a046cb0 x18 0000007329905a84 x19 0000007337e6f690

x20 0000007337e6f690 x21 00000073299057b8 x22 0000007329905828 x23 0000007329907588x24 000000733baecbc8 x25 0000007329907588 x26 0000000000000000 x27 0000000000000000

x28 0000000000000001 x29 0000007329905660 x30 0000007329c65e84

sp 0000007329905600 pc 00037bf3a90253f5 pstate 0000000060000000

backtrace:

#00 pc 00037bf3a90253f5 <unknown>

#01 pc 0000000000258e80 /lib/arm64/librealmreact.so

#02 pc 0000000000022414 /lib/arm64/libjscexecutor.so (_ZN8facebook3jsc10JSCRuntimeC2Ev+28)

#03 pc 00000000000254d0 /lib/arm64/libjscexecutor.so (_ZN8facebook3jsc14makeJSCRuntimeEv+28)

#04 pc 0000000000018b58 /lib/arm64/libjscexecutor.so

#05 pc 00000000000a4468 /lib/arm64/libreactnativejni.so (_ZN8facebook5react16NativeToJsBridgeC2EPNS0_17JSExecutorFactoryENSt6__ndk110shared_ptrINS0_14ModuleRegistryEEENS5_INS0_18MessageQueueThreadEEENS5_INS0_16InstanceCallbackEEE+252)

#06 pc 000000000009c0e0 /lib/arm64/libreactnativejni.so

#07 pc 0000000000065d7c ==/lib/arm64/libreactnativejni.so

#08 pc 0000000000063cac /lib/arm64/libreactnativejni.so

#09 pc 0000000000059288 /lib/arm64/libreactnativejni.so (_ZN8facebook3jni6detail13MethodWrapperIMNS_5react15JNativeRunnableEFvvEXadL_ZNS4_3runEvEES4_vJEE8dispatchENS0_9alias_refIPNS1_8JTypeForINS0_11HybridClassIS4_NS3_8RunnableEE8JavaPartESB_vE11_javaobjectEEE+32)

#10 pc 0000000000059204 /lib/arm64/libreactnativejni.so (_ZN8facebook3jni6detail15FunctionWrapperIPFvNS0_9alias_refIPNS1_8JTypeForINS0_11HybridClassINS_5react15JNativeRunnableENS6_8RunnableEE8JavaPartES8_vE11_javaobjectEEEEXadL_ZNS1_13MethodWrapperIMS7_FvvEXadL_ZNS7_3runEvEES7_vJEE8dispatchESE_EESD_vJEE4callEP7_JNIEnvP8_jobject+56) #11 pc 000000000007a63c /oat/arm64/base.odex (offset 0x75000)

Steps to Reproduce

Launching the app

Code Sample

defaultConfig { applicationId “package-name” minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion versionCode 137 versionName “8.2” multiDexEnabled true ndk { abiFilters ‘armeabi-v7a’,‘arm64-v8a’,‘x86’,‘x86_64’ // Added } vectorDrawables.useSupportLibrary = true resValue “string”, “build_config_package”, “package-name” if (BUILD_FOR_APPCENTER==‘false’) { signingConfig signingConfigs.release } }

Version of Realm and Tooling

  • Realm JS SDK Version: 2.28.0
  • Node or React Native: ^0.59.4
  • Client OS & Version: Android 8
  • Which debugger for React Native: ?/None

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:52 (13 by maintainers)

github_iconTop GitHub Comments

11reactions
manithincommented, Jun 28, 2019

@manithin Does adding this to your proguard file fix the issue? -keep class io.realm.react.**

@kneth yes this did work. Just checking, is it mentioned somewhere in the documentation?

7reactions
knethcommented, Jun 3, 2019

I have released the fix as v2.28.1. React Native folks, please upgrade soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sudden crash on launch from all TestFlight builds
The app runs fine under Xcode on an iPad connected by wire to my MacBook. When we publish the app in TestFlight, it...
Read more >
Why do my apps keep crashing on Android, How to fix it
Go to Settings -> About phone and tap on 'Backup and Reset'. This will delete all the data on your device, so make...
Read more >
What to Do If Apps Keep Crashing on an Android Device
If an app freezes or crashes repeatedly when you try to use it, the first thing you should try is to force it...
Read more >
How to Fix Crashing Apps on an iPhone or Android?
I am a developer of iPhone/Android and my app keeps crashing on users phones… ... To do so, take a look at the...
Read more >
Why Do My Apps Keep Crashing on Android? - Avast
The most reliable way to fix crashing apps permanently is a full factory reset. This will return your Android phone to its factory...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found