New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Black screen when viewing media fullscreen #25192
Comments
Hi, Update: |
Apparently some mesa bugs |
Tried disabling this option. No issue so far. However, version 4.2.0 does not seem to have the same issue. Updating to 4.2.4 introduced the problem. |
I see you specified |
The binary used is compiled by Arch Linux official repository from upstream source. It should behave the same as the official binary downloaded from Telegram website. |
It won't behave the same due to other libraries versions and the lack of Telegram's patches for third-party libraries |
While I was able to make it work again with version 4.2.4 with "Enable OpenGL rendering for media = Enable". OpenGL on + System frame on : black fullscreen |
I don't believe that's the case, its value affects only the main window, media viewer doesn't even subclass from the class that provides custom decorations |
The official binary from github has no issue with OpenGL on + System frame on. |
From my experience, a clean install would not resolve the issue. Here's what I have done:
One thing worth noting is that after I perform the fresh install with steps above, Telegram desktop would launch under Wayland by default (observed by larger cursor when hovering on the window and not being able to use non-native notifications). |
What about checking the official binary? |
I'm using this binary version for 3 days : Seams good at first but the black screen is here again. I'm using HiDPI and the 200% scale settings in Telegram if this can be related. OpenGL infos :
|
Can you reproduce with 4.2.0? Because I still don't believe it's tdesktop fault, I believe it's a change in mesa, X11/Xwayland or GNOME. |
Can confirm that it is reproducing on official binary version 4.2.4.
Never seen this bug happening on 4.2.0 with Arch Linux built packages (on XWayland). |
can you try downloading 4.2.0 official version from releases of github and try? |
Yeah, that's required, if it won't be reproduced, then it's also required to check all the official binary versions between 4.2.0 and 4.2.4 (including betas) to find the exact version where it started bugging. If it will still be reproducible, then you will need to check older versions to find the first bugged version. |
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further. |
I had the same issues for a while, I ended up shuffling around with different video drivers, various graphics (ANGLE) settings, disabling hw video decoding, even reinstalling the OS for unrelated reasons and it still happened. Disabling FreeSync from my GPU panel seems to have solved the issue, maybe it has something to do with that? |
My monitor does not support FreeSync, but I indeed used an AMD RX550 GPU on a 4K display with GNOME scaling factor of 200%, not sure if this is related or not. For the testing result of all the official binaries, I haven't got enough time to test them thoroughly. For me personally, I disabled OpenGL rendering in Telegram settings to mitigate the issue. I wish there's more people with similar specs to test it out. |
That for only solved the issue for a few minutes at best on every OS startup, after that it acted the same. @Aokromes as far as I can tell it only happens in 4.2.3 and 4.2.4 for me. |
@Aiku1 I believe your issue is completely different given that disabling OpenGL doesn't help |
As of right now with 4.3 it seems that even with FreeSync enabled (but hw decoding off and ANGLE on "Auto") the bug has disappeared. |
The bug can still be reproduced in 4.3 built by official Arch Linux repo as of now. |
Just downloaded and tried on official binary 4.2.0. It's been running for at least an hour and cannot reproduce yet.
Also, I need to correct the statement. It seems that I mixed up versions at that time, which means I did not test official binary 4.2.4 yet. |
Update: just tested official binary 4.2.4, no problem so far. |
I'm replying not to reopen the issue. But if possible, I would like to know more specifically about the patches that Telegram made to other libraries. The problem could be fixed on the Arch side if we know about these patches and make updates to the building process of the Arch build of tdesktop. Thanks again for helping out! |
Here are the patches: https://github.com/desktop-app/patches/tree/master/qtbase_6_4_0 |
Thanks for the reply. However, I don't seem to see any patches being applied from the GitHub Actions workflows file. So I can't help wondering if there is any proprietary CI workflows other than this (cuz I noticed that all of Telegram pre-built release binaries are released manually by @john-preston instead of github-actions)? Any help is appreciated. |
If you want to build a binary, build instructions are in the README |
Steps to reproduce
QT_QPA_PLATFORM=wayland
)Expected behaviour
Image and video viewer should work properly.
Actual behaviour
The screen goes black when media viewer (both image and video viewer) is fullscreen. For image viewer, the whole display becomes black. For video viewer, only playback control is visible.
Operating system
GNOME 42.4 on Arch Linux
Version of Telegram Desktop
4.2.4
Installation source
Other (unofficial) source
Logs
No logs generated when the bug reproduced
The text was updated successfully, but these errors were encountered: