tdesktop icon indicating copy to clipboard operation
tdesktop copied to clipboard

Crash in QMetaObject::cast when restoring from sys tray (SIGSEGV)

Open arthur-cpp opened this issue 3 months ago • 6 comments

Steps to reproduce

  1. Launch Telegram from terminal: ./Telegram
  2. Minimize to system tray.
  3. Click "Open Telegram" in the context menu.

Expected behaviour

Application window restores and shows up.

Actual behaviour

Crash with SIGSEGV in Qt event dispatching. Terminal console output:

error: empty dic file Hash Manager Error : 2 Segmentation fault

Operating system

Debian 13

Version of Telegram Desktop

7.1.4

Installation source

Downloaded from desktop.telegram.org or GitHub

Crash ID

No response

Logs

user@debian:~/Apps/Telegram$ gdb ./Telegram
GNU gdb (Debian 16.3-1) 16.3
..
Thread 1 "Telegram" received signal SIGSEGV, Segmentation fault.
0x000055555d07346c in QMetaObject::cast(QObject const*) const ()

arthur-cpp avatar Sep 02 '26 10:09 arthur-cpp

@arthur-cpp thanks! this will be fixed within couple of hours in 7.1.5 update

john-preston avatar Sep 02 '26 10:09 john-preston

I'm observing a bit different issue after the latest Telegram update in Debian 13 Xfce. When I launch Telegram Desktop and then minimize the window via a dedicated button, it crashes. However, if it's shown/minimized via a tray icon, no problem is observed in my case.

If the application is executed from a terminal first I see the following two lines: error: empty dic file Hash Manager Error : 2

Then when I minimize the application window via the window button, it crashes with Segmentation fault line printed in the terminal. So the error is the same, but the crash and the message are reproduced under different conditions.

JayXT avatar Sep 02 '26 10:09 JayXT

@arthur-cpp @JayXT For now I've pushed the fix into the public-canary update channel, it should build here (if no errors will be there):

https://github.com/telegramdesktop/tdesktop/actions/runs/33620725910

Then there will be an artifact (Linux version), it will also appear here: https://t.me/tdesktop_canary

It would be great if you could test that the fix is working and that the newly built version doesn't crash when you do stuff, that crashes current 7.1.4.

john-preston avatar Sep 02 '26 10:09 john-preston

@arthur-cpp @JayXT

Ok, my 7.1.5 and canary became available at the same time. Please test either this canary build:

https://github.com/telegramdesktop/tdesktop/actions/runs/33620725910/artifacts/9843740373 (I don't understand if it's available to you or not)

Or the same thing here:

https://t.me/tdesktop_canary/127 (td-portable-linux-x64-7.1.4-canary-30.tar.xz)

Or the prepared, but not yet deployed to auto-update, version 7.1.5 from here:

https://td.telegram.org/tlinux/tsetup.7.1.5.tar.xz (this one just unpack over your existing 7.1.4 so you won't get accidentally logged out if you launch that one and then launch the previous version with the same auth data)

And tell me if it fixes the crash.

john-preston avatar Sep 02 '26 11:09 john-preston

It works! Downloaded portable, unpacked, run - tried minimizie to tray and back, seems everything is ok now. Thanks!

arthur-cpp avatar Sep 02 '26 11:09 arthur-cpp

@john-preston, I haven't logged in into the canary build version, but judging purely from the window minimizing behavior, the issue is resolved in it.

JayXT avatar Sep 02 '26 11:09 JayXT