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

Can't receive messages after returning online until relogin #13067

Closed
qoqobolo opened this issue Jan 31, 2022 · 6 comments
Closed

Can't receive messages after returning online until relogin #13067

qoqobolo opened this issue Jan 31, 2022 · 6 comments
Assignees
Milestone

Comments

@qoqobolo
Copy link
Contributor

Bug Report

Problem

If the user enables airplane mode, closes the app, receives messages while offline from another user (that goes offline/closes the app after sending messages), re-opens the app, and disables airplane mode, they won't receive the messages until reopening Status.
The issue is reproducible with these steps in ~70% of cases.

Expected behavior

Can receive messages right after returning online

Actual behavior

Messages are only received after reopening

video_2022-01-31_17-58-50.mp4

Reproduction

  1. Start a 1-1 chat between UserA and UserB
  2. UserA: close the app
  3. UserB: turn on airplane mode and close the app
  4. UserA: open the app > send several messages to UserB > close the app
  5. UserB: open the app > turn off airplane mode (no messages) > reopen the app

Additional Information

  • Status version: nightly 31/01
  • Operating System: Android, iOS

Logs

UserA: geth.log

@qoqobolo qoqobolo added this to the Release 1.19 milestone Jan 31, 2022
@rasom rasom self-assigned this Feb 2, 2022
@rasom
Copy link
Member

rasom commented Feb 2, 2022

@qoqobolo
I can't reproduce it using iOS simulator as A and iOS real device as B. Is it reproducible only on Android devices?

Also regarding steps 3 and 5: what if you don't close the app but just toggle airplane mode, do you have the same result?

@qoqobolo
Copy link
Contributor Author

qoqobolo commented Feb 2, 2022

@rasom it's reproducible for me both on iOS and Android real devices (just double-checked with UserA - Android and UserB - iOS).
Logs for iOS geth.log

Regarding steps 3 and 5: hm yeah, I tried to reproduce without them but it was not successful last time.
Now I tried about 5 times on Android and iOS, and the result is:

  • can't reproduce it on Android without steps 3 and 5 at all
  • can reproduce it on iOS without steps 3 and 5 in 80% of cases

@rasom
Copy link
Member

rasom commented Feb 3, 2022

Start a 1-1 chat between UserA and UserB

@qoqobolo do I have to create a new 1-1 pair for each test or I can skip the first step on the next iteration?

@pavloburykh
Copy link
Contributor

Hey @qoqobolo @rasom I'm reproducing the bug following given steps when using Android as device A (receiver) and IOS as device B (sender). Attaching video and logs.

telegram-cloud-document-2-5465577855343662054.mp4

geth.log

@rasom rasom removed their assignment Feb 4, 2022
@audriu audriu self-assigned this Mar 11, 2022
@cammellos cammellos assigned cammellos and unassigned audriu Mar 11, 2022
@cammellos
Copy link
Member

This is due to the slots in the p2p server being full and therefore not re-dialling the server.
Looking into a fix

@cammellos
Copy link
Member

Should be fixed in #13065 feel free to reopen if necessary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants