-
-
Notifications
You must be signed in to change notification settings - Fork 662
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
[Bug]: ANR triggered by thread waiting for a binder transaction #1488
Comments
Are you still receiving this issue @SdxCoder ? I'm having a similar issue; an ANR when stopping location updates using geolocator ^13.0.1 on Android. Crash log
Code sample StreamSubscription<Position>? _geoLocatorPositionListener = Geolocator.getPositionStream(
locationSettings: const LocationSettings(),
).listen(_locationDidUpdate);
...
_geoLocatorPositionListener?.cancel(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please check the following before submitting a new issue.
Please select affected platform(s)
Steps to reproduce
We have an application in production and we recieved this ANR from firebase crashlytics. We don't have clear steps to reproduce.
1- We are only using one method .i.e getting current location
Crash Log
Crashlytics - Stack trace
Application: cloud.solutions.pharmacy
Platform: android
Date: Thu Apr 18 2024 15:13:26 GMT-0600 (Mountain Daylight Time)
Expected results
ANR should not be triggered.
Actual results
Binder call may be taking too long, causing the main thread to wait, and triggering the ANR.
Code sample
Code sample
Screenshots or video
Screenshots or video demonstration
[Upload media here]
Version
geolocator: ^10.1.0
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: