Telegram app freezes when starting until it's able to receive all new messages from the server

Bug #1446384 reported by Ricardo Salveti
60
This bug affects 10 people
Affects Status Importance Assigned to Milestone
Telegram app
Fix Released
Critical
Michał Karnicki

Bug Description

current build number: 270
device name: krillin
channel: ubuntu-touch/ubuntu-rtm/14.09-proposed
last update: 2015-04-11 08:14:05
version version: 270
version ubuntu: 20150410.1
version device: 20150408-4f14058
version custom: 20150409-665-29-206

Telegram: 1.1.2.95

When you get many messages from many different groups and open the app to see them, the app will be completely frozen for a while, until it's able to receive all the new messages from the server. This is annoying because there's no feedback saying it's trying to load the new messages, and the order of the chats you have might also change, causing a weird side effect if you tried to open an older chat window as it might end up going to another one after it loads all the new messages.

This also happens when sharing content from other apps, which is also bad as you might end up sharing a photo to the wrong chat window.

Michał Karnicki (karni)
Changed in libqtelegram:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Michał Karnicki (karni)
Revision history for this message
Michał Karnicki (karni) wrote :

"This also happens when sharing content from other apps, which is also bad as you might end up sharing a photo to the wrong chat window." -- this part has been fixed, so I consider this bug solely report of lack of responsiveness now.

Michał Karnicki (karni)
Changed in libqtelegram:
importance: High → Critical
milestone: none → m24
Michał Karnicki (karni)
Changed in libqtelegram:
status: Triaged → Fix Committed
Revision history for this message
Michael Zanetti (mzanetti) wrote :

I've been testing a click package that is supposed to have this fix. Unfortunately I have to report that it still frequently hangs for many seconds at startup.

Revision history for this message
Andrea Bernabei (faenil) wrote :

R39, rc-proposed
The app still freezes for a long time every time it has to download more than a few messages

Revision history for this message
Andrew Hayzen (ahayzen) wrote :

This has definitely not being fixed, I suffer from this everyday and it makes the application unusable at times. Especially when on a low speed data connection as you have to wait for all the messages you have received or sent on another app (eg the desktop app) to be downloaded.

I heard some people on IRC say that removing the cache directories for telegram can help speed it up, maybe I'll try moving it and see if it makes a difference and I can retrain the original store for analysis if it does make a difference.

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

Hi Adrea, Andrew,

The fix has been commited, but not released. We've had significant speed-up with it, but Michael Zanetti was still not happy with it. Most importantly, there was one regression (related to badge count), so we held it back. However, since I see the problem is quite severe, we'll try to push this out soon anyway, once I fix the badge. I'll probably do it over the evening some time this week, as I'm working on major back-end rework in Telegram.

Revision history for this message
Andrea Bernabei (faenil) wrote :

major backend rework? that's cool to hear! :)

Keep em fixes coming Michal, thanks! :)

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

Major major! I'm a bit stressed out this particular bug is hitting people - if the revolt is about to come, I'll be forced to swtich to 'fix this one' mode, but until then - I'm neck deep in much better, 2.x version

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

The fix is only partial. There should be visible improvement, but sit tight. There's another update in the works.

Changed in libqtelegram:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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