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

Messages sent after device sleep may stuck in "sending" state in community #18284

Closed
churik opened this issue Dec 22, 2023 · 5 comments
Closed
Assignees
Labels
message-reliability messaging mobile-core waku All issues relating to the Status Waku integration.

Comments

@churik
Copy link
Member

churik commented Dec 22, 2023

Bug Report

Problem

I believe the issue exists regardless of the fleet, but in the current release on shards.test version it is more noticeable.
Messages are completely stuck in "sending" state if they are sent after the device is unlocked. Re-login doesn't help, the messages are stuck there forever and they are not being resent.

Expected behavior

Messages are sent

Actual behavior

messages are stuck there forever and they are not being resent even after re-login

Reproduction

Prerequisites: device A joined to community

  1. Lock the device and wait ~5 mins (app should be on the background)
  2. Unlock the device and try to send a couple of messages to community

Logs (to be added)

Additional Information

  • Status version: release 18
  • Operating System: Android, iOS
@churik churik added the bug label Dec 22, 2023
@churik
Copy link
Member Author

churik commented Dec 26, 2023

Currently can reproduce consistently with android sending from offline state - messages stuck in "Sending" state forever after getting back online
IMAGE 2023-12-26 11:48:34

Logs: Status-debug-logs.zip

@churik churik changed the title Messages sent after device sleep are stuck in "sending" state in community Messages sent after device sleep or offline may stuck in "sending" state in community Dec 26, 2023
@churik churik changed the title Messages sent after device sleep or offline may stuck in "sending" state in community Messages sent after device sleep may stuck in "sending" state in community Dec 26, 2023
@chair28980 chair28980 added the waku All issues relating to the Status Waku integration. label Dec 26, 2023
@pavloburykh pavloburykh added this to the 1.27.0 - Alpha milestone Jan 8, 2024
@pavloburykh
Copy link
Contributor

UPDATE (22.01.24):

So far I am unable to reproduce this issue. Maybe something has been fixed on go-waku side recently, not sure.

But let's keep this issue open for a while. If we face it again we will post an update here.

@pavloburykh
Copy link
Contributor

pavloburykh commented Jan 25, 2024

UPDATE (25.01.24):

I have been able to reproduce the bug on the recovered user. In my case the issue seems nothing to do with sleep mode or offline/online handling.

The issues have been reproduced both in communities and 1-1 chats.

Some of the messages have subsequently changed status from Sending to Sent and have been in fact delivered.
But some of the messages have been stuck in Sending status forever and have not been delivered (or delivered partially, i.e message contained text + 6 images but only text + 3 images have been delivered and 3 images have been lost).

Status-debug-logs (97).zip

photo_2024-01-25 15 33 14
photo_2024-01-25 15 33 18

@ulisesmac
Copy link
Contributor

ulisesmac commented Sep 10, 2024

I tried to replicate the issue several times but I couldn't. Has it been solved? I tested on two physical Android devices and an emulator.

Tried following the steps in the description and also as specified in the comment #18284 (comment)
CC: @churik

This issue could be closed or maybe we need to specify exact steps to reproducte it 🤔

@churik
Copy link
Member Author

churik commented Sep 11, 2024

It could be that it was fixed, as we enabled light client and several waku releases happened after that.
Thank you for taking a look.
I'll reopen if relevant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
message-reliability messaging mobile-core waku All issues relating to the Status Waku integration.
Projects
Archived in project
Development

No branches or pull requests

6 participants