-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
[iOS] Incorrect watchdog termination detection #3860
Comments
Thanks for raising. Can you disable the feature for now while it's investigated? To unblock yourself I mean.
How are you causing this crash exactly? This feature is based on some heuristics, as described on: https://docs.sentry.io/platforms/apple/guides/ios/configuration/watchdog-terminations/
As the docs say it checks if the app didn't crash. But this is done at the native layer, so a crash caused by .NET might not be detected.
Right, I should have read the end of the ticket before writing this :) Sounds like .NET specific thing that affects that in any regard, so I suggest we just disable this feature by default until we can figure out details |
This was also something raised in the Unity repo, we should just disable this integration: getsentry/sentry-unity#1839 |
Package
Sentry
.NET Flavor
.NET
.NET Version
8.0.404
OS
iOS
SDK Version
4.13.0
Self-Hosted Sentry Version
No response
Steps to Reproduce
mechanism=watchdog_termination
Unfortunately, we can't find 100% reproduction steps for this issue, but it seems to be happening only for managed crashes
Expected Result
Watchdog Termination events are not reported for the sessions, which had ended with a crash
Actual Result
Some Watchdog Termination events seems to duplicate crash reports:
Here is the example of such duplicated reports in raw json:
According to the sentry-cocoa implementation, in case if last session has a crash - it should not be reported as watchdog-terminated:
https://github.com/getsentry/sentry-cocoa/blob/0b53d9c1a9e75af96895ffa8b37c28a42094062d/Sources/Sentry/SentryWatchdogTerminationLogic.m#L86-L88
The only correlation in such issues we see is that they only happen for managed crashes (no native crash is duplicated), but definitely not every managed crash results in such a duplication. Is it possible that in some cases sentry-dotnet does not notify sentry-cocoa about session being terminated with a crash?
The text was updated successfully, but these errors were encountered: