Open
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 version 7.22.4, which is the one used by sentry sdk for flutter 8.14.1).
I found this PR #3836 which allowed maxBreadcrumbs to 0 , because of an initial react native sdk problem (here)
I cloned this repo https://github.com/sentry-demos/android to test the example with just android sdk, and in fact :
On main on this repo :
- Go to MyBaseActivity
- Add to configureScope callback :
scope.getOptions().setMaxBreadcrumbs(0);
scope.getOptions().setBeforeBreadcrumb( (breadcrumb, hint) -> {
return null;
}
);
Expected Result
Surely not a crash of the app, but it does crash
Actual Result
Crash, stack trace on my side :
ANR in com.example.vu.android (com.example.vu.android/.empowerplant.EmpowerPlantActivity)
PID: 31047
Reason: Input dispatching timed out (29bd6f9 com.example.vu.android/com.example.vu.android.empowerplant.EmpowerPlantActivity is not responding. Waited 5005ms for MotionEvent).
Parent: com.example.vu.android/.empowerplant.EmpowerPlantActivity
We 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
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Needs Investigation
Status
No status