flutter-permission-handler
flutter-permission-handler copied to clipboard
Android ANR
🐛 Bug Report
Facing an ANR on Android when the FLutter engine is initialized
We are seeing ANRs in firebase in PermissionHandlerPlugin.java class in the function startListening() at line 108. Please find the log below
Crash Log
main (runnable): tid=1 systid=21671
at com.baseflow.permissionhandler.PermissionHandlerPlugin.startListening(PermissionHandlerPlugin.java:108)
at com.baseflow.permissionhandler.PermissionHandlerPlugin.onAttachedToEngine(PermissionHandlerPlugin.java:64)
at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.add(FlutterEngineConnectionRegistry.java:144)
at io.flutter.plugins.GeneratedPluginRegistrant.registerWith(GeneratedPluginRegistrant.java:54)
at java.lang.reflect.Method.invoke(Native method)
at io.flutter.embedding.engine.plugins.util.GeneratedPluginRegister.registerGeneratedPlugins(GeneratedPluginRegister.java:80)
at io.flutter.embedding.engine.FlutterEngine.
Can we check this?
Version: 9.2.0
Platform:
- [ ] :robot: Android
Hi @onkarmonks, it's a bit hard to see from just a stack trace where the issue is coming from. An ANR is most if the times the issue due to the main thread, which is responsible for updating the UI, can't process input from the user, or isn't able to draw. There are multiple reasons why an ANR can happen, and multiple methods you can solve an ANR issue. Maybe this documentation can help you out a bit better finding the issue.
Let me know if you worked it out, or if you're still facing the issue!
Closing this issue due to inactivity. Feel free to open a new issue if you are still experiencing this problem!