-
-
Notifications
You must be signed in to change notification settings - Fork 337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple tracking.enable$argument_0.onUnhandled error reported #3185
Comments
Hi, |
@krystofwoldrich @elmotan95 "@sentry/react-native": "^5.4.1", |
@isinuyk Thank you for the information, are you able to reproduce it locally, from the message I assume not, but I want to double-check? |
No. I'm not able to reproduce it in debug mode. Only happens on the release version of the app; |
Nope. Data form breadcrumbs does not provide any relevant information (it's only API call with status 200 and screen name). And it does not happened on development apps. |
@isinuyk Since you mentioned it's iOS only, could it be incorrect source maps causing the issue, are your other iOS JS errors source mapped correctly? |
I don't think so. It is an example of another issue within the same release which has the correct source map |
+1 Seeing this on This seems to have somehow started after I enabled one of the options here:
on release build. It is also only happening on iOS devices as mentioned in other comments cc @abandisch just tagging you here |
@NiharR27 Thank you for the information, would you be able to narrow it down? Or share a minimal reproducible example? |
@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) |
Still trying to replicate this on release build (when building on my local device). 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 |
@isinuyk This stack trace looks correct since there was no stack trace with the original error Sentry captures synthetical error at the time to show the current stack trace. |
Same problem, 4 users, 5 events
|
@ts-ign0re Thanks for the info, were you able to reproduce it locally? Does it happen on both iOS and Android? Are other errors symbolicated correctly? |
For me it also happens on Android. |
@Kowaio Thank you for the information, we will keep you posted on any updates regarding this issue. |
@lucasftcruz The stack trace you shared looks correct, you can ignore the first frame pointing to Sentry, that's present because we report the unhandled Promise rejection. |
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:
The one thing that doesn't fit the above, is that I don't see this error message anywhere. Maybe
|
@savv Thank you for the detailed findings. |
reactnativeerrorhandlers.ts seems to polyfill Promises, in order to catch unhandled promise rejections, but I wasn't able to trigger that code. When does onUnhandled ever execute? How can I get it to? |
The The SDK reports that there was unhandled rejected promise, but the top of the stack should exclude the Sentry frame. |
I see, so as |
@savv Thank you, we'll investigate it. |
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. While I didn't look at the code it could be related. Thanks again |
@savv were you able to get to the bottom of the |
Reopening issue as users are getting these reports in the newest versions of the SDK. The issue does not seem to be caused by the SDK, it is simply being reported by it. @krystofwoldrich can you please confirm it from the Mobile SDK team side? |
If you encounter this problem, try to find the following line in your code or in the code of the libraries you use
my case was due to the similar use of Promise, which caused onUnhandled This is not a Sentry bug, however Sentry does not handle Promise correctly and does not indicate in which line the unhandled promise occurred |
@rodolfoBee I can confirm, this is not an issue caused by the SDK. The SDK just captures a Promise rejection without any additional information, without a stack trace attached. This can happen for example when |
OS:
Platform:
SDK:
@sentry/react-native
(>= 1.0.0)react-native-sentry
(<= 0.43.2)SDK version: 5.5.0
react-native
version: 0.69.10Are you using Expo?
Are you using sentry.io or 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
)I have following issue:
[Description]
I saw issue being logged on Sentry that related to error reporting. Not sure what caused this issues.
Actual result:
[Actual result]
Expected result:
No issues related to sentry reported
The text was updated successfully, but these errors were encountered: