stream-chat-android icon indicating copy to clipboard operation
stream-chat-android copied to clipboard

Concurrent modification on removing member from channel

Open Chikrix opened this issue 7 years ago • 1 comments

When I try to remove a member from a channel, it throws the following error;

 Process: com.salesrabbit.android.sales.universal, PID: 27697
    java.util.ConcurrentModificationException
        at java.util.ArrayList$Itr.next(ArrayList.java:860)
        at com.getstream.sdk.chat.rest.response.ChannelState.removeMemberById(ChannelState.java:182)
        at com.getstream.sdk.chat.model.Channel.handelMemberRemoved(Channel.java:908)
        at com.getstream.sdk.chat.rest.core.Client$1.onMemberRemoved(Client.java:256)
...

Ways to reproduce

  • Login as different members to a channel on different devices
  • Remove one member from the channel that is active (at least has posted something in the same chat session on the channel)
  • Crashes all active members across all different device

Chikrix avatar Nov 01 '19 18:11 Chikrix

this one is clearly a high priority bug @elevenetc

tbarbugli avatar Nov 02 '19 19:11 tbarbugli