Title: Handle ApplicationExitInfo.REASON_MEMORY_LIMITER in MemoryLimiterIntegration · Issue #6134 · getsentry/sentry-java · GitHub
Open Graph Title: Handle ApplicationExitInfo.REASON_MEMORY_LIMITER in MemoryLimiterIntegration · Issue #6134 · getsentry/sentry-java
X Title: Handle ApplicationExitInfo.REASON_MEMORY_LIMITER in MemoryLimiterIntegration · Issue #6134 · getsentry/sentry-java
Description: Summary MemoryLimiterIntegration currently recognizes MemoryLimiter process deaths only when ApplicationExitInfo.getReason() == REASON_OTHER and the description contains the MemoryLimiter: prefix. Android 17 / API 37.2 added ApplicationE...
Open Graph Description: Summary MemoryLimiterIntegration currently recognizes MemoryLimiter process deaths only when ApplicationExitInfo.getReason() == REASON_OTHER and the description contains the MemoryLimiter: prefix. ...
X Description: Summary MemoryLimiterIntegration currently recognizes MemoryLimiter process deaths only when ApplicationExitInfo.getReason() == REASON_OTHER and the description contains the MemoryLimiter: prefix. ...
Opengraph URL: https://github.com/getsentry/sentry-java/issues/6134
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Handle ApplicationExitInfo.REASON_MEMORY_LIMITER in MemoryLimiterIntegration","articleBody":"## Summary\n\n`MemoryLimiterIntegration` currently recognizes MemoryLimiter process deaths only when `ApplicationExitInfo.getReason() == REASON_OTHER` and the description contains the `MemoryLimiter:` prefix.\n\nAndroid 17 / API 37.2 added `ApplicationExitInfo.REASON_MEMORY_LIMITER`, and our integration does not account for it yet. That means newer platform versions can report a dedicated MemoryLimiter reason that we may fail to capture.\n\nRelevant code:\n\n* `sentry-android-core/src/main/java/io/sentry/android/core/MemoryLimiterIntegration.java`\n* `sentry-android-core/src/test/java/io/sentry/android/core/MemoryLimiterIntegrationTest.kt`\n\nAndroid reference:\n\n* [https://developer.android.com/reference/android/app/ApplicationExitInfo#REASON_MEMORY_LIMITER](\u003chttps://developer.android.com/reference/android/app/ApplicationExitInfo#REASON_MEMORY_LIMITER>)\n\n## Current Behavior\n\n`MemoryLimiterPolicy.matches(...)` currently returns `true` only when:\n\n* `exitInfo.getReason() == ApplicationExitInfo.REASON_OTHER`\n* `exitInfo.getDescription()` contains `MemoryLimiter:`\n\n## Expected Behavior\n\n`MemoryLimiterIntegration` should also recognize exits reported with `ApplicationExitInfo.REASON_MEMORY_LIMITER`.\n\nWe should preserve current behavior for existing `REASON_OTHER` + `MemoryLimiter:` records, since older platform behavior may still surface that combination.\n\n## Acceptance Criteria\n\n* Update `MemoryLimiterPolicy.matches(...)` to handle `REASON_MEMORY_LIMITER` in addition to the existing legacy path.\n* Keep backward compatibility for older Android versions / SDK stubs where the new constant may not be available at compile or runtime.\n* Add regression tests covering the dedicated MemoryLimiter reason.\n* Verify existing tests around the legacy `REASON_OTHER` path still pass.\n\n## Notes\n\nThe implementation may need to avoid directly referencing the new constant from older compile targets if that creates compatibility issues with our current Android SDK setup.","author":{"url":"https://github.com/apps/linear-code","@type":"Person","name":"linear-code"},"datePublished":"2026-09-18T13:45:03Z","url":"https://github.com/getsentry/sentry-java/issues/6134"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0ab0ec28-a063-36b5-6a06-13bcfbd83384 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EC94:1B4D88:5A0981:7E8196:6B0446A6 |
| html-safe-nonce | 117b567040c6a125bb5e8c9cb520ceb563dad4ffb33c3a07a42074bc648e9d0f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzk0OjFCNEQ4ODo1QTA5ODE6N0U4MTk2OjZCMDQ0NkE2IiwidmlzaXRvcl9pZCI6IjM1ODI4MTQ0ODgzNjMyODgyMzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ceaf5eccdd8a116291e01454004da8f2130d16afe83f2e96908e7bb5bbbcc108 |
| hovercard-subject-tag | issue:5500298539 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-java/6134/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8ec959af4cd66e4591b45d21b3d151bd3973e17e1bbd4e80b4c0e6a010705b02/getsentry/sentry-java/issues/6134 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8ec959af4cd66e4591b45d21b3d151bd3973e17e1bbd4e80b4c0e6a010705b02/getsentry/sentry-java/issues/6134 |
| og:image:alt | Summary MemoryLimiterIntegration currently recognizes MemoryLimiter process deaths only when ApplicationExitInfo.getReason() == REASON_OTHER and the description contains the MemoryLimiter: prefix. ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | linear-code[bot] |
| hostname | github.com |
| expected-hostname | github.com |
| None | d4495c3631faba668036f176d1f5946901c5172efd73a6edb984029e7d4f8e46 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-java git https://github.com/getsentry/sentry-java.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3368190 |
| octolytics-dimension-repository_nwo | getsentry/sentry-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3368190 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9ac4337fb7c6a5846cdfdb1a04f154d3c33ebc77 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width