react-native: libc.so Crash report by firebase crashlytics in android app
Description
libc.so Crashed: Thread #1 SIGSEGV 0x0000000000000020
We can not reproduce crash in some device so this issue device specific or not ? Please Give me solution for this crash asap.
open this link to check device list to crash Crash device list by firebase crashlytics
> HUAWEI (86% )
- Honor 10
> Samsung (6%)
- Galaxy Note9
- Galaxy S9
- Galaxy A13 5G
- Galaxy A02s
> Xiaomi (3%)
- Redmi 6
- POCO M3
> Realme (2%)
- realme C11
> INFINIX MOBILITY LIMITED (1%)
Version
0.63.4
Output of npx react-native info
System: OS: macOS 12.1 CPU: (4) x64 Intel® Core™ i5-4278U CPU @ 2.60GHz Memory: 36.70 MB / 8.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 15.14.0 - /usr/local/bin/node Yarn: 1.22.10 - /usr/local/bin/yarn npm: 7.7.6 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.10.1 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2 Android SDK: API Levels: 23, 28, 29, 30 Build Tools: 28.0.3, 29.0.2, 30.0.3 System Images: android-29 | Android TV Intel x86 Atom, android-29 | Google APIs Intel x86 Atom, android-30 | Google APIs Intel x86 Atom Android NDK: Not Found IDEs: Android Studio: 4.1 AI-201.8743.12.41.7199119 Xcode: 12.4/12D4e - /usr/bin/xcodebuild Languages: Java: 1.8.0_282 - /usr/bin/javac Python: 2.7.18 - /usr/bin/python npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.63.4 => 0.63.4 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found
Steps to reproduce
We can check multiple devices , but we can not reproduce this crash we can not reproduce this Crash from below device list
- Redmi note 7s (OS : 10),
- Samsung Galaxy F62 (OS : 11),
- Huwai (OS : 8.1),
- OnePlus 3 (OS : 11),
- OnePlus node (OS : 11),
- Samsung m31s (OS:11),
- realme (OS:11),
Snack, code example, screenshot, or link to a repository
0 libhwui.so (Missing UUID dea0f9eed9d9ace602a4e6115205e264)
1 libhwui.so (Missing UUID dea0f9eed9d9ace602a4e6115205e264)
2 libhwui.so (Missing UUID dea0f9eed9d9ace602a4e6115205e264)
3 libhwui.so (Missing UUID dea0f9eed9d9ace602a4e6115205e264)
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 48
- Comments: 41 (1 by maintainers)
I have got rid of this issue by enabling Hermes
I also have the same issue, 200 crashes and 75% due to Samsung devices such as:
Had same problem. Hermes was always enabled so that wasn’t the issue. It was the WebView, found some solutions here https://github.com/react-native-webview/react-native-webview/issues/1915
opacity=0.99
in WebView andoverScrollMode ="never"
in ScrollView fixed the issue. Not a single crash sinceJust a small heads up: without a reproducer this can’t be fixed. Moreover, some of the posted stacktraces have references only of
libc
andlibhwui
, which are outside of our control, so I’m unsure this is even related to React Native in the first place.Similar issues on RN 0.67.3 228 crash events affecting 219 users in the last 24 hours. 86% Samsung.
I am also having the issue. Any update, please?
I have the save issue (react-native: 0.67.1) only on Android 12: Galaxy S20 FE 5G Galaxy S21 5G Galaxy S21 Ultra 5G …
I can confirm that I too got the same crash report. Further investigating, I found that this could be a recurring issue on Samsung devices [1][2][3].
Here’s a similar thread on this issue.
Furthermore, in my case, this issue was seen on A12 Samsung devices when the app was launched with wifi on, and then it crashed when the wifi was turned off. I found a thread on this exact issue here
In crashlytics most report 40mb to 150mb free RAM.
I also met this issues. Is there any solution for this?
Add compileOptions with JavaVersion 1.8 like this under your app level build.gradle android block:
This fixed my issue in RN 0.71
We’re also facing the same issue with Samsung immediately after the first screen in the app gets mounted Device: Galaxy A52 5G
Same issue for me, RN 0.66 Devices are more diverse, data coming from around 70 devices:
In our case we were having this same crash on Android with error log:
libc: Fatal signal 11 (SIGSEGV) ...
We don’t have hermes enabled.We found out that this was due to a compatibility issues of two dependencies:
react-native-reanimated v2
+realm
as stated in this thread: https://github.com/realm/realm-js/issues/3837 Realm doesn’t have yet support for hermes, they are currently working on it.We have decided to remove realm from the project and we are not experiencing this crash anymore.
Is there any way to reproduce this issue in development mode? This issue only exists in production mode.
same issue 😕 any update?