parse-community/ParseLiveQuery-Android

Concurrent Modification Exception on Android 10

duocnguyen6799 opened this issue · 4 comments

I used ParseLiveQuery SDK on version 1.1.0 and 1.2.2 . My app has been crashed like below.
image
Please help me! Thanks.

Hello, could you please provide more information?

Stacktrace?
SDK version?
How to reproduce?

On my side, we are using the latest version intensively or many devices and we don't have that error.

Thanks

I have just updated the information on this issue.

@duocnguyen6799 Issue is fixed now?

Does make sense. The mCallbacks list is not thread safe.
Just realized I don't have this stack trace because I don't use registerListener nor unregisterListener.

Easy fix could be

  • to add synchronized,
  • or use a thread-safe version of the Array list (Collections.synchronizedList or CopyOnWriteArrayList)
  • or any other better suggestion.