-
-
Notifications
You must be signed in to change notification settings - Fork 316
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
App hang leads to falsely reported OOM #1645
Comments
We could use a |
We have some code that could help us here from the private Specto GH repository. Worth noting that this didn't run in production yet. |
This is related to #1052. |
Please also update the docs added with this PR. |
Ideally, we need to add a feature for app hangs when fixing this bug. Not reporting app hangs as OOMs without an app hang feature is even worse, in my opinion. If you have a spike in app hangs now, you at least get OOMs. Otherwise, you wouldn't get any data in Sentry. |
Does sentry performance monitoring catch app hangs? |
@owjsub These hangs reported as OOM happened when the app is killed. OOM detection happens when the app start: "Why did the app not close gracefully in the last run"? If the SDK believes it was due to OOM, it raises the event. But sometimes the app was hanging and got killed (for example, by the user swiping up). So it's still an issue, and not really detected by the performance product since the app was killed and the transaction that was happening was lost. One potential feature is to store ongoing transactions to disk. And in the event of a crash, (due to OOM, hang, or anything else) we can capture that transaction to get an idea of what was happening. At least know what screen was loaded, and what span was open. Persisting transactions might add in overhead so we need to investigate this further. |
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you label it "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
As suggested by @souredoutlook, please add an opt-out such as |
The OOM logic falsely detected ANRs as OOMs. This is fixed now by adding a tracker for ANRs, which doesn't report ANR events to Sentry yet. Fixes GH-1645
The OOM logic falsely detected ANRs as OOMs. This is fixed now by adding a tracker for ANRs, which doesn't report ANR events to Sentry yet. Fixes GH-1645 Co-authored-by: Bruno Garcia <bruno@brunogarcia.com>
Platform
iOS
Installed
CocoaPods
Version
7.9.0
Steps to Reproduce
Expected Result
No OOM, but instead an app hang, which the SDK doesn't support at the moment.
Actual Result
The SDK falsely reports an OOM.
The text was updated successfully, but these errors were encountered: