Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#60932 - [xdg-desktop-portal] The service fails to run

Attached to Project: Arch Linux
Opened by Amir Mohammadi (183.amir) - Thursday, 29 November 2018, 14:42 GMT
Last edited by Doug Newgard (Scimmia) - Tuesday, 01 January 2019, 17:28 GMT
Task Type Bug Report
Category Packages: Extra
Status Assigned
Assigned To Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 1
Private No

Details

Description:

I have Gnome 3.30 installed and some flatpak applications hang the desktop for some time and then start.
Looking into the issue looks like the problem arises with xdg-desktop-portal. I can see from the logs:

systemd[15128]: xdg-desktop-portal.service: Main process exited, code=dumped, status=11/SEGV
systemd[15128]: xdg-desktop-portal.service: Failed with result 'core-dump'.
systemd[15128]: Failed to start Portal service.
-- Subject: Unit UNIT has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit UNIT has failed.
--
-- The result is failed.
systemd-coredump[16862]: Process 16808 (xdg-desktop-por) of user 1000 dumped core.

Stack trace of thread 16808:
#0 0x000055b761010ac8 n/a (xdg-desktop-portal)
#1 0x000055b761010b68 n/a (xdg-desktop-portal)
#2 0x00007f41e115a687 n/a (libgio-2.0.so.0)
#3 0x00007f41e11ab194 n/a (libgio-2.0.so.0)
#4 0x00007f41e11adb77 n/a (libgio-2.0.so.0)
#5 0x00007f41e1158543 n/a (libgio-2.0.so.0)
#6 0x00007f41e11ab194 n/a (libgio-2.0.so.0)
#7 0x00007f41e11ab1c9 n/a (libgio-2.0.so.0)
#8 0x00007f41e0fe0271 g_main_context_dispatch (libglib-2.0.so.0)
#9 0x00007f41e0fe1f89 n/a (libglib-2.0.so.0)
#10 0x00007f41e0fe2f62 g_main_loop_run (libglib-2.0.so.0)
#11 0x000055b7610104ed n/a (xdg-desktop-portal)
#12 0x00007f41e0d7b223 __libc_start_main (libc.so.6)
#13 0x000055b76101070e n/a (xdg-desktop-portal)

Stack trace of thread 16810:
#0 0x00007f41e0e47c21 __poll (libc.so.6)
#1 0x00007f41e0fe1ee0 n/a (libglib-2.0.so.0)
#2 0x00007f41e0fe2f62 g_main_loop_run (libglib-2.0.so.0)
#3 0x00007f41e1148c28 n/a (libgio-2.0.so.0)
#4 0x00007f41e0fab3eb n/a (libglib-2.0.so.0)
#5 0x00007f41e0f22a9d start_thread (libpthread.so.0)
#6 0x00007f41e0e52b23 __clone (libc.so.6)

Stack trace of thread 16809:
#0 0x00007f41e0e47c21 __poll (libc.so.6)
#1 0x00007f41e0fe1ee0 n/a (libglib-2.0.so.0)
#2 0x00007f41e0fe1fce g_main_context_iteration (libglib-2.0.so.0)
#3 0x00007f41e0fe2022 n/a (libglib-2.0.so.0)
#4 0x00007f41e0fab3eb n/a (libglib-2.0.so.0)
#5 0x00007f41e0f22a9d start_thread (libpthread.so.0)
#6 0x00007f41e0e52b23 __clone (libc.so.6)

Stack trace of thread 16812:
#0 0x00007f41e0e47c21 __poll (libc.so.6)
#1 0x00007f41e0fe1ee0 n/a (libglib-2.0.so.0)
#2 0x00007f41e0fe1fce g_main_context_iteration (libglib-2.0.so.0)
#3 0x00007f41dec75bde n/a (libdconfsettings.so)
#4 0x00007f41e0fab3eb n/a (libglib-2.0.so.0)
#5 0x00007f41e0f22a9d start_thread (libpthread.so.0)
#6 0x00007f41e0e52b23 __clone (libc.so.6)
-- Subject: Process 16808 (xdg-desktop-por) dumped core
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: man:core(5)
--
-- Process 16808 (xdg-desktop-por) crashed and dumped core.


This issue was discussed here: https://bbs.archlinux.org/viewtopic.php?id=224787 and https://github.com/flatpak/xdg-desktop-portal-gtk/issues/72
but what I don't understand is that why on my computer where I use gnome-shell and gdm is this happening.

I have reported the issue here: https://github.com/flatpak/xdg-desktop-portal-gtk/issues/107
but have not received any answer yet.

This problem does not exist in a fresh install of Fedora 29 so I think either my system is mis-configured or we are missing something in our packaging.

Running `dbus-update-activation-environment --systemd DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY` alleviates the issue but I do not understand why I should run this in a vanilla Gnome installation.

Additional info:
* package version(s)
xdg-desktop-portal 1.0.3-1
xdg-desktop-portal-gtk 1.0.2-1
flatpak 1.1.0-1
gnome-shell 1:3.30.2-1
gdm 3.30.2-1
systemd 239.303-1
dbus 1.12.10-2

* config and/or log files etc.


Steps to reproduce:

On Arch Linux with Gnome and GDM, you can install this app:
https://flathub.org/apps/details/org.gahshomar.Gahshomar
and run it. After running, look at `journalctl -xe` for errors.
This task depends upon

Comment by Jan Alexander Steffens (heftig) - Tuesday, 01 January 2019, 20:10 GMT
Are you running [testing]? This is probably fallout from systemd 240.
Comment by Amir Mohammadi (183.amir) - Tuesday, 01 January 2019, 22:56 GMT
No, I am not running [testing]. The systemd version is 239.370-1 on my computer.
Comment by Alex Mason (veridiam) - Sunday, 06 January 2019, 09:18 GMT
Also have this issue. It is also causing both GDM and gnome-shell to take a very long time to start. Doesn't affect KDE, only gdm and GNOME applications.
dbus-update-activation-environment workaround does not work for wayland sessions.

Stack trace of thread 1814:
#0 0x000056064fd51ac8 n/a (xdg-desktop-portal)
#1 0x000056064fd51b68 n/a (xdg-desktop-portal)
#2 0x00007f65a8e877d7 n/a (libgio-2.0.so.0)
#3 0x00007f65a8ed82f4 n/a (libgio-2.0.so.0)
#4 0x00007f65a8edacd7 n/a (libgio-2.0.so.0)
#5 0x00007f65a8e85693 n/a (libgio-2.0.so.0)
#6 0x00007f65a8ed82f4 n/a (libgio-2.0.so.0)
#7 0x00007f65a8ed8329 n/a (libgio-2.0.so.0)
#8 0x00007f65a8d0d8d1 g_main_context_dispatch (libglib-2.0.so.0)
#9 0x00007f65a8d0f5e9 n/a (libglib-2.0.so.0)
#10 0x00007f65a8d105c2 g_main_loop_run (libglib-2.0.so.0)
#11 0x000056064fd514ed n/a (xdg-desktop-portal)
#12 0x00007f65a8aa8223 __libc_start_main (libc.so.6)
#13 0x000056064fd5170e n/a (xdg-desktop-portal)

Stack trace of thread 1816:
#0 0x00007f65a8cee010 g_slice_alloc0 (libglib-2.0.so.0)
#1 0x00007f65a8ddc767 g_type_create_instance (libgobject-2.0.so.0)
#2 0x00007f65a8df9259 n/a (libgobject-2.0.so.0)
#3 0x00007f65a8dfa75d g_object_new_with_properties (libgobject-2.0.so.0)
#4 0x00007f65a8dfa86a g_object_new (libgobject-2.0.so.0)
#5 0x00007f65a8edc9f7 g_task_new (libgio-2.0.so.0)
#6 0x00007f65a8e7affe n/a (libgio-2.0.so.0)
#7 0x00007f65a8e7b274 n/a (libgio-2.0.so.0)
#8 0x00007f65a8e7b870 n/a (libgio-2.0.so.0)
#9 0x00007f65a8ed82f4 n/a (libgio-2.0.so.0)
#10 0x00007f65a8ed8329 n/a (libgio-2.0.so.0)
#11 0x00007f65a8d0d8d1 g_main_context_dispatch (libglib-2.0.so.0)
#12 0x00007f65a8d0f5e9 n/a (libglib-2.0.so.0)
#13 0x00007f65a8d105c2 g_main_loop_run (libglib-2.0.so.0)
#14 0x00007f65a8e75cb8 n/a (libgio-2.0.so.0)
#15 0x00007f65a8cea67b n/a (libglib-2.0.so.0)
#16 0x00007f65a8c4fa9d start_thread (libpthread.so.0)
#17 0x00007f65a8b7fb23 __clone (libc.so.6)

Stack trace of thread 1815:
#0 0x00007f65a8b74c21 __poll (libc.so.6)
#1 0x00007f65a8d0f540 n/a (libglib-2.0.so.0)
#2 0x00007f65a8d0f62e g_main_context_iteration (libglib-2.0.so.0)
#3 0x00007f65a8d0f682 n/a (libglib-2.0.so.0)
#4 0x00007f65a8cea67b n/a (libglib-2.0.so.0)
#5 0x00007f65a8c4fa9d start_thread (libpthread.so.0)
#6 0x00007f65a8b7fb23 __clone (libc.so.6)

Stack trace of thread 1827:
#0 0x00007f65a8b74c21 __poll (libc.so.6)
#1 0x00007f65a8d0f540 n/a (libglib-2.0.so.0)
#2 0x00007f65a8d0f62e g_main_context_iteration (libglib-2.0.so.0)
#3 0x00007f65a66fdbde n/a (libdconfsettings.so)
#4 0x00007f65a8cea67b n/a (libglib-2.0.so.0)
#5 0x00007f65a8c4fa9d start_thread (libpthread.so.0)
#6 0x00007f65a8b7fb23 __clone (libc.so.6)

Loading...