Conversations stop updating after reconnection

Bug #1518300 reported by Alberto Mardegan
152
This bug affects 28 people
Affects Status Importance Assigned to Milestone
Telegram app
Fix Released
Critical
Unassigned

Bug Description

This has happened quite a few times for me already:

1) Have Wifi on
2) Open telegram, open a conversation
3) Switch off wifi
4) Let the phone go to sleep
5) Receive a message in that conversation
6) Wake up phone
7) Reconnect to wifi
8) Wait for the notification about the incoming message (the one from step 5)
9) Unlock phone
10) Look at telegram: the conversation won't update

Notes:
- I'm not sure if steps 5 and 8 are needed, but they were present in all cases when I reproduced this bug.
- The input box becomes active after 1-2 seconds (in step 10), meaning that the connection is properly detected.
- In order to get back to a working state, one needs to go back to the main page of the app, and reopen the conversation.

Attaching the log file.

Tags: v2

Related branches

Revision history for this message
Alberto Mardegan (mardy) wrote :
Michał Karnicki (karni)
Changed in telegram-app:
importance: Undecided → Critical
milestone: none → m26
tags: added: v2
Revision history for this message
James Lewis (james-fsck) wrote :

Ive seen this issue, wasnt sure if it was telegram or OTA8

Revision history for this message
James Lewis (james-fsck) wrote :

Seems a bit more broad than the description above, ive noticed that if the telegram phone is locked when a message arrives, you will get a notification but switching to telegram app will never display the message.

Revision history for this message
Michał Karnicki (karni) wrote :

Marking as confirmed as affects multiple users.

Changed in telegram-app:
status: New → Confirmed
Revision history for this message
Michał Karnicki (karni) wrote :

Note to self:

Consider these steps from (possibly duplicate) bug 1524307

Steps to reproduce:
1. Receive new message while phone is locked.
2. Unlock phone and swipe down message indicator
3. Press on the monochrome telegram icon next to the new message to open it in the app

Jin (jindallo)
Changed in telegram-app:
assignee: nobody → Jin (jin.cth)
Revision history for this message
Jin (jindallo) wrote :

I can not get any notifications from version 2.0.4.0,
need to check its mechanism in current code base or library.

Michał Karnicki (karni)
Changed in telegram-app:
milestone: m26 → m27
Revision history for this message
Randall Ross (randall) wrote :

I can confirm this behaviour on:
flo - Nexus 7 (2013) Wi-Fi
Ubuntu 15.04 (r334)

If there is a temporary disruption in network connectivity (as happens frequently on mobile/wifi networks) then the device (flo) will disconnect and reconnect, but Telegram will only disconnect. There is no indication that Telegram is not sending/receiving messages. The only way to reconnect Telegram is to terminate the app and restart it manually.

Revision history for this message
Michał Karnicki (karni) wrote :

Yes, we have Jin looking into this whenever he's available.

Jin (jindallo)
Changed in telegram-app:
status: Confirmed → In Progress
Revision history for this message
Roberto Mier Escandon (rmescandon) wrote :

The behaviour that i've noticed is that the messages are not missed, but received after passed 2 or 3 minutes after the app comes to foreground again.

I tested the state of the QTcpSocket when not got the inmediate update and was QAbstractSocket::ConnectedState. Besides, the socket was marked as valid, open, readable and writable.

The socket is used to send a request to the telegram servers getting the differences (the updates) and QTcpSocket logs that the request is sent (N bytes written in the socket with no error), but no response is received.. until passed those 2 or three minutes

Changed in telegram-app:
status: In Progress → Fix Committed
Michał Karnicki (karni)
Changed in telegram-app:
assignee: Jin (jin.cth) → Roberto Mier Escandón  (rmescandon)
Jin (jindallo)
Changed in telegram-app:
status: Fix Committed → Fix Released
Jin (jindallo)
Changed in telegram-app:
assignee: Roberto Mier Escandón  (rmescandon) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.