_This issue is constantly reproduced in develop after #11316 was merged._
If create a group chat and send 5 images, then 5 more (sometimes for several more), then the other members will not receive all the images from the second batch. After the images are stopped being received by other members of the group chat, text messages (including in 1-1 chat) begin to be received with a delay (3-20 minutes).
User 1:
User 2:
User 1:
User 2:
SENDER status_logs.zip iOS device
RECEIVER Status-debug-logs.zip Android device
cc @Ferossgp @cammellos @hesterbruikman
Thanks for reporting the issue!
A few reasons why it might be the case (we'd have to investigate further to make sure):
1) Rate limiting, you might be hitting the node rate limiting
2) Messages are dispatched in batches to a given user (though that should be every 300ms, so maybe too quick for this), but we never check the batch is too large, but we might be hitting the limit
The bug does not seem to be crucial, but it's worth investigating just to understand what's happening, as it might not be necessarily due to images
IMO as it easy to reproduce now, better to look at it until feature will go to release (so before 1.9)
Not sure though now many users now are using group chat, so likely not many users will be affected.
We are hitting the limit in terms of size of messages on the sender side:
t=2020-10-30T10:51:17+0000 lvl=eror msg="error sending message" namespace=mvds error="huge messages are not allowed [fe1b2ec7ba9bf5283c7f3a1e4f26fffd2d6452205e9ed0547b34d6597bff2dd8][1167920][1048576]"
Investigating further
It's probably due to batching of messages in MVDS, as we don't limit those. I will push out a potential fix and test it.
Most helpful comment
It's probably due to batching of messages in MVDS, as we don't limit those. I will push out a potential fix and test it.