telegramdesktop / tdesktop

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

[Linux] Improve message 'There may be a problem with you graphics drivers and OpenGL' #27090

Open vzhn opened 10 months ago

vzhn commented 10 months ago

Is your feature request related to a problem?

I get this message when I have latest drivers but everything else excepting Telegram is correctly working with OpenGL. Everyone is expecting that driver is managed by package managers like dnf or apt-get

But I have found what goes wrong here:

a) Telegram is launched inside flatpack sandbox. b) Flatpack is using it's own NVIDIA client driver packages. c) Flatpack has multiple client driver packages including outdated ones.

So I removed all extra flatpack packages leaving only one that is matching my driver version.

🎉 And finally it works! 🎉

Describe the solution you'd like

It takes me entire day to dig what is going wrong here. It was so frustrating.

Maybe you could improve error message, giving some hint to look into flatpack packages, because it is not obvious that flatpack is using own nvidia driver client packages.

Describe alternatives you've considered

No alternatives are needed here.

Additional context

image_2023-11-11_17-43-16

1.      md.obsidian.Obsidian.Locale stable  u   flathub < 3.6 MB (partial)
 2.     org.freedesktop.Platform.GL.nvidia-515-43-04    1.4 u   flathub < 359.7 MB
 3.     org.freedesktop.Platform.GL.nvidia-515-48-07    1.4 u   flathub < 361.4 MB
 4.     org.freedesktop.Platform.GL.nvidia-515-65-01    1.4 u   flathub < 365.1 MB
 5.     org.freedesktop.Platform.GL.nvidia-520-61-05    1.4 u   flathub < 405.8 MB
 6.     org.freedesktop.Platform.GL.nvidia-525-60-13    1.4 u   flathub < 414.3 MB
 7.     org.freedesktop.Platform.GL.nvidia-525-85-12    1.4 u   flathub < 415.4 MB
 8.     org.freedesktop.Platform.GL.nvidia-530-30-02    1.4 u   flathub < 345.1 MB
 9.     org.freedesktop.Platform.GL.nvidia-535-104-05   1.4 u   flathub < 341.9 MB
10.     org.freedesktop.Platform.GL.nvidia-535-129-03   1.4 i   flathub < 342.6 MB
11.     org.freedesktop.Platform.GL.nvidia-535-54-03    1.4 u   flathub < 348.0 MB
12.     org.freedesktop.Platform.GL32.nvidia-515-43-04  1.4 u   flathub < 359.6 MB
13.     org.freedesktop.Platform.GL32.nvidia-515-48-07  1.4 u   flathub < 361.3 MB
14.     org.freedesktop.Platform.GL32.nvidia-515-65-01  1.4 u   flathub < 365.0 MB
15.     org.freedesktop.Platform.GL32.nvidia-520-61-05  1.4 u   flathub < 405.7 MB
16.     org.freedesktop.Platform.GL32.nvidia-525-60-13  1.4 u   flathub < 414.2 MB
17.     org.freedesktop.Platform.GL32.nvidia-525-85-12  1.4 u   flathub < 415.3 MB
18.     org.freedesktop.Platform.GL32.nvidia-530-30-02  1.4 u   flathub < 345.0 MB
19.     org.freedesktop.Platform.GL32.nvidia-535-104-05 1.4 u   flathub < 341.8 MB
20.     org.freedesktop.Platform.GL32.nvidia-535-129-03 1.4 i   flathub < 342.5 MB
21.     org.freedesktop.Platform.GL32.nvidia-535-54-03  1.4 u   flathub < 348.0 MB
zzhzero commented 2 months ago

I think you guys should make it clear to update via flatpak

flatpak update