Title: Setting maxBreadcrumbs 0 and beforeBreadcrumb callback crash · Issue #4334 · getsentry/sentry-java · GitHub
Open Graph Title: Setting maxBreadcrumbs 0 and beforeBreadcrumb callback crash · Issue #4334 · getsentry/sentry-java
X Title: Setting maxBreadcrumbs 0 and beforeBreadcrumb callback crash · Issue #4334 · getsentry/sentry-java
Description: Integration sentry-android Build System Gradle AGP Version 7.4.2 Proguard Enabled Version 7.22.4 Steps to Reproduce Initially had the problem with my app that integrates flutter with sentry and therefore the sentry android SDK (with vers...
Open Graph Description: Integration sentry-android Build System Gradle AGP Version 7.4.2 Proguard Enabled Version 7.22.4 Steps to Reproduce Initially had the problem with my app that integrates flutter with sentry and the...
X Description: Integration sentry-android Build System Gradle AGP Version 7.4.2 Proguard Enabled Version 7.22.4 Steps to Reproduce Initially had the problem with my app that integrates flutter with sentry and the...
Opengraph URL: https://github.com/getsentry/sentry-java/issues/4334
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Setting maxBreadcrumbs 0 and beforeBreadcrumb callback crash","articleBody":"### Integration\n\nsentry-android\n\n### Build System\n\nGradle\n\n### AGP Version\n\n7.4.2\n\n### Proguard\n\nEnabled\n\n### Version\n\n7.22.4\n\n### Steps to Reproduce\n\nInitially had the problem with my app that integrates flutter with sentry and therefore the sentry android SDK (with version 7.22.4, which is the one used by sentry sdk for flutter 8.14.1). \n\nI found this PR #3836 which allowed maxBreadcrumbs to 0 , because of an initial react native sdk problem ([here](https://github.com/getsentry/sentry-react-native/issues/3634))\n\nI cloned this repo https://github.com/sentry-demos/android to test the example with just android sdk, and in fact : \n\nOn main on this repo : \n\n- Go to MyBaseActivity \n- Add to configureScope callback : \n```\nscope.getOptions().setMaxBreadcrumbs(0);\nscope.getOptions().setBeforeBreadcrumb( (breadcrumb, hint) -> {\n return null;\n }\n);\n\n```\n\n\n### Expected Result\n\nSurely not a crash of the app, but it does crash \n\n### Actual Result\n\nCrash, stack trace on my side : \n\n```\nANR in com.example.vu.android (com.example.vu.android/.empowerplant.EmpowerPlantActivity)\nPID: 31047\nReason: Input dispatching timed out (29bd6f9 com.example.vu.android/com.example.vu.android.empowerplant.EmpowerPlantActivity is not responding. Waited 5005ms for MotionEvent).\nParent: com.example.vu.android/.empowerplant.EmpowerPlantActivity\n```\n\nWe solved it by removing the maxBreadcrumbs to 0 on our side, but it shouldnt be available to do both if it makes the app crash","author":{"url":"https://github.com/mathisfqs-dev","@type":"Person","name":"mathisfqs-dev"},"datePublished":"2025-04-14T15:45:52Z","url":"https://github.com/getsentry/sentry-java/issues/4334"}
| 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:88af53e3-5aec-92db-86ab-77973350ae5e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9B04:163142:7CA092:AEF072:6B04817A |
| html-safe-nonce | 092109b77889b4df42f95b7d6c62fb341e7c539ab73353e82587bc5ac0af9599 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjA0OjE2MzE0Mjo3Q0EwOTI6QUVGMDcyOjZCMDQ4MTdBIiwidmlzaXRvcl9pZCI6Ijg0NjY0MjY4OTkzMjM5NzgxMDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 65dcd5979d6a33b82409bdc4536b404e00264f5c2e996069e4c098ecfe2adc83 |
| hovercard-subject-tag | issue:2993470973 |
| 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/4334/issue_layout |
| twitter:image | https://opengraph.githubassets.com/859e36295303813ef452d0b8ac4a5369d43cfe518a9118feef37ae6cb780e344/getsentry/sentry-java/issues/4334 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/859e36295303813ef452d0b8ac4a5369d43cfe518a9118feef37ae6cb780e344/getsentry/sentry-java/issues/4334 |
| og:image:alt | Integration sentry-android Build System Gradle AGP Version 7.4.2 Proguard Enabled Version 7.22.4 Steps to Reproduce Initially had the problem with my app that integrates flutter with sentry and the... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mathisfqs-dev |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0366ddfb372682a32e92a5d86155cb08fa83e5bbe79953a968789f2f7e24c511 |
| 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 | ed3f2e01f6b7672780c586c8af0e72726374d7b6 |
| 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