FS#76508 - [telegram-desktop] 4.3.1-2 Black screen when viewing media fullscreen

Attached to Project: Community Packages
Opened by Caesar Woo (caesarw) - Thursday, 10 November 2022, 16:02 GMT
Last edited by Toolybird (Toolybird) - Tuesday, 20 June 2023, 05:00 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Felix Yan (felixonmars)
Jiachen Yang (farseerfc)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

This bug report has also been opened on the upstream repo.
The link is: https://github.com/telegramdesktop/tdesktop/issues/25192
If you need more info regarding the bug report, please check that out.

Description:
The screen goes black when media viewer (both image and video viewer) is fullscreen (i.e. clicking on a media). For image viewer, the whole display becomes black. For video viewer, only playback control is visible.
After testing with official binaries (downloaded from tdesktop GitHub releases) and packages offered by Arch repo, it seems that the issue comes from library packages that was linked to telegram. According to maintainers on the GitHub issues, this may have something to do with patches by telegram (https://github.com/telegramdesktop/tdesktop/issues/25192#issuecomment-1279921234).
Current mitigation is to disable "Enable OpenGL rendering for media" option in Telegram Settings -> Advanced. However the problem should be investigated.


Additional info:
* package version(s): 4.3.1-2 (but reproducible since 4.2.4)
* config and/or log files etc.
* link to upstream bug report: https://github.com/telegramdesktop/tdesktop/issues/25192

Steps to reproduce:
1. Start Telegram desktop on Linux (4.2.4) under XWayland (i.e. without QT_QPA_PLATFORM=wayland)
2. Make sure that you have "Enable OpenGL rendering for media" enabled in Telegram Settings -> Advanced
2. Open any chats and left background for a while (~15 minutes).
3. Switch to Telegram main window and click to view some images or videos.

Hardware Specs if related:
CPU: AMD Ryzen 5800X
GPU: AMD RX550 (Kernel driver: amdgpu)
DE: GNOME with scaling of 200%
This task depends upon

Closed by  Toolybird (Toolybird)
Tuesday, 20 June 2023, 05:00 GMT
Reason for closing:  No response
Comment by Caesar Woo (caesarw) - Friday, 11 November 2022, 03:50 GMT
New comment added by Telegram developers with patches Telegram made to Qt provided.
Link: https://github.com/telegramdesktop/tdesktop/issues/25192#issuecomment-1310654199
Comment by Caesar Woo (caesarw) - Saturday, 04 February 2023, 21:19 GMT
Update: the issue persists since version 4.2.4 on Arch (version at the time of update: 4.5.3). I have switched from AMD RX550 to AMD RX6400 a few days ago, and I've turned on Enable OpenGL rendering for media for experimentation for a few hours. No sign of bug reproduction until now. This bug could be a GPU hardware, chip architecture or mesa/driver bug in a combo.
Comment by Caesar Woo (caesarw) - Sunday, 05 February 2023, 11:19 GMT
Update: the bug reproduced again on the new hardware (RX6400).
Comment by Sven-Hendrik Haase (Svenstaro) - Wednesday, 08 February 2023, 18:49 GMT
New telegram version 4.6.1-2 should fix this. Please test.
Comment by Caesar Woo (caesarw) - Thursday, 09 February 2023, 04:31 GMT
I am currently testing the new build. I noticed that after upgrading, the Telegram tray icon in GNOME has changed to its blue icon instead of the previous white ones, is this related to the added static and patched Qt6?
Also, iBus seems to be broken on this build.
Comment by Caesar Woo (caesarw) - Monday, 13 February 2023, 17:19 GMT
Update: the bug can be reproduced even if using the patched version. I also tried building static Qt with different options, and the bug still reproduced.
If this helps, I am currently running Telegram in XWayland mode on a Wayland GNOME session (since non-native Telegram notification is not supported on pure Wayland, I decided to stick to XWayland), this could be related.
Comment by Toolybird (Toolybird) - Sunday, 21 May 2023, 04:04 GMT
Still happening with latest pkg?

Loading...