Sending Notifications. ConcurrentModificationException Exception

645 views
Skip to first unread message

William Alexander

unread,
Jun 10, 2016, 12:42:14 PM6/10/16
to Firebase Google Group
Hi,

I've sent notifications and opened them fine on my device.
I've noticed some users are having problems.

Thanks W.

Details below. This is a stack trace from Firebase Crashes:

Exception java.util.ConcurrentModificationException:
java.util.HashMap$HashIterator.nextEntry (HashMap.java:806)
java.util.HashMap$EntryIterator.next (HashMap.java:843)
java.util.HashMap$EntryIterator.next (HashMap.java:841)
java.util.HashMap.constructorPutAll (HashMap.java:208)
java.util.HashMap.<init> (HashMap.java:196)
android.os.Bundle.<init> (Bundle.java:125)
android.content.Intent.getExtras (Intent.java:5283)
com.google.firebase.messaging.FirebaseMessagingService.zzm ()
com.google.firebase.iid.zzb$2.run ()
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1080)
java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:573)
java.lang.Thread.run (Thread.java:841)
Data
person
User data
Country Code: —
Carrier Code: —
Operator: Pelephone
Locale: —
trending_up
Performance data
VM free: 2.16MB
VM total: 12.65MB
VM max.: 64MB
Battery level: —
Charging state: Unplugged undefined
Connection State: Wifi
stay_primary_portraits
Device data
Manufacturer: Samsung
Model: GT-I9305
Board: Smdk4x12
Android API: 18
Android OS: 4.3
Brand: Samsung
RAM: 1.74GB
Available on disk: —
Orientation: Portrait
Proximity to user: —
bug_report
Error data
Date: 10 Jun 2016, 14:44:13
App Version: 61 (1.54)

Michael Lehenbauer

unread,
Jun 14, 2016, 1:14:44 PM6/14/16
to Firebase Google Group
Hi William,

Thanks for reaching out.  It looks like this may be a race condition in the SDK.  We've opened an internal bug to investigate the issue and hopefully fix it in an upcoming release. Thanks very much for the feedback!

-Michael

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/b0bde16e-4e75-44f5-8c94-234fcc23a849%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

William Riyanto

unread,
Jul 20, 2016, 10:57:07 AM7/20/16
to Firebase Google Group
Hi, our app also got many crashes relating to this.

Is there any progress on this issue? A timeline? Or maybe is there a workaround we can apply in the meantime?

Thank you

Jeffrey Halimsetiawan

unread,
Aug 26, 2016, 10:13:29 AM8/26/16
to Firebase Google Group
Same issue here.

#1 issue

Fatal Exception: java.util.ConcurrentModificationException
       at java.util.HashMap$HashIterator.nextEntry(HashMap.java:792)
       at java.util.HashMap$EntryIterator.next(HashMap.java:829)
       at java.util.HashMap$EntryIterator.next(HashMap.java:827)
       at java.util.HashMap.constructorPutAll(HashMap.java:205)
       at java.util.HashMap.<init>(HashMap.java:196)
       at android.os.Bundle.<init>(Bundle.java:125)
       at android.content.Intent.getExtras(Intent.java:5044)
       at com.google.firebase.messaging.FirebaseMessagingService.zzm(Unknown Source)
       at com.google.firebase.iid.zzb$2.run(Unknown Source)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
       at java.lang.Thread.run(Thread.java:856)

#2 issue
Fatal Exception: java.util.ConcurrentModificationException
       at java.util.HashMap$HashIterator.nextEntry(HashMap.java:806)
       at java.util.HashMap$EntryIterator.next(HashMap.java:843)
       at java.util.HashMap$EntryIterator.next(HashMap.java:841)
       at java.util.HashMap.constructorPutAll(HashMap.java:208)
       at java.util.HashMap.(HashMap.java:196)
       at android.os.Bundle.(Bundle.java:125)
       at android.content.Intent.getExtras(Intent.java:4930)
       at com.google.firebase.messaging.FirebaseMessagingService.zzm(Unknown Source)
       at com.google.firebase.iid.zzb$2.run(Unknown Source)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
       at java.lang.Thread.run(Thread.java:841)

#3 issue
Fatal Exception: java.util.ConcurrentModificationException
       at java.util.HashMap$HashIterator.nextEntry(HashMap.java:795)
       at java.util.HashMap$EntryIterator.next(HashMap.java:832)
       at java.util.HashMap$EntryIterator.next(HashMap.java:830)
       at java.util.HashMap.constructorPutAll(HashMap.java:208)
       at java.util.HashMap.(HashMap.java:196)
       at android.os.Bundle.(Bundle.java:125)
       at android.content.Intent.getExtras(Intent.java:4811)
       at com.google.firebase.messaging.FirebaseMessagingService.zzm(Unknown Source)
       at com.google.firebase.iid.zzb$2.run(Unknown Source)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
       at java.lang.Thread.run(Thread.java:838)

These issues are always happened when we send push notification to our app using Firebase.

Any updates from Firebase team how to solve that issue? Because that is happened inside Firebase SDK. 

Thanks.

Kato Richardson

unread,
Aug 26, 2016, 1:59:07 PM8/26/16
to Firebase Google Group
Hi Jeffrey,

Can you provide a minimal repro and version info to help troubleshoot?

Cheers,
Kato


--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

Jeffrey Halimsetiawan

unread,
Aug 28, 2016, 11:20:44 PM8/28/16
to Firebase Google Group
Hi Kato,

Thanks for your reply. We use latest version of Firebase which is 9.4.0.

We got this crash issue from Crashlytics.
Affected OS is only Android 4.x (Android 4.3 and below).

This usually happens when our Marketing team send push notification from Firebase Notifications console.
Currently we don't know exactly how to repro it and are trying to repro it.

Please let me know if you have updates regarding this issue.

Thanks.


To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.

Jeffrey Halimsetiawan

unread,
Sep 7, 2016, 10:33:53 AM9/7/16
to Firebase Google Group
Hi Kato,

Is there any updates regarding this issue?

The last resort for us is just to move up the minSdkVersion from 15 to 19.
Because crashes are happened inside Firebase SDK and it seems sepcific problem with Android ICS and Jellybean.

Thanks.

Kato Richardson

unread,
Sep 9, 2016, 1:16:25 PM9/9/16
to Firebase Google Group
Without a minimal repro and specific steps, I can't offer much here. 

I don't see any existing bugs matching this description and I can't try to reproduce or uncover a cause without a repro.

I will keep an eye out for similar reports and let you know if anything interesting comes to mind.

☼, Kato

To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Kato Richardson

unread,
Sep 9, 2016, 1:18:17 PM9/9/16
to Firebase Google Group
Note that, just in case someone missed Mike's reply earlier in the thread: We still have an open internal bug to investigate, we still think it may be a race condition. The only thing that will move this along faster is more details to reproduce the behavior.
Reply all
Reply to author
Forward
0 new messages