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

Swallow error when reading ActivityManager#getProcessesInErrorState instead of crashing #2114

Merged
merged 8 commits into from
Jun 20, 2022

Conversation

marandaneto
Copy link
Contributor

@marandaneto marandaneto commented Jun 20, 2022

  • Swallow error when reading ActivityManager#getProcessesInErrorState instead of crashing
  • delete old files

📜 Description

💡 Motivation and Context

Fixes #1961

Also java.lang.RuntimeException:
at android.app.ActivityManager.getProcessesInErrorState
at io.sentry.android.core.ANRWatchDog.run (ANRWatchDog.java:102)

💚 How did you test it?

📝 Checklist

  • I reviewed the submitted code
  • I added tests to verify the changes
  • I updated the docs if needed
  • No breaking changes

🔮 Next steps

@marandaneto marandaneto marked this pull request as ready for review June 20, 2022 13:31
@marandaneto marandaneto requested a review from romtsn as a code owner June 20, 2022 13:31
CHANGELOG.md Show resolved Hide resolved
@marandaneto marandaneto enabled auto-merge (squash) June 20, 2022 13:43
@codecov-commenter
Copy link

codecov-commenter commented Jun 20, 2022

Codecov Report

Merging #2114 (a94ddea) into main (cedc62e) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               main    #2114   +/-   ##
=========================================
  Coverage     80.94%   80.94%           
  Complexity     3254     3254           
=========================================
  Files           231      231           
  Lines         11952    11952           
  Branches       1586     1586           
=========================================
  Hits           9674     9674           
  Misses         1698     1698           
  Partials        580      580           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cedc62e...a94ddea. Read the comment docs.

@marandaneto marandaneto merged commit b571aae into main Jun 20, 2022
@marandaneto marandaneto deleted the fix/getProcessesInErrorState branch June 20, 2022 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ANR tracker gracefully downgrade on OOM
4 participants