Closed hankwz closed 3 months ago
Hi @hankwz, thanks for reaching out!
Are you running the app in release mode? In debug mode React Native can catch native crashes and prevent the error from being thrown.
If so, would you have a sample app or code snippet making the app crash so we can better help troubleshoot?
Thanks a lot!
Hi @louiszawadzki This is a sample project with QR scanner I've created from the example of dd-sdk-reactnative. https://github.com/hankwz/dd-react-native-camera
After scanning a QR code for a few times, the app crashes. But Datadog doesn't seem to capture the crash. Please note that I am not able to re-create the exact same fatal error in this sample app as the one in the issue description above,
Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x727f27aee2 in tid 9938 (pool-26-thread-), pid 8232 (.eventapp.local)
Hi @hankwz, thanks for adding more details!
I am able to reproduce the issue. This is an Android NDK crash and we currently don't have an option to catch NDK crashes for React Native.
It's currently high in our backlog as we are working towards catching all crashes, I will let you know as soon as it is available!
Thanks @louiszawadzki. Please keep me posted.
Hey @hankwz! I wanted to reach out to inform you that since v2.2.0 we have made several improvements on crash reports, and NDK crashes are now correctly reported. If you haven't already, I suggest updating the SDK to the latest v2.3.3 and verify if it solves your problem.
I will close this issue for now, but feel free to reach out again if you encounter any other issues on your end!
Describe the bug
Our app implemented a QR code scanner from
react-native-vision-camera
, but we encountered a crash on Android after scanning a QR code. It showed as a Fatal error in Logcat,Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x727f27aee2 in tid 9938 (pool-26-thread-), pid 8232 (.eventapp.local)
However, when we checked Datadog RUM, we were not seeing any error being logged. We would like to know why it was not able to capture the crash.Here is the details of the log in Logcat,
Reproduction steps
SDK logs
No response
Expected behavior
Fatal error is being captured by Datadog and logged in RUM
Affected SDK versions
1.8.0
Latest working SDK version
n/a
Did you confirm if the latest SDK version fixes the bug?
No
Integration Methods
NPM
React Native Version
0.71.13
Package.json Contents
"react-native": "0.71.13", "@react-navigation/native": "6.1.6", "@react-navigation/native-stack": "6.9.12", "@react-navigation/stack": "6.3.16", "@datadog/mobile-react-native": "^1.8.0", "@datadog/mobile-react-navigation": "^1.8.0", "react-native-vision-camera": "3.6.4",
iOS Setup
No response
Android Setup
No response
Device Information
Google Pixel 3 XL Android 12.0
Other relevant information
No response