tdesktop icon indicating copy to clipboard operation
tdesktop copied to clipboard

Unresponsive after connecting to network

Open ComodoHacker opened this issue 3 years ago • 37 comments

Steps to reproduce

  1. The app is minimized to tray, no network connection
  2. Go to sleep/hibernation (not sure if this matters)
  3. Wake up, unlock user session
  4. Connect to the Internet
  5. Invoke Telegram from tray

Expected behaviour

Main window shows up.

Actual behaviour

No response.

This happens often, but not every time, and started about 2-3 months ago.

Configuration

Operating system: Windows 7 [Version 6.1.7600]

Version of Telegram Desktop: 2.7.1

Used theme: Default

Logs:

log_freeze.zip Screenshot from Process Explorer: Telegram_process

ComodoHacker avatar Apr 05 '21 06:04 ComodoHacker

This happens often, but not every time, and started about 2-3 months ago.

That's the time of Qt 5.12 -> Qt 5.15 update, so probably a Qt bug

ilya-fedin avatar Apr 05 '21 06:04 ilya-fedin

Same here on W7. Are you sure it's related to connecting to network though? The title might be wrong. I'd say it has something to do with going out of sleep mode.

pH142857 avatar Apr 19 '21 20:04 pH142857

I hope I've fixed it, there was a deadlock in Qt 5.15 on Windows in thread management. We'll see in the next version.

john-preston avatar Apr 20 '21 03:04 john-preston

Hey there!

This issue was inactive for a long time and will be automatically closed in 30 days if there isn't any further activity. We therefore assume that the user has lost interest or resolved the problem on their own.

Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue.

Thanks!

stale[bot] avatar Oct 17 '21 06:10 stale[bot]

Still an issue on my W7. I have to manually kill TelegramDesktop.exe each time I get out of sleep mode.

pH142857 avatar Oct 18 '21 16:10 pH142857

It started to manifest again, on 3.1.8. Log tail (note the wake-up moment):

[2021.10.23 00:26:32] RPC Error: request 73853 got fail with code 400, error CHAT_ADMIN_REQUIRED [2021.10.23 00:26:36] RPC Error: request 73857 got fail with code 400, error CHAT_ADMIN_REQUIRED [2021.10.23 00:26:38] RPC Error: request 73861 got fail with code 400, error CHAT_ADMIN_REQUIRED [2021.10.23 00:33:31] API Warning: not loaded minimal channel applied. [2021.10.23 10:48:45] Could not send ping for some seconds, restarting... [2021.10.23 10:49:08] TCP Error: error packet received, endpoint: '149.154.175.100:443', protocolDcId: 3, code = -404 [2021.10.23 10:49:08] MTP Info: -404 error received in 10003 with temporary key, assuming it was destroyed. [2021.10.23 10:49:53] Could not send ping for some seconds, restarting... [2021.10.23 10:50:03] Could not send ping for some seconds, restarting...

ComodoHacker avatar Oct 23 '21 06:10 ComodoHacker

Same issue happens on 2 computers with Win7. Telegram stops getting any messages and stops updating channels after resuming from standby. It occurs maybe 1 time in 5-7 runs.

Dron007 avatar Apr 23 '22 12:04 Dron007

In Ubuntu this happens quite often for me. Not sure if this information helps at all, but I typically get it working again without needing to restart it by going into Settings->Advanced settings and switching from which ever proxy setting there is to the other (no proxy <-> system settings). After the switch it immediately starts working again.

juahan avatar Jul 23 '22 08:07 juahan

MacOS ( MBP M1 ) same issue, every time (not sometime) after sleep, wont reconnect, unless manual switching in Network section "between proxy and go back."

tjunussov avatar Aug 02 '22 03:08 tjunussov

As #17397 got closed and this was added as the duplicate issue - just wanted to +1 here.

M1 Macbook Air. After going to sleep and being woken up - Telegram is completely unresponsive unless I force close the application and open it again, after which it works just fine.

daaaaaavis avatar Aug 21 '22 07:08 daaaaaavis

Same issue, MacOS version 12.5.1, Telegram 4.1.1. After sleep telegram wont connect until I restart the application.

ollebro avatar Aug 24 '22 18:08 ollebro

still have this issue

ayuka-bg avatar Feb 02 '23 09:02 ayuka-bg

Still have this issue on flathub version 4.6.2 on Linux. Restarting the app solves the issue though.

jimzhong avatar Feb 15 '23 01:02 jimzhong

regarding to issue #25895, which is closed as duplicate of this one. mtp_19_00.txt mtp_success.txt I'm attaching two mtp logs. One (mtp_19_00.txt) is shown how Telegram tries to reconnect for some huge time after wake up computer from sleep and telegram fails to connect for 2 hours. I do not want to provide all later log files, because they contains same information. Second log (mtp_success.txt) is for succeed case - 2 minutes to reconnect was taken.

b-s-a avatar Feb 19 '23 08:02 b-s-a

snap version of linux ubuntu 22.10 the problem is relevant

vadimk1337 avatar Mar 17 '23 23:03 vadimk1337

Having the same issue every time after putting my Macbook sleep overnight. Restarting Telegram becomes a daily routine of mine.

Telegram 4.7, MacOS 13.1.

lacek avatar Mar 23 '23 03:03 lacek

Having the same problem behind an enterprise proxy. Connection type is "Use system proxy settings". During a normal operation (Telegram using the proxy) I disabled the wifi and turned back again. Telegram failed to reconnect, stuck "Connecting". Checking Sysinternals Process Monitor it seems so that Telegram forgot to use the proxy, but was trying a direct connection forever.

asze70 avatar Apr 14 '23 08:04 asze70

I'm experiencing the same. MacOS 13.3.1, Telegram 4.7

To restore the connection I either need to restart the entire application or go to Settings>Advanced>Connection>Toggle IPv6 to any state just to force the app into the reconnection.

8tomat8 avatar Apr 19 '23 18:04 8tomat8

+1 macOS Ventura, 13.2.1 Telegram 4.8.1

yuriifedorchuk avatar May 01 '23 15:05 yuriifedorchuk

Same issue Air M2 Venture 13.0.1 Telegram 4.8.1

I was about to become a premium user, but switched from Win (no issues for years) to Mac. Can't imagine paying voluntary money for the app I have to manually reset several times a day.

This bug exists for over 2 years now, other messaging apps on MacOS doesn't have this issue. Is there any good reason to ignore it for so long?

damat avatar May 03 '23 07:05 damat

Seems that it got worse last few months. I remember I had to restart/change proxy settings once a week last year, but eventually, it became a daily routine :(

MacBook Pro M1 Mac OSX 13.3.1 Telegram 4.8.1

udivankin avatar May 03 '23 07:05 udivankin

On my m2 any sleep, even 30 secs long, causes the disconnection. Hate it since so many work related chats are now in Telegram :(

On Wed, May 3, 2023, 14:33 allx @.***> wrote:

Seems that it got worse last few months. I remember I had to restart/change proxy settings once a week last year, but eventually, it became a daily routine :(

MacBook Pro M1 Mac OSX 13.3.1 Telegram 4.8.1

— Reply to this email directly, view it on GitHub https://github.com/telegramdesktop/tdesktop/issues/16093#issuecomment-1532576269, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAG7I7ATM6NOKGHN3GYBIE3XEIC3VANCNFSM42MITALQ . You are receiving this because you commented.Message ID: @.***>

damat avatar May 03 '23 08:05 damat

@john-preston can you please check this issue? It is very annoying to restart client every time laptop is waking from sleep.

RblSb avatar May 03 '23 13:05 RblSb

Same issue here, I have to restart Telegram each time connexion goes off and on (after computer goes to sleep for example)

Setup: MacBook Pro M1 macOS 13.4.1 (22F82) Telegram 4.8.3

Akaryatrh avatar Jun 26 '23 07:06 Akaryatrh

Can you at least add some sort of button, (in side menu may be), aka refresh conenction button in more convenient way pls? So we don't need to restart or search proxy setting every time :(

MasterOfTouch avatar Jul 02 '23 14:07 MasterOfTouch

Doesn't disconnecting and reconnecting to network via system work as such button?

ilya-fedin avatar Jul 02 '23 14:07 ilya-fedin

Nope. It requires a lot more click actions rather than a single button click. And again, that a 100% bug. Being ignored by the team with no explanation given. All other messenger apps (WhatsApp, FB, Slack, Line)on my m2 air are capable of reconnection. Yet Telegram is the only one with a Premium option, that can't do it.

damat avatar Jul 03 '23 04:07 damat

Nope. It requires a lot more click actions rather than a single button click. And again, that a 100% bug. Being ignored by the team with no explanation given. All other messenger apps (WhatsApp, FB, Slack, Line)on my m2 air are capable of reconnection. Yet Telegram is the only one with a Premium option, that can't do it.

not ignored, a fix atempt was pushed. (but failed)

Aokromes avatar Jul 03 '23 05:07 Aokromes

It requires a lot more click actions rather than a single button click.

Well, I have internet connection applet on my panel and I can enable/disable airplane mode with 2-3 clicks. I thought it's the same in any modern system.

ilya-fedin avatar Jul 04 '23 03:07 ilya-fedin

It requires a lot more click actions rather than a single button click.

Well, I have internet connection applet on my panel and I can enable/disable airplane mode with 2-3 clicks. I thought it's the same in any modern system.

I think that problem in this solution that we have to do it system-wide, but there could be playing video/music stream, active downloads/uploads and etc. in other applications that we do not want to stop (in some cases such system-wide reboot of network connection may fail processes in other applications)

In most cases, I for example, and I believe other users the same - may notice that telegram is unresponsive in a lot of time after launch of computer.

Just imagine a streamer who already "On Air" - he cannot stop streaming just to "Fix telegram bug"

Demetri0 avatar Jul 04 '23 07:07 Demetri0