-
Notifications
You must be signed in to change notification settings - Fork 1k
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 crash java.util.ConcurrentModificationException com.getcapacitor.Plugin.notifyListeners #4797
Comments
I have the same issue and in my case, it seems to happen in push-notifications library.
|
Can confirm this error on Android. In my case it's the Keyboard plugin:
The error suggests, that the cause is in the BasePlugin Class and not a plugin itself. Looking at the sourcecode I am not sure, how notifyListeners modifies its list as it actually only reads from it. Hopefully someone from the core team can shed some light on this. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out. |
Bug Report
Capacitor Version
Platform(s)
Android
Current Behavior
My app seems to crash fairly often (4.5% of sessions) on android.
It seems to happen after accessing the Camera, but not while accessing it.
The error I see mentioned on the Google Play Console ANR crash report.
java.util.ConcurrentModificationException
com.getcapacitor.Plugin.notifyListeners
Expected Behavior
I expect the app not to crash as often.
The text was updated successfully, but these errors were encountered: