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 5 years ago
- Reactions: 48
- Comments: 57 (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:
Just a small heads up: without a reproducer this can’t be fixed. Moreover, some of the posted stacktraces have references only of
libcandlibhwui, which are outside of our control, so I’m unsure this is even related to React Native in the first place.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.99in WebView andoverScrollMode ="never"in ScrollView fixed the issue. Not a single crash sinceSimilar 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?
having same issue in react-native@0.74.3 and expo@51.0.18 with hermes enabled
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
This error is too serious and there is still no solution? With this error we have been warned by Google and listed as a poor quality application.
I do not know why this issue is closed. This is clearly an issue.
Same issue for me, RN 0.66 Devices are more diverse, data coming from around 70 devices:
@serjek I am using version 0.70 but v8 integration crashes after opening the app. I am trying to upgrade to 0.73 After upgrade if error still appear i will try v8 integration
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+realmas 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.
Well in that case you shouldn’t be observing
libjsc.sorelated crashes, because V8 aims to replace this lib entirely. If that is still the case then perhaps JSC is still somehow crawling into your package - something worth investigation.@serjek sure, because integration is simple
Guys, give a shot to v8. I’ve been using it ever since I posted the comment above and quite happy with current crash rate being under 1%. Besides the more users will switch the more prominent it will become for RN maintainers.
I also got the issue with react native
0.68.7and hermes is enabledSame issue with react-native “0.73.4”
We still have this issue with
hermesEnabled=trueIs there any way to reproduce this issue in development mode? This issue only exists in production mode.
same issue 😕 any update?