sentry-react-native: Multiple tracking.enable$argument_0.onUnhandled error reported
OS:
- Windows
- MacOS
- Linux
Platform:
- iOS
- Android
SDK:
-
@sentry/react-native
(>= 1.0.0) -
react-native-sentry
(<= 0.43.2)
SDK version: 5.5.0
react-native
version: 0.69.10
Are you using Expo?
- Yes
- No
Are you using sentry.io or on-premise?
- sentry.io (SaaS)
- on-premise
If you are using sentry.io, please post a link to your issue so we can take a look:
[Link to issue]
Configuration:
(@sentry/react-native
)
Sentry.init({
dsn: 'redacted',
enableAutoSessionTracking: true,
environment: config.environment,
ignoreErrors: [
// Axios throw error from createError.js, please see useFetch for error log
/Request\sfailed\swith\sstatus\scode.*/,
// react-native-fingerprint-scanner
/.*biometric.*/,
// appsflyer
/.*inapps\.appsflyer\.com.*/,
/.*com\.appsflyer\.sdk\.network.*/,
],
integrations: [
new Sentry.ReactNativeTracing({
enableUserInteractionTracing: true,
routingInstrumentation,
shouldCreateSpanForRequest: url => {
const urlRedacted = /redacted/;
const urlLocalhost = /localhost/;
return !url.match(urlRedacted) && !url.match(urlLocalhost);
},
// ... other options
}),
],
sampleRate: 0.2,
// Sessions close after app is 10 seconds in the background.
sessionTrackingIntervalMillis: 10000,
tracesSampleRate: 0.2,
});
I have following issue:
[Description]
I saw issue being logged on Sentry that related to error reporting. Not sure what caused this issues.
tracking.enable$argument_0.onUnhandled
Actual result:
[Actual result]
Expected result:
No issues related to sentry reported
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 4
- Comments: 33 (13 by maintainers)
For me it also happens on Android. 8 users with 291 events. RN 0.71.13, Sentry 5.9.1. I could not reproduce it locally.
I don’t think so. It is an example of another issue within the same release which has the correct source map
<div>As a final FYI, I also just saw that RN 0.72.7 includes the following fix:
Show correct stack frame on unhandled promise rejections on development mode. https://github.com/facebook/react-native/commit/18c9797ecc8dab220ec68aae011ddb73db17a99d
While I didn’t look at the code it could be related. Thanks again
We are also seeing this error on iOS right after Codepush installs a bundle and it causes the app to crash. We can replicate this ~50% of the time on one of our devices by a) freshly installing the app b) selecting “Install” on the Codepush prompt*. Skipping b) means that the app does not crash. I am not sure if this is caused by Sentry, but I thought I would report my findings.
The stack trace, which similar to the above seems to start here:
Failed to call into JavaScript module method ${module}.${method}(). Module exists, but the method is undefined.
This would further suggest that it’s related to Codepush. For example, Codepush invalidates all RCTBridges when it restarts (which happens when a new bundle is installed.)The one thing that doesn’t fit the above, is that I don’t see this error message anywhere. Maybe
invariant
is not creating the error in a way that is compatible with sentry. Maybe “Error: 1” comes from here?*
Our codepush config checks for updates when the app starts, and asks the user whether they want to upgrade; if you press “Install”, we install the new bundle immediately. Config:{checkFrequency: codePush.CheckFrequency.ON_APP_RESUME, installMode: codePush.InstallMode.IMMEDIATE,updateDialog: {}}
Facing the same issue on iOS. For us started coincidentally when we updated RN
0.70.9
to0.70.13
. I’m not able to reproduce the issue and can confirm it only happens onrelease
builds"react-native": "^0.71.14",
"@sentry/react-native": "^5.4.0",
@Kowaio Thank you for the information, we will keep you posted on any updates regarding this issue.
Recently I receiving from time to time not readable
SIGABRT
errors. But some error still readable.Example
Still trying to replicate this on release build (when building on my local device). Here are sentry log however:
Note: I have hermes enabled. on iOS only.
I have noticed this happening during the app startup (at-least that’s what i see in the screenshot that the sentry shows)
Noticed this on iPhone 11 , iPhone 8 Arch:arm64 iOS Version:16.6 (from the error logs that we been getting). and it is handled (not crashing the app).
I will post something in this post, in-case i find more / able to replicate
@krystofwoldrich sure, i will try to replicate once I get to the office tomorrow. Additionally, I have also updated the last comment to mention what changes we made recently before pushing (after which the above started)