telegramdesktop / tdesktop

Telegram Desktop messaging app
https://desktop.telegram.org/
Other
26.45k stars 5.26k forks source link

High CPU usage after some time of using #6242

Closed Neurotoxin001 closed 4 years ago

Neurotoxin001 commented 5 years ago

Steps to reproduce

  1. Just use telegram for some time (I use it from 1:20 to 9:12), send gifs/stickers/messages in chats/conferences
  2. Open task manager
  3. You can see 10-12% cpu usage even if it hidden in tray. CPU temperature is UP too (on 5-7 degrees): image

Restart the app is helps. After restart it's 0-1% in tray and 3-5% with active window of app.

Configuration

Operating system: Win10 LTSC 1809

Version of Telegram Desktop: 1.7.14 (same on 1.7.13)

Used theme: Default

https://pastebin.com/A3SDN5uw

john-preston commented 5 years ago

@Neurotoxin001 This looks like int32 overflow, not a memory leak. All sizes should be in int64 there, but I guess somewhere it got converted.

snejugal commented 5 years ago

I experience the same issue on Ubuntu 18.04 with Telegram v1.8.1 from Flathub, and I experienced it on earlier versions too. I notice it when I simply switch chats or even just leave some chat open for some time without even interacting with it at all.

Aokromes commented 5 years ago

In case someone knows how to fix, debug build 1.8.13 running under ubuntu linux x64

https://gist.github.com/37b7ee627100c703518b6586a1ed9713

HankAviator commented 4 years ago

It's been an outstanding issue for a while, observed on Windows 10. Didn't pay much effort to investigate it though, but it's been always there.

Aokromes commented 4 years ago

try after https://github.com/telegramdesktop/tdesktop/commit/5f5d5629f8e36f4eb6f9c478eb1b76a4cdb08b17

Neurotoxin001 commented 4 years ago

Ok, I will use 1.9.6 for ~48h and answer if this issue still happens.

HankAviator commented 4 years ago

Issue still persists. Stack for process:

ntoskrnl.exe!KeSynchronizeExecution+0x5b76
ntoskrnl.exe!KeWaitForMutexObject+0x1c2d
ntoskrnl.exe!KeWaitForMutexObject+0xab4
ntoskrnl.exe!KeWaitForMutexObject+0x255
ntoskrnl.exe!KeTestAlertThread+0x25a7
ntoskrnl.exe!KeWaitForMutexObject+0x3828
ntoskrnl.exe!KeSynchronizeExecution+0x3132
Telegram.exe!?setDrawRegion@Surface@rlottie@@QAEXIIII@Z+0x2e4efb
Neurotoxin001 commented 4 years ago

After ~24h of using seems like all is fine, % of cpu usage is ok, ram usage ok too.

Going to update to 1.9.7 now.

HankAviator commented 4 years ago

I got 40%+ CPU usage for prolonged time while having laptop plugged in and lid closed but didn't know what to attach here.

Neurotoxin001 commented 4 years ago

1.9.7-1.9.8 no issues too.

arghfrank commented 4 years ago

started for me with 1.9.14 - after a while (a few hours, usually) cpu load goes to 20-30%. quitting & restarting "helps", but .. :-|

atonn commented 4 years ago

on Linux, this usually only happens to me when a GIF is playing in the current window, even when minimized

Neurotoxin001 commented 4 years ago

Don't saw this issue since 1.9.8

github-actions[bot] commented 3 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.