tdesktop icon indicating copy to clipboard operation
tdesktop copied to clipboard

Whole X freezes on media click

Open ShyLionTjmn opened this issue 4 years ago • 25 comments

Steps to reproduce

Linux Mint 19.3 After some time running, when i click video or photo on telegram channel - whole system freezed. Only thing i can do is to switch to console CTRL-ALT-F1 (any of F1-F6) and login to console. Killing Telegam does not resolve problem, after switching back to X using ALT-F7 only black screen an cursor present. This started right after latest Telegram update 3.6.1

Expected behaviour

Should not freeze

Actual behaviour

X system freezes

Operating system

Linux Mint 19.3, Cinnamon, latest updates

Version of Telegram Desktop

3.6.1

Installation source

Static binary from official website

Logs

No response

ShyLionTjmn avatar Mar 18 '22 09:03 ShyLionTjmn

Maybe it was a system update that added a bug to X? :thinking:

ilya-fedin avatar Mar 18 '22 10:03 ilya-fedin

Maybe, but it happens when i click in Telegram app. All other apps function just fine. Anything i can do to collect logs from Telegram?

ShyLionTjmn avatar Mar 18 '22 15:03 ShyLionTjmn

I don't think anything useful to this would be logged at Telegram level. It's Qt who talks to X :(

ilya-fedin avatar Mar 18 '22 15:03 ilya-fedin

I don't imagine how an application can freeze entire X so that it doesn't recover after a kill attempt if X is not bugged. The reason you don't see this in other applications might be just the fact you don't use much applications (e.g. Telegram frequently is the only Qt application on user's PC). Other applications might just not hit this X bug.

ilya-fedin avatar Mar 18 '22 15:03 ilya-fedin

Cant argue much, just the fact that i'm facing problem with Telegram app. The other concedence is that happend when chrome was playing youtube. Any ideas where to look at when this happens?

ShyLionTjmn avatar Mar 18 '22 15:03 ShyLionTjmn

No, no idea yet, sorry :( Something specific for your setup apparently since I can't reproduce

ilya-fedin avatar Mar 18 '22 15:03 ilya-fedin

I also have two displays if it matters. Right now i'm trying to reproduce and nothing happens :(

ShyLionTjmn avatar Mar 18 '22 16:03 ShyLionTjmn

I have only one display. Can you reproduce with one display?

ilya-fedin avatar Mar 18 '22 16:03 ilya-fedin

Just few seconds after i posted my last message, i tried again and viola - it freezed

ShyLionTjmn avatar Mar 18 '22 16:03 ShyLionTjmn

It might be related to your graphics drivers since media viewer uses OpenGL

ilya-fedin avatar Mar 18 '22 16:03 ilya-fedin

This is what was in syslog at the moment of freeze

Mar 18 21:02:22 lion-home-pc acpid: client 1400[0:0] has disconnected
Mar 18 21:02:27 lion-home-pc gnome-terminal-[9656]: gdk_event_set_source_device: assertion 'GDK_IS_DEVICE (device)' failed
Mar 18 21:02:27 lion-home-pc kernel: [22475.937056] show_signal_msg: 41 callbacks suppressed
Mar 18 21:02:27 lion-home-pc kernel: [22475.937058] gnome-terminal-[9656]: segfault at 90 ip 00007f444f2eb285 sp 00007ffe0f831eb0 error 4 in libgdk-3.so.0.2200.30[7f444f28d000+eb000]
Mar 18 21:02:27 lion-home-pc kernel: [22475.937062] Code: 48 8b 7d 30 e8 5c c6 fc ff 4c 89 e7 48 89 c6 48 89 c5 e8 2e a8 fd ff 4c 89 ef e8 76 32 fd ff 4c 89 e7 48 89 c6 e8 db b3 fd ff <48> 8b b5 90 00 00 00 4c 89 e7 e8 5c b4 fd ff 49 8b 74 24 08 49 8b
Mar 18 21:02:27 lion-home-pc systemd[1924]: gnome-terminal-server.service: Main process exited, code=dumped, status=11/SEGV
Mar 18 21:02:27 lion-home-pc systemd[1924]: gnome-terminal-server.service: Failed with result 'core-dump'.
Mar 18 21:02:27 lion-home-pc systemd-coredump[31933]: Process 9656 (gnome-terminal-) of user 1000 dumped core.#012#012Stack trace of thread 9656:#012#0  0x00007f444f2eb285 n/a (libgdk-3.so.0)#012#1  0x00007f444f2f5810 n/a (libgdk-3.so.0)#012#2  0x00007f444f2f53e1 n/a (libgdk-3.so.0)#012#3  0x00007f444f2bfd70 gdk_display_get_event (libgdk-3.so.0)#012#4  0x00007f444f2f4f82 n/a (libgdk-3.so.0)#012#5  0x00007f444e031537 g_main_context_dispatch (libglib-2.0.so.0)#012#6  0x00007f444e031770 n/a (libglib-2.0.so.0)#012#7  0x00007f444e0317fc g_main_context_iteration (libglib-2.0.so.0)#012#8  0x00007f444e5f2f3d g_application_run (libgio-2.0.so.0)#012#9  0x000055ef7d84e162 n/a (gnome-terminal-server)#012#10 0x00007f444d7efc87 __libc_start_main (libc.so.6)#012#11 0x000055ef7d84e20a n/a (gnome-terminal-server)#012#012Stack trace of thread 9657:#012#0  0x00007f444d8e2bb9 __GI___poll (libc.so.6)#012#1  0x00007f444e0316e9 n/a (libglib-2.0.so.0)#012#2  0x00007f444e0317fc g_main_context_iteration (libglib-2.0.so.0)#012#3  0x00007f444e031841 n/a (libglib-2.0.so.0)#012#4  0x00007f444e0592a5 n/a (libglib-2.0.so.0)#012#5  0x00007f444dbc66db start_thread (libpthread.so.0)#012#6  0x00007f444d8ef61f __clone (libc.so.6)#012#012Stack trace of thread 9658:#012#0  0x00007f444d8e2bb9 __GI___poll (libc.so.6)#012#1  0x00007f444e0316e9 n/a (libglib-2.0.so.0)#012#2  0x00007f444e031a82 g_main_loop_run (libglib-2.0.so.0)#012#3  0x00007f444e61f2d6 n/a (libgio-2.0.so.0)#012#4  0x00007f444e0592a5 n/a (libglib-2.0.so.0)#012#5  0x00007f444dbc66db start_thread (libpthread.so.0)#012#6  0x00007f444d8ef61f __clone (libc.so.6)#012#012Stack trace of thread 9659:#012#0  0x00007f444d8e2bb9 __GI___poll (libc.so.6)#012#1  0x00007f444e0316e9 n/a (libglib-2.0.so.0)#012#2  0x00007f444e0317fc g_main_context_iteration (libglib-2.0.so.0)#012#3  0x00007f4442c4236d n/a (libdconfsettings.so)#012#4  0x00007f444e0592a5 n/a (libglib-2.0.so.0)#012#5  0x00007f444dbc66db start_thread (libpthread.so.0)#012#6  0x00007f444d8ef61f __clone (libc.so.6)

ShyLionTjmn avatar Mar 18 '22 16:03 ShyLionTjmn

Video driver version is the same as week ago. 470.103.01

ShyLionTjmn avatar Mar 18 '22 16:03 ShyLionTjmn

Use three ` for code tag

ilya-fedin avatar Mar 18 '22 16:03 ilya-fedin

This is what was in syslog at the moment of freeze

It has only gnome-terminal crash lines

ilya-fedin avatar Mar 18 '22 16:03 ilya-fedin

Video driver version is the same as week ago. 470.103.01

Well, proprietary NVIDIA driver is very problematic with Qt apps, it loses context frequently and causes random crashes

ilya-fedin avatar Mar 18 '22 16:03 ilya-fedin

click video or photo on telegram channel - whole system freezed Well, proprietary NVIDIA driver is very problematic with Qt apps

I've never had this problem. But I'm using Telegram on Devuan/KDE Plasma (GeForce GTX 1050).

data-man avatar Mar 18 '22 16:03 data-man

Can i revert back to previous version of Tg to see if problem repeats?

ShyLionTjmn avatar Mar 18 '22 16:03 ShyLionTjmn

I've never had this problem.

Well, it's actually blacklisted, but if you would disable the blacklist, you will have a lot of funny bugs I guess

Can i revert back to previous version of Tg to see if problem repeats?

Sure, but that will log you out

ilya-fedin avatar Mar 18 '22 16:03 ilya-fedin

Downloaded 3.6.0, will stay with it for a while. Will report back in some time with bad or good news. Decide yourself if you want to close this issue, please.

ShyLionTjmn avatar Mar 18 '22 16:03 ShyLionTjmn

Is there a way to prevent it showing Update Telegram button?

ShyLionTjmn avatar Mar 18 '22 16:03 ShyLionTjmn

Well, it's actually blacklisted

If you mean modprobe.d/blacklist.conf, I don't have it.

data-man avatar Mar 18 '22 16:03 data-man

If you mean modprobe.d/blacklist.conf, I don't have it.

I mean Telegram has a blacklist and it won't use hardware acceleration with proprietary NVIDIA driver

ilya-fedin avatar Mar 18 '22 16:03 ilya-fedin

Is there a way to prevent it showing Update Telegram button?

Disable autoupdate in settings

ilya-fedin avatar Mar 18 '22 16:03 ilya-fedin

No freezes on 3.6.0 yet

ShyLionTjmn avatar Mar 21 '22 04:03 ShyLionTjmn

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!

github-actions[bot] avatar Sep 18 '22 02:09 github-actions[bot]