telegramdesktop / tdesktop

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

Since 5.5.5 window image:preview is too translucency #28463

Open unera opened 1 week ago

unera commented 1 week ago

Steps to reproduce

Debian/11 5.5.5 (static)

Expected behaviour

See above

Actual behaviour

For example I see an image in chat:

изображение

If I click, I see something soap:

изображение

Operating system

Debian/11

Version of Telegram Desktop

5.5.5

Installation source

Static binary from official website

Crash ID

No response

Logs

No response

unera commented 1 week ago

Example 2 (chat):

изображение

Preview:

изображение

unera commented 1 week ago

Addtitonal, 5.5.4 work fine :)

Chat: изображение

Preview:

изображение

unera commented 1 week ago

So at my system

So, I disabled autoupgrade system in my 5.5.4 version

ilya-fedin commented 1 week ago

Can't reproduce any of three. Media viewer works just fine.

unera commented 1 week ago

Can't reproduce any of three. Media viewer works just fine.

see screenshots

ilya-fedin commented 1 week ago

see screenshots

And? I can't confirm it happens. Without a way to reproduce the issue couldn't be worked on.

unera commented 1 week ago

see screenshots

And? I can't confirm it happens. Without a way to reproduce the issue couldn't be worked on.

  1. I have Debian/11 & Telegram
  2. I have some problems that are appeared since latest upgrades (5.5.5, 5.5.6 beta)
  3. Downgrade solves the problems
  4. All problems touche image:preview

So I think that You could look through code changes, that touche image:preview?

Also If You say, I could try any experiments, note library versions, logs, etc.

ilya-fedin commented 1 week ago

So I think that You could look through code changes, that touche image:preview?

There were no code changes that touch it https://github.com/telegramdesktop/tdesktop/compare/v5.5.4...v5.5.5

unera commented 1 week ago

So I think that You could look through code changes, that touche image:preview?

There were no code changes that touch it v5.5.4...v5.5.5

I can't understand C++, so it would be nice if You help me

Situation:

What (as user) I could do?

ilya-fedin commented 1 week ago

I recommend reproducing on a VM. You will likely find which steps to reproduce are lacking while doing that.

ilya-fedin commented 1 week ago

I will also honestly say no one tests tdesktop with Debian. Personally I use NixOS with Plasma 6 Wayland and have a VM with KDE neon user edition, @john-preston uses WSL. Previously he tested with Ubuntu 22.04 in a VM but not sure he does that now.

So it might be just that your distro/DE is incompatible with what tdesktop is tested for and it might be a good idea to switch to another one for stable work with tdesktop.

There are no resources to test more distros/DEs, sorry.

kolayne commented 3 days ago

Good evening.

@ilya-fedin, I am having a similar issue (except not yet in version 5.5.5) on my Arch Linux, with i3 version 4.23, picom version 11.2 (vgit-89c2c).

I've tried bisecting. The last good commit is 7abc921d2058181fd23dcf2de607d160119d4378, then two commits follow for which the build is failing, and then 3f6d184435cadc8289dc302f70b70a90c1ea133c is the first bad commit.

Looking at the changes manually, I presume, the actual reason is the commit 4a84f9fa0049f1c9fa2c4f1a7e3e05db67bef4dd, which updates the lib_ui submodule

ilya-fedin commented 3 days ago

The initial reporter claims this problem is since 5.5.5 while this commit is way later than 5.5.5?

ilya-fedin commented 3 days ago

It feels to me that the problem in your compositors or drivers as I can't reproduce anything like that with any version on my Plasma system

kolayne commented 3 days ago

The initial reporter claims this problem is since 5.5.5 while this commit is way later than 5.5.5?

That's surprising for me as well. Like I said, version 5.5.5 works fine for me.

the problem in your compositors or drivers

Huh! In my laptop I have an nvidia video card with the 560.35.03 nvidia driver installed and NVidia Optimus enabled (that is, by default applications do not access the discrete video card).

I have first tried to uninstall the drivers (and reboot) and the issue persisted, then I tried to install the drivers again and run prime-run ./Telegram which would make it use the discrete video card and the issue was gone!

(examining prime-run on my system and running with different options, I found that the environment variable __GLX_VENDOR_LIBRARY_NAME=nvidia is the necessary and sufficient one)

I'm surprised. Does that tell you anything?

ilya-fedin commented 2 days ago

It means the issue in the driver and nothing could be done about it...

kolayne commented 2 days ago

Two more observations:

ilya-fedin commented 2 days ago

Had the window transparent background before? That window is supposed to have transparent background and the commit you refer fixes applying the transparency hint in OpenGL case (previously it had random success of being applied). If your driver can't handle transparency properly, nothing could be done about that.

kolayne commented 1 day ago

No, the media viewer background was not transparent.

If your driver can't handle transparency properly, nothing could be done about that.

Well, generally, both my driver and compositor support transparency, as I have other applications with transparent windows rendered correctly. But I am not sure whether they are using OpenGL

ilya-fedin commented 1 day ago

Even if they use opengl, they likely use other toolkit and that's likely specific to how the driver and the toolkit interact