Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDK is crashing with ConcurrentModificationException (3.4.15) #642

Open
andreichykov opened this issue Oct 16, 2023 · 2 comments
Open

SDK is crashing with ConcurrentModificationException (3.4.15) #642

andreichykov opened this issue Oct 16, 2023 · 2 comments

Comments

@andreichykov
Copy link

Preconditions:

Having Iterable wrapper component A


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)

@andreichykov andreichykov changed the title SDK is crashing with ConcurrentModificationException SDK is crashing with ConcurrentModificationException (3.4.15) Oct 16, 2023
@andreichykov
Copy link
Author

Also crashed in 3.4.16

@fandomWojtek
Copy link

yeah, I've created ticket for that on support, nothing happening from more than a month ¯_(ツ)_/¯ . They do not look like they care about it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants