We are getting following crash on various random places in android devices. Although we have changed ndk abifilters to "armeabi-v7a", "arm64-v8a"
Crashed: Thread : SIGSEGV 0x0000000000000010
#00 pc 0x723d46f748 libjsc.so
#01 pc 0x723d4bbfe8 libjsc.so
#02 pc 0x7339d68b6c libc.so
Current configuration
RN version 0.63.4
defaultConfig {
..
ndk { abiFilters "armeabi-v7a", "arm64-v8a" }
}
splits {
abi {
reset()
enable enableSeparateBuildPerCPUArchitecture
universalApk false // If true, also generate a universal APK
include "armeabi-v7a",
"x86", "arm64-v8a", "x86_64"
}
}
project.ext.react = [
entryFile : "index.js",
enableHermes: false, // clean and rebuild if changing
]
I have run into such issues in the wild with JSC only on Android RN 0.59.5, the only way forward was to upgrade JSC.
This problem is due to memory issues that occur deep in JSC and we can hardly do anything about it.
See these threads for more information:
https://github.com/facebook/react-native/issues/24261
https://github.com/facebook/react-native/pull/25426/files
But since you are already using RN version 0.63.4 the only way is to do away with JSC and enable Hermes. Hermes gives a lot of performance optimizations like byte-code, faster cold starts etc. Read more on that here.
If you want you can check the JSC version used in your app in the react-native/package.json and see if you can upgrade it further.
IF you are using webview and facing issue then put animationEnabled: false in screen where you got issue
<Stack.Screen
name="CampaygnsDetail"
component={CampaygnsDetail}
options={{
animationEnabled: false,
}}
/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With