Skip to content
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

telegram-desktop color inversion of images and videos in fullscreen #43786

Closed
dm17 opened this issue May 7, 2023 · 6 comments
Closed

telegram-desktop color inversion of images and videos in fullscreen #43786

dm17 opened this issue May 7, 2023 · 6 comments
Labels
bug Something isn't working needs-testing Testing a PR or reproducing an issue needed

Comments

@dm17
Copy link

dm17 commented May 7, 2023

Is this a new report?

Yes

System Info

Void 6.2.13_1 x86_64-musl AuthenticAMD uptodate hold rFFF

Package(s) Affected

telegram-desktop

Does a report exist for this bug with the project's home (upstream) and/or another distro?

No response

Expected behaviour

Image and video colors look the same in telegram-desktop as when they are fullscreened (anytime they're clicked on they full screen).

Actual behaviour

The colors of images and videos invert in fullscreen mode

Steps to reproduce

Click on any image or video, it will fullscreen, and you'll see different colors than in the original

@dm17 dm17 added bug Something isn't working needs-testing Testing a PR or reproducing an issue needed labels May 7, 2023
@dm17
Copy link
Author

dm17 commented May 7, 2023

@Johnnynator I opened this issue here first: telegramdesktop/tdesktop#26264 (comment)
Then I realized it is probably distro-specific, as this tdesktop dev states, if it isn't present in their official static, then it is probably package/distro-specific. So I this seems like the right place for the issue.

If I recall correctly, this has existed in my UX for almost a year.

I also have these env vars set in order to achieve a file chooser that has a search function, but I've tested without them:

TDESKTOP_USE_GTK_FILE_DIALOG=1
TDESKTOP_I_KNOW_ABOUT_GTK_INCOMPATIBILITY=1
QT_QPA_PLATFORMTHEME=gtk3

@Johnnynator
Copy link
Member

I can't reproduce this on any of my systems.

@dm17
Copy link
Author

dm17 commented May 7, 2023

I'm using Xorg with AMDGPU, I guess that could be relevant.

I also see this when I start telegram-desktop:

QPainter::begin: Paint device returned engine == 0, type: 2
QWidget::render: Cannot render with an inactive painter

and then many lines of this:

qt.svg: Error while inflating gzip file: SVG format check failed

@Johnnynator
Copy link
Member

Neither of these are relevant for this issue and also get printed on a working configuration.

@dm17
Copy link
Author

dm17 commented May 7, 2023

I just tried 4.8.1_1 - thanks to whomever just packaged it. No change. Yes, I'm a bit lost for potential causes. I don't see anything relevant or special in this system except for it being musl.

To be a little more concrete. If I click on the chat from the telegram service notifications. Then click the telegram logo that's it has as its profile picture, it becomes fullscreen. I took a screenshot of the fullscreened logo:

telegram-logo

Are those technically "inverted colors"? Not sure.

@dm17
Copy link
Author

dm17 commented May 16, 2023

Fixed! The clue was two other programs I wasn't using that had the same inverted colors issue (regardless of fullscreen or not, in videos, no matter what driver or output method was used) - vlc and mplayer. After hitting my head on the table a few times, I figured I had 100% stock X11 configuration, but I found one setting was changed: DefaultDepth! So 10-bit color is generally broken on very standard hardware/software configurations in X11! Anyway, that's a bit of context if anyone gets stuck looking for the cause. DefaultDepth 24 (8-bit) fixes this.

@dm17 dm17 closed this as completed May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-testing Testing a PR or reproducing an issue needed
Projects
None yet
Development

No branches or pull requests

2 participants