Fixed
Status Update
Comments
ti...@gmail.com <ti...@gmail.com> #2
Can you switch to using alpha02 to see if you can still reproduce this ?
su...@google.com <su...@google.com>
an...@gmail.com <an...@gmail.com> #4
Is there a possible workaround or way to avoid this issue? My app has intermittent crashes (I'm using alpha 2) with what I assume is the same issue.
E/AndroidRuntime: FATAL EXCEPTION: main
java.util.ConcurrentModificationException
at java.util.ArrayList$ArrayListIterator.next(ArrayList.java:569)
at androidx.work.impl.background.systemalarm.SystemAlarmDispatcher.hasIntentWithAction(SystemAlarmDispatcher.java:258)
at androidx.work.impl.background.systemalarm.SystemAlarmDispatcher.add(SystemAlarmDispatcher.java:138)
at androidx.work.impl.background.systemalarm.SystemAlarmDispatcher$AddRunnable.run(SystemAlarmDispatcher.java:306)
at android.os.Handler.handleCallback(Handler.java:725)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5041)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime: FATAL EXCEPTION: main
java.util.ConcurrentModificationException
at java.util.ArrayList$ArrayListIterator.next(ArrayList.java:569)
at androidx.work.impl.background.systemalarm.SystemAlarmDispatcher.hasIntentWithAction(SystemAlarmDispatcher.java:258)
at androidx.work.impl.background.systemalarm.SystemAlarmDispatcher.add(SystemAlarmDispatcher.java:138)
at androidx.work.impl.background.systemalarm.SystemAlarmDispatcher$AddRunnable.run(SystemAlarmDispatcher.java:306)
at android.os.Handler.handleCallback(Handler.java:725)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5041)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
at dalvik.system.NativeStart.main(Native Method)
su...@google.com <su...@google.com> #5
I don't think there is really any workaround. We're working on getting alpha03 out soon though. Thanks!
Description
Version used: 1.0.0-alpha01
Devices/Android versions reproduced on: Android 4.X-6.0
We have a crasch in the WorkManager.
Is there a repository where we can download the code?
Fatal Exception: java.util.ConcurrentModificationException
java.util.ArrayList$ArrayListIterator.next (ArrayList.java:573)
androidx.work.impl.background.systemalarm.SystemAlarmDispatcher.hasIntentWithAction (SourceFile:241)
androidx.work.impl.background.systemalarm.SystemAlarmDispatcher.add (SourceFile:125)
androidx.work.impl.background.systemalarm.SystemAlarmDispatcher$AddRunnable.run (SourceFile:289)
android.os.Handler.handleCallback (Handler.java:733)
android.os.Handler.dispatchMessage (Handler.java:95)
android.os.Looper.loop (Looper.java:136)
android.app.ActivityThread.main (ActivityThread.java:5584)
java.lang.reflect.Method.invokeNative (Method.java)
java.lang.reflect.Method.invoke (Method.java:515)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1268)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1084)
dalvik.system.NativeStart.main (NativeStart.java)