Skip to content

🐛 [cloud_firestore] [Android] Fatal Exception: java.util.ConcurrentModificationException #10745

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

Closed
hukusuke1007 opened this issue Apr 8, 2023 · 4 comments
Labels
closed-by-bot resolution: no-response Customer did not respond after some time. Stale Issue with no recent activity type: bug Something isn't working

Comments

@hukusuke1007
Copy link

Bug report

While running the Android app, the following report was reported in the crash log.

Fatal Exception: java.util.ConcurrentModificationException:
       at java.util.ArrayList$Itr.next(ArrayList.java:860)
       at com.google.firebase.firestore.core.Query.matchesOrderBy(Query.java:14)
       at com.google.firebase.firestore.core.Query.matches(Query.java:12)
       at com.google.firebase.firestore.local.SQLiteRemoteDocumentCache.lambda$getDocumentsMatchingQuery$3(SQLiteRemoteDocumentCache.java)
       at com.google.firebase.firestore.local.SQLiteRemoteDocumentCache.lambda$processRowInBackground$2(SQLiteRemoteDocumentCache.java:6)
       at com.google.firebase.firestore.util.BackgroundQueue.lambda$execute$0(BackgroundQueue.java)
       at com.google.firebase.firestore.util.ThrottledForwardingExecutor.lambda$execute$0(ThrottledForwardingExecutor.java)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
       at java.lang.Thread.run(Thread.java:784)

Additional context

Occurs on Android versions 8, 9, 11.

pubspec.yaml

  firebase_core: ^2.9.0
  firebase_analytics: ^10.2.0
  cloud_firestore: ^4.5.0
  firebase_auth: ^4.4.0
  firebase_storage: ^11.1.0
  cloud_functions: ^4.1.0
  firebase_messaging: ^14.4.0
  firebase_crashlytics: ^3.1.0
  firebase_dynamic_links: ^5.1.0

Flutter doctor

Run flutter doctor and paste the output below:

Click To Expand
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.7.10, on macOS 13.2.1 22D68 darwin-arm64, locale
    ja-JP)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.1)
[✓] VS Code (version 1.77.1)
[✓] Connected device (3 available)
[✓] HTTP Host Availability

@hukusuke1007 hukusuke1007 added Needs Attention This issue needs maintainer attention. type: bug Something isn't working labels Apr 8, 2023
@hukusuke1007
Copy link
Author

@darshankawar darshankawar added the triage Issue is currently being triaged. label Apr 10, 2023
@darshankawar
Copy link

Thanks for the report @hukusuke1007
Is it replicable locally ? If so, a minimal code sample would be helpful to debug further.

Also, looks related to #8444, which you can take a look for further reference.

@darshankawar darshankawar added blocked: customer-response Waiting for customer response, e.g. more information was requested. and removed Needs Attention This issue needs maintainer attention. labels Apr 10, 2023
@google-oss-bot google-oss-bot added the Stale Issue with no recent activity label Apr 19, 2023
@google-oss-bot
Copy link

Hey @hukusuke1007. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

@google-oss-bot
Copy link

Since there haven't been any recent updates here, I am going to close this issue.

@hukusuke1007 if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

@darshankawar darshankawar added resolution: no-response Customer did not respond after some time. and removed blocked: customer-response Waiting for customer response, e.g. more information was requested. triage Issue is currently being triaged. labels Apr 28, 2023
@firebase firebase locked and limited conversation to collaborators Jun 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
closed-by-bot resolution: no-response Customer did not respond after some time. Stale Issue with no recent activity type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants