telegramdesktop / tdesktop

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

flatpak not starting - Linux Ubuntu 18.04.6 LTS - NVidia driver ver 390.157 #27197

Closed JazzTp closed 10 months ago

JazzTp commented 11 months ago

Steps to reproduce

  1. installed as recommended (I didn't install as sudoer, should I have?)
    flatpak install flathub org.telegram.desktop
  2. launched as recommnded in the above linked page
    flatpak run org.telegram.desktop

Expected behaviour

I'd expect it to start just fine.

I have non-flatpak Telegram desktop ver 4.4.1 running fine (but the latest requires GLIBC-2.28 which is unavailable on this pretty old Ubuntu system).

I have other flatpak programs running fine (which wouldn't run as normal binaries because they also require GLIBC-2.28).

Actual behaviour

image

If I click on "Keep Disabled" nothing happens, "action" only starts again by clicking "Enable".

Console output:

$ flatpak run org.telegram.desktop
Gtk-Message: 19:01:46.690: Failed to load module "canberra-gtk-module"
Gtk-Message: 19:01:46.690: Failed to load module "canberra-gtk-module"
Fontconfig error: Cannot load config file "/run/host/font-dirs.xml": No such file: /run/host/font-dirs.xml
Qt: Session management error: Could not open network socket
QPainter::begin: Paint device returned engine == 0, type: 2
QWidget::render: Cannot render with an inactive painter
Gtk-Message: 19:02:08.522: Failed to load module "canberra-gtk-module"
Gtk-Message: 19:02:08.524: Failed to load module "canberra-gtk-module"
Fontconfig error: Cannot load config file "/run/host/font-dirs.xml": No such file: /run/host/font-dirs.xml
Qt: Session management error: Could not open network socket
QPainter::begin: Paint device returned engine == 0, type: 2
QWidget::render: Cannot render with an inactive painter
*** stack smashing detected ***: terminated
$

Operating system

Linux Ubuntu 18.04.6 LTS - NVidia driver ver 390.157

Version of Telegram Desktop

4.12.2 ("Changes in version 4.12.2" I'm reading here https://flathub.org/apps/org.telegram.desktop)

Installation source

Flatpak

Crash ID

I don't see how to enter Settings to enable beta versions and issue a cheat code, since I can't launch the GUI at all.

Also, I don't find anything related with Telegram under ~/.config/

Could anybody please point me to a settings file, specifically the one the flatpak version would use, where I could enable beta versions, and to an alternative command line interface, if any, through which I might issue the necessary cheat codes, if necessary?

Logs

Please see the above section "Crash ID".

no logs provided for now, sorry
larouxn commented 10 months ago

latest requires GLIBC-2.28 which is unavailable on this pretty old Ubuntu system

Was about to say, it appears Ubuntu 18.04 reached end of life in May of this year (2023), approximately 8 months ago. Pretty unlikely to have apps support an unsupported OS re: libraries and whatnot, as you mentioned.

EOL source: https://ubuntu.com/about/release-cycle

JazzTp commented 10 months ago

latest requires GLIBC-2.28 which is unavailable on this pretty old Ubuntu system

Was about to say, it appears Ubuntu 18.04 reached end of life in May of this year (2023), approximately 8 months ago. Pretty unlikely to have apps support an unsupported OS re: libraries and whatnot, as you mentioned.

EOL source: https://ubuntu.com/about/release-cycle

Yes long due upgrade, plenty of things to do and plenty of stuff I'm still using on this PC as it is.

But that's what flatpak normally overcomes, as I said I have other programs requiring GLIBC-2.28 and their flatpak distribution works just fine.

Anyways, you certainly have priorities, I reported just in case it serves (no problems for me, I've already connected another disk to put a new OS on it, a few others I know might not sort it out as quickly but as I said you certainly have priorities).

ghost commented 10 months ago

I have the same problem on Fedora 39 and Nvidia 545.29.06. I don't see the OpenGL notification though. When I open Telegram, its window is glitched first ~10 seconds. Then I type in my phone number, press next and nothing happens. Screenshot

ghost commented 10 months ago

I downloaded Telegram from telegram.org and it works fine. Only Flathub and Arch builds are broken.

lifehackerhansol commented 10 months ago

Snap package also appears to be broken with the same behaviour, on Ubuntu 23.10, with Nvidia 525/535.

Note that, after a few tries, it'll eventually hang for 30 seconds and then appear, and proceed to do absolutely nothing (no QR shows up, phone number input does nothing, etc). Launching the Snap or flatpak package from command line shows the same behaviour.

The not-containerized version of Telegram works perfectly, but also I'm a bit too lazy to set up a .desktop for it.

ilya-fedin commented 10 months ago

Folks, please stop mixing various issues here. The first post of the issue is about non-working 'keep disabled' button. If your problem is not with the button, you don't have this issue.

ilya-fedin commented 10 months ago

The not-containerized version of Telegram works perfectly, but also I'm a bit too lazy to set up a .desktop for it.

This is done automatically, you don't have to do that.

ilya-fedin commented 10 months ago

Should be fixed by https://github.com/telegramdesktop/tdesktop/commit/4337f0b509af00839aa21c4ac5aaa3b88e271c90

Samirako3d commented 10 months ago

From Flatseal Enable D-Bass System Bus and it will work

ilya-fedin commented 10 months ago

I don't think this can really help cause tdesktop doesn't use the system bus