telegramdesktop / tdesktop

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

All-transparent windows in Telegram Destop for Linux #28387

Closed socketpair closed 1 month ago

socketpair commented 1 month ago

Steps to reproduce

  1. Update to latest version (Launched version: 5005002, install beta: [FALSE], alpha: 0, debug mode: [FALSE])
  2. turn off OpenGL media rendering in Advanced settings tab
  3. restart

Expected behaviour

Normal windows rendering

Actual behaviour

All windows transparent

Operating system

Fedora 39, Gnome

Version of Telegram Desktop

5005002

Installation source

Static binary from official website

Crash ID

No response

Logs

[2024.09.10 21:07:20] Launched version: 5005002, install beta: [FALSE], alpha: 0, debug mode: [FALSE]
[2024.09.10 21:07:20] Executable dir: /home/mmarkk/Telegram/, name: Telegram
[2024.09.10 21:07:20] Initial working dir: /home/mmarkk/
[2024.09.10 21:07:20] Working dir: /home/mmarkk/.local/share/TelegramDesktop/
[2024.09.10 21:07:20] Command line: /home/mmarkk/Telegram/Telegram
[2024.09.10 21:07:20] Executable path before check: /home/mmarkk/Telegram/Telegram
[2024.09.10 21:07:20] Logs started
[2024.09.10 21:07:20] App ID: org.telegram.desktop._ae37cd7d54f46a3863ba4aec95f3f6be
[2024.09.10 21:07:21] Connecting local socket to 51aa4983bceaca38cf9921b108b3755d-TelegramDesktop...
[2024.09.10 21:07:21] Socket connect error 0, starting server and app...
[2024.09.10 21:07:21] Moved logging from '/home/mmarkk/.local/share/TelegramDesktop/log_start0.txt' to '/home/mmarkk/.local/share/TelegramDesktop/log.txt'!
[2024.09.10 21:07:21] Opened '/home/mmarkk/.local/share/TelegramDesktop/tdata/working' for reading, the previous Telegram Desktop launch was not finished properly :( Crash log size: 0
[2024.09.10 21:07:21] Global devicePixelRatio: 2
[2024.09.10 21:07:21] Primary screen DPI: 96, Base: 96.
[2024.09.10 21:07:21] Computed screen scale: 100
[2024.09.10 21:07:21] DevicePixelRatio: 2
[2024.09.10 21:07:21] ScreenScale: 100
[2024.09.10 21:07:21] Icon theme: Adwaita
[2024.09.10 21:07:21] Fallback icon theme:.
[2024.09.10 21:07:21] Media Info: Type Playback, default: Alder Lake PCH-P High Definition Audio Controller Speaker + Headphones, list: { "Alder Lake PCH-P High Definition Audio Controller Speaker + Headphones" <Alder Lake PCH-P High Definition Audio Controller Speaker + Headphones>, "Alder Lake PCH-P High Definition Audio Controller HDMI / DisplayPort 3 Output" <Alder Lake PCH-P High Definition Audio Controller HDMI / DisplayPort 3 Output>, "Alder Lake PCH-P High Definition Audio Controller HDMI / Disp
[2024.09.10 21:07:21] Media Info: Type Capture, default: Alder Lake PCH-P High Definition Audio Controller Digital Microphone, list: { "Alder Lake PCH-P High Definition Audio Controller Digital Microphone" <Alder Lake PCH-P High Definition Audio Controller Digital Microphone>, "Monitor of Alder Lake PCH-P High Definition Audio Controller HDMI / DisplayPort 3 Output" <Monitor of Alder Lake PCH-P High Definition Audio Controller HDMI / DisplayPort 3 Output>, "Monitor of Alder Lake PCH-P High Definition Au
[2024.09.10 21:07:21] Media Info: Type Camera, default: usb-0000:00:14.0-8, list: { "USB2.0 FHD UVC WebCam: USB2.0 F" <usb-0000:00:14.0-8> }, full list refresh: true
[2024.09.10 21:07:21] App Info: reading settings...
[2024.09.10 21:07:21] App Info: reading encrypted settings...
[2024.09.10 21:07:21] Lang Info: Loaded cached, keys: 7395
[2024.09.10 21:07:21] Font: from ':/gui/fonts/OpenSans-Regular.ttf' loaded 'Open Sans'
[2024.09.10 21:07:21] Font: from ':/gui/fonts/OpenSans-Italic.ttf' loaded 'Open Sans'
[2024.09.10 21:07:21] Font: from ':/gui/fonts/OpenSans-SemiBold.ttf' loaded 'Open Sans'
[2024.09.10 21:07:21] Font: from ':/gui/fonts/OpenSans-SemiBold.ttf' loaded 'Open Sans Semibold'
[2024.09.10 21:07:21] Font: from ':/gui/fonts/OpenSans-SemiBoldItalic.ttf' loaded 'Open Sans'
[2024.09.10 21:07:21] Font: from ':/gui/fonts/OpenSans-SemiBoldItalic.ttf' loaded 'Open Sans Semibold'
[2024.09.10 21:07:21] Font: from ':/gui/fonts/Vazirmatn-UI-NL-Regular.ttf' loaded 'Vazirmatn UI NL'
[2024.09.10 21:07:21] Font: from ':/gui/fonts/Vazirmatn-UI-NL-SemiBold.ttf' loaded 'Vazirmatn UI NL'
[2024.09.10 21:07:21] Font: from ':/gui/fonts/Vazirmatn-UI-NL-SemiBold.ttf' loaded 'Vazirmatn UI NL SemiBold'
[2024.09.10 21:07:22] OpenAL Logging Level: (not set)
[2024.09.10 21:07:22] App Info: reading accounts info...
[2024.09.10 21:07:22] App Info: reading encrypted info...
[2024.09.10 21:07:22] App Info: reading map...
[2024.09.10 21:07:22] App Info: reading encrypted map...
[2024.09.10 21:07:22] App Info: reading encrypted user settings...
[2024.09.10 21:07:22] App Info: encrypted user settings read.
[2024.09.10 21:07:22] App Info: reading encrypted mtp data...
[2024.09.10 21:07:22] MTP Info: read keys, current: 5, to destroy: 0
[2024.09.10 21:07:22] Map read time: 95
[2024.09.10 21:07:22] App Info: reading encrypted mtp config...
[2024.09.10 21:07:22] App Info: reading map...
[2024.09.10 21:07:22] App Info: reading encrypted map...
[2024.09.10 21:07:22] App Info: reading encrypted user settings...
[2024.09.10 21:07:22] App Info: encrypted user settings read.
[2024.09.10 21:07:22] App Info: reading encrypted mtp data...
[2024.09.10 21:07:22] MTP Info: read keys, current: 5, to destroy: 0
[2024.09.10 21:07:22] Map read time: 9
[2024.09.10 21:07:22] App Info: reading encrypted mtp config...
[2024.09.10 21:07:22] App Info: reading map...
[2024.09.10 21:07:22] App Info: reading encrypted map...
[2024.09.10 21:07:22] App Info: reading encrypted user settings...
[2024.09.10 21:07:22] App Info: encrypted user settings read.
[2024.09.10 21:07:22] App Info: reading encrypted mtp data...
[2024.09.10 21:07:22] MTP Info: read keys, current: 5, to destroy: 0
[2024.09.10 21:07:22] Map read time: 1
[2024.09.10 21:07:22] App Info: reading encrypted mtp config...
[2024.09.10 21:07:22] App Info: reading map...
[2024.09.10 21:07:22] App Info: reading encrypted map...
[2024.09.10 21:07:22] App Info: reading encrypted user settings...
[2024.09.10 21:07:22] App Info: encrypted user settings read.
[2024.09.10 21:07:22] App Info: reading encrypted mtp data...
[2024.09.10 21:07:22] MTP Info: read keys, current: 5, to destroy: 0
[2024.09.10 21:07:22] Map read time: 1
[2024.09.10 21:07:22] App Info: reading encrypted mtp config...
[2024.09.10 21:07:22] Export Info: Destroy top bar by controller removal.
[2024.09.10 21:07:22] System tray available: [TRUE]
[2024.09.10 21:07:22] OpenGL: Force-disabled.
[2024.09.10 21:07:22] OpenGL: [FALSE] (Window)
[2024.09.10 21:07:23] Notification daemon product name: gnome-shell
[2024.09.10 21:07:23] Notification daemon vendor name: GNOME
[2024.09.10 21:07:23] Notification daemon version: 45.9
[2024.09.10 21:07:23] Notification daemon specification version: 1.2
[2024.09.10 21:07:23] Notification daemon capabilities: actions, body, body-markup, icon-static, persistence, sound
[2024.09.10 21:07:24] API Warning: not loaded minimal channel applied.
[2024.09.10 21:07:24] Update Info: Starting loading '/home/mmarkk/.local/share/TelegramDesktop/tupdates/tlinuxupd5005003' from 9699328 offset.
[2024.09.10 21:07:24] Update Info: Loading using HTTP from 'https://tdesktop.telega.one/tlinux/tlinuxupd5005003'.
[2024.09.10 21:07:26] RPC Error: request 156 got fail with code 400, error WEBFILE_NOT_AVAILABLE
[2024.09.10 21:07:26] RPC Error: request 180 got fail with code 400, error WEBFILE_NOT_AVAILABLE
[2024.09.10 21:07:26] API Warning: not loaded minimal channel applied.
[2024.09.10 21:07:30] RPC Error: request 224 got fail with code 400, error WEBFILE_NOT_AVAILABLE
[2024.09.10 21:07:56] API Warning: not loaded minimal channel applied.
[2024.09.10 21:07:57] API Warning: not loaded minimal channel applied.
socketpair commented 1 month ago
[2024.09.10 21:07:22] OpenGL: Force-disabled.
[2024.09.10 21:07:22] OpenGL: [FALSE] (Window)

I think problem here. How to reset these settings ? GUI is not available. Clearing workdir is not appropriate.

Aokromes commented 1 month ago

https://github.com/telegramdesktop/tdesktop/issues/27598 ?

ilya-fedin commented 1 month ago

Please provide screenshots. I can't reproduce.

socketpair commented 1 month ago

Screenshot the same as in https://github.com/telegramdesktop/tdesktop/issues/27598 . I tried to change OpenGL settings in TG, and after changing it and restarting, all windows (not only media viewer) become transparent. Yes, wayland. I'm ready to do some experiments/debug/test/provide something.

socketpair commented 1 month ago

First, I need to revert OpenGL setting. If I change workdir, windows rendered normally (at least first registration window).

socketpair commented 1 month ago

image

ilya-fedin commented 1 month ago

Ensure you have latest OS

socketpair commented 1 month ago

I have latest Fedora 39 (with all updates installed, and PC rebooted)

ilya-fedin commented 1 month ago

But Fedora 39 is not the latest, the latest is Fedora 40. Fedora 39 contains GNOME 45 that contains a known bug that looks like you describe.

socketpair commented 1 month ago

Okay, but previous version of TG worked OK. Could you please point to the bug in Gnome ? Are there any workarounds ?

ilya-fedin commented 1 month ago

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3475 I'm not aware of any workarounds. If your distro is still supported, you can ask your maintainer to backport the patch. If not, it's a good idea to update.