Skip to content
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

WatchdogTermination: The OS watchdog terminated your app, possibly because it overused RAM. #20989

Open
sentry-io bot opened this issue Jul 3, 2023 · 11 comments

Comments

@staskus
Copy link
Contributor

staskus commented Jul 4, 2023

  • The issue appears from 22.3 because Sentry started reporting it this way from version 8.0.0 which we updated for 22.3
  • The most common reason is Out Of Memory issue. The cases where the app gets killed after having the main thread blocked for a prolonged time are reported together with App Hangs
  • Log inspection suggests that there can be multiple memory related issue causing this

We should approach this issue in multiple ways:

@staskus
Copy link
Contributor

staskus commented Jul 5, 2023

As this is a number one issue by occurrence on Sentry, setting it as [Pri] High. However, given this issue could be an umbrella for multiple memory leaks, it's unrealistic to expect to solve it in one go, rather we should aim for significant decrease of number of these issues.

@staskus
Copy link
Contributor

staskus commented Jul 5, 2023

I created a subtask:

Memory issues could be approached in multiple ways. I think at least this one is easy to reproduce and confirm, also it could address some fundamental issues with memory management that happens when the main view of the app appears, without going deeper into other features.

@sentry-io
Copy link
Author

sentry-io bot commented Jul 12, 2023

Sentry issue: WORDPRESS-IOS-3Q99

@kean
Copy link
Contributor

kean commented Aug 7, 2023

There are a couple of issues with WatchdogTermination events in Sentry:

@guarani
Copy link
Contributor

guarani commented Aug 18, 2023

As this is a number one issue by occurrence on Sentry, setting it as [Pri] High. However, given this issue could be an umbrella for multiple memory leaks, it's unrealistic to expect to solve it in one go, rather we should aim for significant decrease of number of these issues.

I agree with this and find it surprising that Sentry doesn't report any WatchdogTermination events in the 23.0 beta (which has been out for two weeks. I ruled out the possibility of Sentry reporting this into a different Sentry issue (as it sometimes creates duplicates), but that doesn't appear to be the case. JETPACK-IOS-1NA is the only issue for WatchdogTermination.

One explanation could be that 23.0's beta userbase is too small for this issue to occur, so we'll have to wait another week to see if WatchdogTermination events occur (we can expect some).

@guarani
Copy link
Contributor

guarani commented Aug 22, 2023

Update: There are four events in the 23.0 and we're two days into the release. There were 126 events two days into the 22.9, so this is encouraging. However, Sentry is dropping some events due to quota limits, so that could affect this.

@dvdchr
Copy link
Contributor

dvdchr commented Feb 22, 2024

Update: WatchdogTermination is still one of the top 5 crashes, but most crash occurrences happen within versions 23.6 to 24.1. Currently, there are 5 events for 24.2, about three days after release.

Copy link
Author

sentry-io bot commented Apr 14, 2024

Sentry Issue: JETPACK-IOS-1NA

@dangermattic
Copy link
Collaborator

dangermattic commented Jul 3, 2024

Thanks for reporting! 👍

@kean
Copy link
Contributor

kean commented Sep 13, 2024

Lowering a priority because there is now much fewer of these types of crashes and they affect a small portion of the users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants