overtake / TelegramSwift

Source code of Telegram for macos on Swift 5.0
https://macos.telegram.org
GNU General Public License v2.0
5.07k stars 858 forks source link

WindowServer crashes when scrolling up in any chat #1017

Open hirakujira opened 1 year ago

hirakujira commented 1 year ago

I have been experiencing an ongoing issue for the past few months when scrolling up in Telegram. This action causes the entire Mac system to freeze randomly, resulting in an unresponsive state where switching to other applications becomes impossible. The only remedy I’ve found is to force quit Telegram using the cmd+Q shortcut. If I’m fortunate, the system will freeze for a few minutes and then quit Telegram, and my Mac will regain responsiveness. However, in cases where this doesn’t work, I have no choice but to reboot my Mac.

Upon examining the console.app, I discovered that the WindowServer crashes whenever this issue arises. I’ve attempted to troubleshoot the problem by using both Telegram versions 10.0.x and 9.6, but unfortunately, both versions still lead to crashes. Additionally, I have tried closing all other applications, including background apps, and only running Telegram on my system, but this approach did not resolve the problem. Disabling video and gif autoplay in the telegram settings also doesn't help.

Here are the specifications of my Mac:

Model: Mac Studio 2023, CPU & GPU: M2 Ultra, 24 CPU cores, 60 GPU cores RAM: 192 GB Operating System: 13.5.2

I also want to mention that this issue has never occurred on my Mac Studio 2022, which has an M1 Ultra chipset and 64GB of RAM.