Fixed
Status Update
Comments
ul...@gmail.com <ul...@gmail.com> #2
Sorry for bad formatting. Probably markdown parser doesn't recognize new lines.
ra...@google.com <ra...@google.com> #3
Are you modifying the list of factories
after WorkManager has been initialized ?
ra...@google.com <ra...@google.com> #4
Also, can you please try using the latest stable version of WorkManager.
ra...@google.com <ra...@google.com>
ap...@google.com <ap...@google.com> #5
Project: platform/frameworks/support
Branch: androidx-master-dev
commit c1049b718d42148c90fa17b8c6ab32867cbeeb5a
Author: Rahul Ravikumar <rahulrav@google.com>
Date: Tue May 12 15:30:11 2020
Make `DelegatingWorkerFactory` thread safe.
* This makes it easier to add factories dynamically. Might be useful
in the context of dynamic feature modules.
Test: Existing unit tests pass.
Fixes: b/156289105
Change-Id: Id8e656b6f96f5a1b336e50b2f5b0a5c914098063
M work/workmanager/src/main/java/androidx/work/DelegatingWorkerFactory.java
https://android-review.googlesource.com/1309745
Branch: androidx-master-dev
commit c1049b718d42148c90fa17b8c6ab32867cbeeb5a
Author: Rahul Ravikumar <rahulrav@google.com>
Date: Tue May 12 15:30:11 2020
Make `DelegatingWorkerFactory` thread safe.
* This makes it easier to add factories dynamically. Might be useful
in the context of dynamic feature modules.
Test: Existing unit tests pass.
Fixes:
Change-Id: Id8e656b6f96f5a1b336e50b2f5b0a5c914098063
M work/workmanager/src/main/java/androidx/work/DelegatingWorkerFactory.java
ul...@gmail.com <ul...@gmail.com> #6
Thanks!
Description
Component used: WorkManager Version used: 2.2.0 Devices/Android versions reproduced on: All versions
Stacktrace:
It seems that method
addFactory
ofDelegatingWorkerFactory
class tries to modifymFactories
list while another thread is iterating over it.