Closed sergeG closed 1 year ago
The same bug is reproducible with telegram-desktop flatpak.
Linux binary from desktop.telegram.org works in correct way.
It sounds like the portal is crashing or something like that, check systemctl --user status xdg-desktop-portal{,-gtk}
xdg-desktop-portal-gtk.service - Portal service (GTK+/GNOME implementation) Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal-gtk.service; static; vendor preset: enabled) Active: active (running) since Fri 2022-11-18 20:53:03 MSK; 3 days ago Main PID: 2557 (xdg-desktop-por) CGroup: /user.slice/user-1000.slice/user@1000.service/xdg-desktop-portal-gtk.service └─2557 /usr/libexec/xdg-desktop-portal-gtk
ноя 22 00:17:08 nidysey xdg-desktop-por[2557]: Unhandled parent window type ноя 22 00:17:08 nidysey xdg-desktop-por[2557]: Failed to associate portal window with parent window ноя 22 00:18:24 nidysey xdg-desktop-por[2557]: Unhandled parent window type ноя 22 00:18:24 nidysey xdg-desktop-por[2557]: Failed to associate portal window with parent window ноя 22 00:18:24 nidysey xdg-desktop-por[2557]: Unhandled parent window type ноя 22 00:18:24 nidysey xdg-desktop-por[2557]: Failed to associate portal window with parent window ноя 22 00:18:24 nidysey xdg-desktop-por[2557]: Unhandled parent window type ноя 22 00:18:24 nidysey xdg-desktop-por[2557]: Failed to associate portal window with parent window ноя 22 00:28:00 nidysey xdg-desktop-por[2557]: Unhandled parent window type ноя 22 00:28:00 nidysey xdg-desktop-por[2557]: Failed to associate portal window with parent window
what about the frontend (without the -gtk)?
Nothing interesting:
systemctl --user status xdg-desktop-portal ● xdg-desktop-portal.service - Portal service Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal.service; static; vendor preset: enabled) Active: active (running) since Fri 2022-11-18 17:33:13 MSK; 3 days ago Main PID: 4959 (xdg-desktop-por) CGroup: /user.slice/user-1000.slice/user@1000.service/xdg-desktop-portal.service └─4959 /usr/libexec/xdg-desktop-portal
ноя 18 18:42:00 nidysey xdg-desktop-portal[4959]: Opening in existing browser session. ноя 18 23:01:18 nidysey xdg-desktop-portal[4959]: Opening in existing browser session. ноя 21 16:27:04 nidysey evince[32203]: gtk_notebook_get_tab_label: assertion 'list != NULL' failed ноя 21 16:27:04 nidysey evince[32203]: gtk_notebook_get_tab_label: assertion 'list != NULL' failed ноя 21 16:27:04 nidysey evince[32203]: gtk_notebook_get_tab_label: assertion 'list != NULL' failed ноя 21 16:27:04 nidysey evince[32203]: gtk_notebook_get_tab_label: assertion 'list != NULL' failed ноя 21 16:27:04 nidysey evince[32203]: gtk_notebook_get_tab_label: assertion 'list != NULL' failed ноя 21 16:27:04 nidysey evince[32203]: gtk_notebook_get_tab_label: assertion 'list != NULL' failed ноя 21 16:27:04 nidysey evince[32203]: gtk_notebook_get_tab_label: assertion 'list != NULL' failed ноя 21 16:27:04 nidysey evince[32203]: gtk_notebook_get_tab_label: assertion 'list != NULL' failed
does it start to work if you restart it?
Portal and portal-gtk can be restarted without any problem. After restarting portals and telegram-desktop the bug persists.
please provide tdesktop logs
Where to put the logs? It can contain private info. Moreover, mtp log is enough big (5M), even from single attempt to list files attached to a chat and open some of them.
No, only the log.txt and terminal output (that's where third party libraries write usually) are needed. They don't contain private information.
$ /snap/bin/telegram-desktop
(process:11601): WARNING : 09:56:28.866: Can't set the global locale to the user's preferred locale. locale::facet::_S_create_c_locale name not valid The environment variable LANG may be wrong.
(telegram-desktop:11601): Gtk-WARNING **: 09:56:28.907: Locale not supported by C library.
Using the fallback 'C' locale.
Gtk-Message: 09:56:28.938: Failed to load module "canberra-gtk-module"
Gtk-Message: 09:56:28.939: Failed to load module "canberra-gtk-module"
Fontconfig warning: "/etc/fonts/conf.avail/53-monospace-lcd-filter.conf", line 10: Having multiple values in
[2022.11.22 09:56:28] Launched version: 4003001, install beta: [FALSE], alpha: 0, debug mode: [TRUE]
[2022.11.22 09:56:28] Executable dir: /snap/telegram-desktop/4312/usr/bin/, name: telegram-desktop
[2022.11.22 09:56:28] Initial working dir: /home/serge/
[2022.11.22 09:56:28] Working dir: /home/serge/snap/telegram-desktop/4312/.local/share/TelegramDesktop/
[2022.11.22 09:56:28] Command line: telegram-desktop
[2022.11.22 09:56:28] Executable path before check: /snap/telegram-desktop/4312/usr/bin/telegram-desktop
[2022.11.22 09:56:28] Logs started
[2022.11.22 09:56:28] Launcher filename: telegram-desktop_telegram-desktop.desktop
[2022.11.22 09:56:28] fromIccProfile: failed size sanity 2
[2022.11.22 09:56:28] Connecting local socket to /tmp/859b46e1de7e096e581d9631a9eeaef7-{87A94AB0-E370-4cde-98D3-ACC110C5967D}...
[2022.11.22 09:56:28] Socket connect error 0, starting server and app...
[2022.11.22 09:56:28] Moved logging from '/home/serge/snap/telegram-desktop/4312/.local/share/TelegramDesktop/log_start0.txt' to '/home/serge/snap/telegram-desktop/4312/.local/share/TelegramDesktop/log.txt'!
[2022.11.22 09:56:28] Primary screen DPI: 145
[2022.11.22 09:56:28] System tray available: [TRUE]
[2022.11.22 09:56:28] Font: from ':/gui/fonts/DAOpenSansRegular.ttf' loaded 'DAOpenSansRegular'
[2022.11.22 09:56:29] Font: from ':/gui/fonts/DAVazirRegular.ttf' loaded 'DAVazirRegular'
[2022.11.22 09:56:29] Font: from ':/gui/fonts/DAOpenSansRegularItalic.ttf' loaded 'DAOpenSansRegularItalic'
[2022.11.22 09:56:29] Font: from ':/gui/fonts/DAVazirRegular.ttf' loaded 'DAVazirRegular'
[2022.11.22 09:56:29] Font: from ':/gui/fonts/DAOpenSansSemiboldAsBold.ttf' loaded 'DAOpenSansSemibold'
[2022.11.22 09:56:29] Font: from ':/gui/fonts/DAVazirMediumAsBold.ttf' loaded 'DAVazirMedium'
[2022.11.22 09:56:29] Font: from ':/gui/fonts/DAOpenSansSemiboldItalicAsBold.ttf' loaded 'DAOpenSansSemiboldItalic'
[2022.11.22 09:56:29] Font: from ':/gui/fonts/DAVazirMediumAsBold.ttf' loaded 'DAVazirMedium'
[2022.11.22 09:56:29] Font: from ':/gui/fonts/DAOpenSansSemiboldAsBold.ttf' loaded 'DAOpenSansSemibold'
[2022.11.22 09:56:29] Font: from ':/gui/fonts/DAVazirMediumAsBold.ttf' loaded 'DAVazirMedium'
[2022.11.22 09:56:29] Font: from ':/gui/fonts/DAOpenSansSemiboldItalicAsBold.ttf' loaded 'DAOpenSansSemiboldItalic'
[2022.11.22 09:56:29] Font: from ':/gui/fonts/DAVazirMediumAsBold.ttf' loaded 'DAVazirMedium'
[2022.11.22 09:56:29] Icon theme: ubuntu-mono-dark
[2022.11.22 09:56:29] Fallback icon theme: Adwaita
[2022.11.22 09:56:29] App Info: reading settings...
[2022.11.22 09:56:29] App Info: reading encrypted settings...
[2022.11.22 09:56:29] Lang Info: Loaded cached, keys: 4272
[2022.11.22 09:56:29] OpenAL Logging Level: 3
[2022.11.22 09:56:29] Audio Playback Devices: Built-in Audio Analog Stereo
[2022.11.22 09:56:29] Audio Playback Default Device: Built-in Audio Analog Stereo
[2022.11.22 09:56:29] Audio Capture Devices: Built-in Audio Analog Stereo;Monitor of Built-in Audio Analog Stereo
[2022.11.22 09:56:29] Audio Capture Default Device: Built-in Audio Analog Stereo
[2022.11.22 09:56:29] Using Unity launcher counter.
[2022.11.22 09:56:29] App Info: reading accounts info...
[2022.11.22 09:56:29] App Info: reading encrypted info...
[2022.11.22 09:56:29] App Info: reading map...
[2022.11.22 09:56:29] App Info: reading encrypted map...
[2022.11.22 09:56:29] App Info: reading encrypted user settings...
[2022.11.22 09:56:29] App Info: encrypted user settings read.
[2022.11.22 09:56:29] App Info: reading encrypted mtp data...
[2022.11.22 09:56:29] MTP Info: read keys, current: 4, to destroy: 0
[2022.11.22 09:56:29] Map read time: 1
[2022.11.22 09:56:29] App Info: reading encrypted mtp config...
[2022.11.22 09:56:29] Export Info: Destroy top bar by controller removal.
[2022.11.22 09:56:29] Choosing xcb gl-integration based on following priority
QList("xcb_glx", "xcb_egl")
[2022.11.22 09:56:29] Xcb GLX gl-integration created
[2022.11.22 09:56:29] Xcb GLX gl-integration successfully initialized
[2022.11.22 09:56:29] Requested format before FBConfig/Visual selection: QSurfaceFormat(version 2.0, options QFlags
It seems portal stops to work for you randomly, but doesn't report any error, so the underlying third party libraries that call it don't log anything. I don't think we can do anything here, your xdg-desktop-portal is broken :(
Can this
be related with my problem?
We're using Gio::AppInfo::launch_default_for_uri (C++ binding to g_app_info_launch_default_for_uri), not QDesktopServices::openUrl, but we do fallback to it if the first one raises an exception (this doesn't seem to happen as portal doesn't seem to raise a error)
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.
Steps to reproduce
I have quite many PDF attachments in chats. Since the last upgrade I cannot open most of them. Clicking on the PDF attachment results in nothing. Some recent pdf attachment in some chats can be normally open. Nothing specific can be found in logs.
I can reproduce this bug on several computers where
xdg-desktop-portal/bionic,now 1.7.2-flatpak1~bionic xdg-desktop-portal-gtk/bionic,now 1.7.1-flatpak1~bionic
and cannot on box where
xdg-desktop-portal/bionic-updates,now 1.0.3-0ubuntu0.2 amd64 [installed,automatic] xdg-desktop-portal-gtk/bionic-updates,now 1.0.2-0ubuntu1.1 amd64 [installed,automatic]
Removing config files and reactivating telegram usually allows me to open at first some PDF. But later the problem returns.
Expected behaviour
portal should be activated by clicking on PDF attachments
Actual behaviour
Nothing happens
Operating system
Ubuntu 18.04
Version of Telegram Desktop
4.3.1
Installation source
Snap
Logs
No response