crisp-im / crisp-sdk-android

:package: Crisp Android SDK, add a chat in any Android app and communicate with your users.
https://docs.crisp.chat/guides/chatbox-sdks/android-sdk/
Other
55 stars 17 forks source link

java.util.ConcurrentModificationException #45

Closed FrantisekGazo closed 3 years ago

FrantisekGazo commented 3 years ago

I'm sometimes getting java.util.ConcurrentModificationException when opening chat activity using 1.0.3 android sdk.

I'm using the same code as here –> https://github.com/crisp-im/crisp-sdk-android/issues/43#issuecomment-822598812

It's happening only sometimes. Can you please check your collection manipulation?

E/UncaughtException(10094): Restarting app
E/UncaughtException(10094): java.util.ConcurrentModificationException
E/UncaughtException(10094):     at java.util.ArrayList$Itr.next(ArrayList.java:831)
E/UncaughtException(10094):     at im.crisp.client.b.a.a.l(SourceFile)
E/UncaughtException(10094):     at im.crisp.client.b.e.a.e.i.b(SourceFile)
E/UncaughtException(10094):     at im.crisp.client.b.e.a.e.i.a(SourceFile)
E/UncaughtException(10094):     at im.crisp.client.b.e.b.g$a.j(SourceFile)
E/UncaughtException(10094):     at im.crisp.client.b.e.b.g$a.lambda$lk1FiT7iDBX4RDrwY9_3h-tuGnw(SourceFile)
E/UncaughtException(10094):     at im.crisp.client.b.e.b.-$$Lambda$g$a$lk1FiT7iDBX4RDrwY9_3h-tuGnw.run(lambda)
E/UncaughtException(10094):     at android.os.Handler.handleCallback(Handler.java:751)
E/UncaughtException(10094):     at android.os.Handler.dispatchMessage(Handler.java:95)
E/UncaughtException(10094):     at android.os.Looper.loop(Looper.java:154)
E/UncaughtException(10094):     at android.app.ActivityThread.main(ActivityThread.java:6077)
E/UncaughtException(10094):     at java.lang.reflect.Method.invoke(Native Method)
E/UncaughtException(10094):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
E/UncaughtException(10094):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)
FrantisekGazo commented 3 years ago

cc @baptistejamin

FrantisekGazo commented 3 years ago

@baptistejamin any update on this please?

baptistejamin commented 3 years ago

Hello!

We recently released a 1.0.4 version.

Is it fixing your problem?

FrantisekGazo commented 3 years ago

thanks, I'll update and test.

baptistejamin commented 3 years ago

Sure :)

FrantisekGazo commented 3 years ago

I'm closing this issues as I wasn't able to reproduce it this time. will reopen if it occurs again.

thanks for the help

baptistejamin commented 3 years ago

No problem, please do let us know if it occurs again :)