Fetch: Fatal Exception: java.util.ConcurrentModificationException

Created on 4 Aug 2017  路  4Comments  路  Source: tonyofrancis/Fetch

From my Crashlytics I got a

Fatal Exception: java.util.ConcurrentModificationException

on

com.tonyodev.fetch.Fetch$4.onReceive (Fetch.java:971)

Crashlytics doesn't really give me information on what was done before getting there, so it's a bit hard for me to debug. Any ideas on what may be causing this?

Thanks.

bug

Most helpful comment

@riadhnet thanks for reporting. Ill get a fix together and try to push an update soon

All 4 comments

@VitorAndrioli from what I can gather, It seems that this issue is occurring inside the broadcast receiver that publishes download progress updates to the Fetch Listeners. I have a feeling the the array list that holds the listeners gets modified. (A listener gets removed or added) whiles trying to publish the updates to all attached listeners. Ill look into this more closely and should have a fix for next release. Thanks

i got the same error here is the logcat
08-22 21:02:36.891 8904-8904/br.com.vrtu.androidapp E/AndroidRuntime: FATAL EXCEPTION: main Process: br.com.vrtu.androidapp, PID: 8904 java.util.ConcurrentModificationException at java.util.ArrayList$ArrayListIterator.next(ArrayList.java:573) at com.tonyodev.fetch.Fetch$4.onReceive(Fetch.java:1016) at android.support.v4.content.LocalBroadcastManager.executePendingBroadcasts(LocalBroadcastManager.java:297) at android.support.v4.content.LocalBroadcastManager.access$000(LocalBroadcastManager.java:46) at android.support.v4.content.LocalBroadcastManager$1.handleMessage(LocalBroadcastManager.java:116) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:158) at android.app.ActivityThread.main(ActivityThread.java:7224) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

what i'm doing is when i open the app again , and there is a downloading request , i add listener again to get updates

@riadhnet thanks for reporting. Ill get a fix together and try to push an update soon

@VitorAndrioli @riadhnet This bug has now been fixed in 1.1.4

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Moeinh77 picture Moeinh77  路  4Comments

DeevD picture DeevD  路  3Comments

Mahan3340 picture Mahan3340  路  4Comments

MohammadFneish7 picture MohammadFneish7  路  4Comments

gbirk picture gbirk  路  5Comments