You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class A {
init {
val config = IterableConfig.Builder().setAutoPushRegistration(false).build()
IterableApi.initialize(app, apiKey, config)
}
fun setupUser(userId: String, token: String) {
...
IterableApi.getInstance().userId = userId
IterableApi.getInstance().registerDeviceToken(token)
...
}
}
Above code crashed randomly (quite often based on crashlytics report)
Moving both init and setup to single/main thread (running on Handler(app.mainLooper)) didn't help
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextNode(HashMap.java:1441)
at java.util.HashMap$EntryIterator.next(HashMap.java:1475)
at java.util.HashMap$EntryIterator.next(HashMap.java:1473)
at com.iterable.iterableapi.IterableApiClient.registerDeviceToken(IterableApiClient.java:426)
at com.iterable.iterableapi.IterableApi.registerDeviceToken(IterableApi.java:486)
at com.iterable.iterableapi.IterableApi$3.run(IterableApi.java:437)
at java.lang.Thread.run(Thread.java:1012)
The text was updated successfully, but these errors were encountered:
andreichykov
changed the title
SDK is crashing with ConcurrentModificationException
SDK is crashing with ConcurrentModificationException (3.4.15)
Oct 16, 2023
Preconditions:
Having Iterable wrapper component A
Above code crashed randomly (quite often based on crashlytics report)
Moving both init and setup to single/main thread (running on Handler(app.mainLooper)) didn't help
The text was updated successfully, but these errors were encountered: