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 on Flatpak unexpectedly closes after a short time #25215

Closed
R4rum opened this issue Oct 21, 2022 · 7 comments
Closed

Telegram on Flatpak unexpectedly closes after a short time #25215

R4rum opened this issue Oct 21, 2022 · 7 comments

Comments

@R4rum
Copy link

R4rum commented Oct 21, 2022

Steps to reproduce

  1. Run Telegram
  2. Wait a bit
  3. Telegram crashes

Expected behaviour

Telegram doesn't crash

Actual behaviour

$ flatpak run --branch=stable --arch=x86_64 --command=telegram-desktop --file-forwarding org.telegram.desktop --
Gtk-Message: 19:29:03.255: Failed to load module "canberra-gtk-module"
error: : cannot open
error: : cannot open
error: : cannot open
code 137

I did not notice substantial increase in memory usage.

I do believe it complained something about OpenGL not being available or something, but I pressed the option for it to not bother me about it.

There was a little bit of effort trying to get to debug this, but:
$ flatpak install org.telegram.desktop.Debug org.freedesktop.Platform.Debug
Looking for matches…
error: Nothing matches org.freedesktop.Platform.Debug in remote flathub

$ flatpak run --command=sh --devel org.telegram.desktop
error: runtime/org.freedesktop.Sdk/x86_64/21.08 not installed

Operating system

Arch Linux, Plasma

Version of Telegram Desktop

4.2.4

Installation source

Flatpak

Logs

[2022.10.21 19:34:33] Launched version: 4002004, install beta: [FALSE], alpha: 0, debug mode: [TRUE]
[2022.10.21 19:34:33] Executable dir: /app/bin/, name: telegram-desktop
[2022.10.21 19:34:33] Initial working dir: /home/mikko/
[2022.10.21 19:34:33] Working dir: /home/mikko/.var/app/org.telegram.desktop/data/TelegramDesktop/
[2022.10.21 19:34:33] Command line: telegram-desktop -debug
[2022.10.21 19:34:33] Executable path before check: /app/bin/telegram-desktop
[2022.10.21 19:34:33] Logs started
[2022.10.21 19:34:33] Launcher filename: org.telegram.desktop.desktop
[2022.10.21 19:34:33] Connecting local socket to /run/user/1000/app/org.telegram.desktop/080f4b96843bc0b5c7ea12558529f6e1...
[2022.10.21 19:34:33] Socket connect error 0, starting server and app...
[2022.10.21 19:34:33] Moved logging from '/home/mikko/.var/app/org.telegram.desktop/data/TelegramDesktop/log_start0.txt' to '/home/mikko/.var/app/org.telegram.desktop/data/TelegramDesktop/log.txt'!
[2022.10.21 19:34:33] Primary screen DPI: 96
[2022.10.21 19:34:33] System tray available: [TRUE]
[2022.10.21 19:34:33] Font: from ':/gui/fonts/DAOpenSansRegular.ttf' loaded 'DAOpenSansRegular'
[2022.10.21 19:34:33] Font: from ':/gui/fonts/DAVazirRegular.ttf' loaded 'DAVazirRegular'
[2022.10.21 19:34:33] Font: from ':/gui/fonts/DAOpenSansRegularItalic.ttf' loaded 'DAOpenSansRegularItalic'
[2022.10.21 19:34:33] Font: from ':/gui/fonts/DAVazirRegular.ttf' loaded 'DAVazirRegular'
[2022.10.21 19:34:33] Font: from ':/gui/fonts/DAOpenSansSemiboldAsBold.ttf' loaded 'DAOpenSansSemibold'
[2022.10.21 19:34:33] Font: from ':/gui/fonts/DAVazirMediumAsBold.ttf' loaded 'DAVazirMedium'
[2022.10.21 19:34:33] Font: from ':/gui/fonts/DAOpenSansSemiboldItalicAsBold.ttf' loaded 'DAOpenSansSemiboldItalic'
[2022.10.21 19:34:33] Font: from ':/gui/fonts/DAVazirMediumAsBold.ttf' loaded 'DAVazirMedium'
[2022.10.21 19:34:33] Font: from ':/gui/fonts/DAOpenSansSemiboldAsBold.ttf' loaded 'DAOpenSansSemibold'
[2022.10.21 19:34:33] Font: from ':/gui/fonts/DAVazirMediumAsBold.ttf' loaded 'DAVazirMedium'
[2022.10.21 19:34:33] Font: from ':/gui/fonts/DAOpenSansSemiboldItalicAsBold.ttf' loaded 'DAOpenSansSemiboldItalic'
[2022.10.21 19:34:33] Font: from ':/gui/fonts/DAVazirMediumAsBold.ttf' loaded 'DAVazirMedium'
[2022.10.21 19:34:33] Icon theme: Adwaita
[2022.10.21 19:34:33] Fallback icon theme: 
[2022.10.21 19:34:33] App Info: reading settings...
[2022.10.21 19:34:33] App Info: reading encrypted settings...
[2022.10.21 19:34:33] Lang Info: Loaded cached, keys: 4219
[2022.10.21 19:34:33] OpenAL Logging Level: 3
[2022.10.21 19:34:33] Audio Playback Devices: Built-in Audio Analog Stereo
[2022.10.21 19:34:33] Audio Playback Default Device: Built-in Audio Analog Stereo
[2022.10.21 19:34:33] Audio Capture Devices: Monitor of Built-in Audio Analog Stereo
[2022.10.21 19:34:33] Audio Capture Default Device: Monitor of Built-in Audio Analog Stereo
[2022.10.21 19:34:33] Using Unity launcher counter.
[2022.10.21 19:34:33] App Info: reading accounts info...
[2022.10.21 19:34:33] App Info: reading encrypted info...
[2022.10.21 19:34:33] App Info: reading map...
[2022.10.21 19:34:33] App Info: reading encrypted map...
[2022.10.21 19:34:33] App Info: reading encrypted user settings...
[2022.10.21 19:34:33] App Info: encrypted user settings read.
[2022.10.21 19:34:33] App Info: reading encrypted mtp data...
[2022.10.21 19:34:33] MTP Info: read keys, current: 4, to destroy: 0
[2022.10.21 19:34:33] Map read time: 0
[2022.10.21 19:34:33] App Info: reading encrypted mtp config...
[2022.10.21 19:34:33] Export Info: Destroy top bar by controller removal.
[2022.10.21 19:34:33] OpenGL: Force-disabled.
[2022.10.21 19:34:33] OpenGL: [FALSE] (OverlayWidget)
[2022.10.21 19:34:33] Notification daemon product name: Plasma
[2022.10.21 19:34:33] Notification daemon vendor name: KDE
[2022.10.21 19:34:33] Notification daemon version: 5.26.1
[2022.10.21 19:34:33] Notification daemon specification version: 1.2
[2022.10.21 19:34:33] Notification daemon capabilities: body, body-hyperlinks, body-markup, body-images, icon-static, actions, persistence, inline-reply, x-kde-urls, x-kde-origin-name, x-kde-display-appname, inhibitions
@R4rum R4rum added the bug label Oct 21, 2022
@Aokromes
Copy link
Collaborator

plz try downloading official version from https://desktop.telegram.org

@R4rum
Copy link
Author

R4rum commented Oct 21, 2022

Flatpak is shown directly on that page you just linked, too. I used the command given there, and I don't believe I modified any of the settings. I'm still a bit unclear on what's the criteria for an "official" Flatpak, but the biggest contributor to telegram-desktop (John Preston) is among the contributors to the Flatpak, and the third biggest contributor to telegram-desktop (ilya-fedin) is the biggest contributor to the Flatpak. Sounds "official enough" to me, and it was also listed on the new issue page under the Installation source.

I've successfully used the telegram-desktop package of my distribution before trying out this Flatpak. I did a system update after that, though.

@Aokromes
Copy link
Collaborator

i mean the non-flatpak non-snap version.

@R4rum
Copy link
Author

R4rum commented Oct 21, 2022

It doesn't appear to be crashing in the kind of short time period that I described. Yeah, I don't think it's a total inability in any way to use Telegram that's an issue for me. Just that sandboxed version of it.

@ilya-fedin
Copy link
Contributor

Maybe you've prohibited tdesktop to run in background once? flatpak remembers that and gives no way to reset that in any other way than CLI AFAIK: flatpak permission-remove background background org.telegram.desktop

@R4rum
Copy link
Author

R4rum commented Oct 22, 2022

Yeah, it asked that at one point. I think I was looking into the setting of launching Telegram at startup. That's when it asked me, but I figured I could do the autostarting from Plasma's side without going into giving Telegram additional permissions, and didn't end up giving that permission. If it's such a crucial setting that can cause a lot of crashing without, maybe something should be done to make it so other users don't end up in this kind of a situation (unless maybe if they manually tamper with the sandbox settings). I do believe I even turned off the setting of autostarting afterwards, yet still apparently there were such problems.

After putting in that command, I've not had such a crash. Such a toggle is also available in Flatseal.

@ilya-fedin
Copy link
Contributor

I don't think we have the right to alter the UI, sorry. You can try to submit an issue to https://github.com/flatpak/xdg-desktop-portal to separate autostart from background (currently you have to ask background permission in order to get autostart).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants