Xdg-desktop portal core-dump

xdg-desktop portal is broken

❯ systemctl --user status xdg-desktop-portal
× xdg-desktop-portal.service - Portal service
     Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal.service; static)
     Active: failed (Result: core-dump) since Fri 2024-08-02 16:41:59 MSK; 1min 9s ago
 Invocation: 0b3b17680ad84557a75e3f43cbfe0406
    Process: 4128 ExecStart=/usr/lib/xdg-desktop-portal (code=dumped, signal=TRAP)
   Main PID: 4128 (code=dumped, signal=TRAP)

авг 02 16:41:59 dannkuntPC systemd[2011]: Failed to start Portal service.
авг 02 16:41:59 dannkuntPC systemd[2011]: Starting Portal service...
авг 02 16:41:59 dannkuntPC xdg-desktop-por[4128]: Settings schema 'org.gnome.system.proxy' is not installed
авг 02 16:41:59 dannkuntPC systemd-coredump[4140]: [🡕] Process 4128 (xdg-desktop-por) of user 1000 dumped core.
                                                      
                                                      Stack trace of thread 4128:
                                                      #0  0x0000749822b49b08 g_log_structured_array (libglib-2.0.so.0 + 0x61b08)
                                                      #1  0x0000749822b49e07 g_log_default_handler (libglib-2.0.so.0 + 0x61e07)
                                                      #2  0x0000749822b4a08c g_logv (libglib-2.0.so.0 + 0x6208c)
                                                      #3  0x0000749822b4a404 g_log (libglib-2.0.so.0 + 0x62404)
                                                      #4  0x0000749822a07ece n/a (libgio-2.0.so.0 + 0xecece)
                                                      #5  0x00007498228debab n/a (libgobject-2.0.so.0 + 0x22bab)
                                                      #6  0x00007498228df5d8 n/a (libgobject-2.0.so.0 + 0x235d8)
                                                      #7  0x00007498228e16cb g_object_new_valist (libgobject-2.0.so.0 + 0x256cb)
                                                      #8  0x00007498228e1a80 g_object_new (libgobject-2.0.so.0 + 0x25a80)
                                                      #9  0x0000749821fce337 n/a (libgiognomeproxy.so + 0x2337)
                                                      #10 0x00007498228fa2b9 g_type_create_instance (libgobject-2.0.so.0 + 0x3e2b9)
                                                      #11 0x00007498228df4a5 n/a (libgobject-2.0.so.0 + 0x234a5)
                                                      #12 0x00007498228e0ac7 g_object_new_with_properties (libgobject-2.0.so.0 + 0x24ac7)
                                                      #13 0x00007498228e1aa2 g_object_new (libgobject-2.0.so.0 + 0x25aa2)
                                                      #14 0x000074982298dd6d n/a (libgio-2.0.so.0 + 0x72d6d)
                                                      #15 0x0000749822993ace n/a (libgio-2.0.so.0 + 0x78ace)
                                                      #16 0x00007498229a2b4a g_proxy_resolver_get_default (libgio-2.0.so.0 + 0x87b4a)
                                                      #17 0x000056a1bf84175e n/a (xdg-desktop-portal + 0x6375e)
                                                      #18 0x00007498228fa2b9 g_type_create_instance (libgobject-2.0.so.0 + 0x3e2b9)
                                                      #19 0x00007498228df4a5 n/a (libgobject-2.0.so.0 + 0x234a5)
                                                      #20 0x00007498228e0ac7 g_object_new_with_properties (libgobject-2.0.so.0 + 0x24ac7)
                                                      #21 0x00007498228e1aa2 g_object_new (libgobject-2.0.so.0 + 0x25aa2)
                                                      #22 0x000056a1bf852b77 n/a (xdg-desktop-portal + 0x74b77)
                                                      #23 0x0000749822a2c725 n/a (libgio-2.0.so.0 + 0x111725)
                                                      #24 0x00007498229c11ac n/a (libgio-2.0.so.0 + 0xa61ac)
                                                      #25 0x00007498229c5445 n/a (libgio-2.0.so.0 + 0xaa445)
                                                      #26 0x0000749822a2775b n/a (libgio-2.0.so.0 + 0x10c75b)
                                                      #27 0x00007498229c11ac n/a (libgio-2.0.so.0 + 0xa61ac)
                                                      #28 0x00007498229c11f5 n/a (libgio-2.0.so.0 + 0xa61f5)
                                                      #29 0x0000749822b44ab9 n/a (libglib-2.0.so.0 + 0x5cab9)
                                                      #30 0x0000749822ba69e7 n/a (libglib-2.0.so.0 + 0xbe9e7)
                                                      #31 0x0000749822b457b7 g_main_loop_run (libglib-2.0.so.0 + 0x5d7b7)
                                                      #32 0x000056a1bf7ef2f7 n/a (xdg-desktop-portal + 0x112f7)
                                                      #33 0x00007498224ede08 n/a (libc.so.6 + 0x25e08)
                                                      #34 0x00007498224edecc __libc_start_main (libc.so.6 + 0x25ecc)
                                                      #35 0x000056a1bf7ef8e5 n/a (xdg-desktop-portal + 0x118e5)
                                                      
                                                      Stack trace of thread 4132:
                                                      #0  0x00007498225d363d __poll (libc.so.6 + 0x10b63d)
                                                      #1  0x0000749822ba692d n/a (libglib-2.0.so.0 + 0xbe92d)
                                                      #2  0x0000749822b43fc5 g_main_context_iteration (libglib-2.0.so.0 + 0x5bfc5)
                                                      #3  0x0000749822b4401a n/a (libglib-2.0.so.0 + 0x5c01a)
                                                      #4  0x0000749822b74266 n/a (libglib-2.0.so.0 + 0x8c266)
                                                      #5  0x000074982255c39d n/a (libc.so.6 + 0x9439d)
                                                      #6  0x00007498225e149c n/a (libc.so.6 + 0x11949c)
                                                      
                                                      Stack trace of thread 4134:
                                                      #0  0x00007498225d363d __poll (libc.so.6 + 0x10b63d)
                                                      #1  0x0000749822ba692d n/a (libglib-2.0.so.0 + 0xbe92d)
                                                      #2  0x0000749822b457b7 g_main_loop_run (libglib-2.0.so.0 + 0x5d7b7)
                                                      #3  0x0000749822a2d574 n/a (libgio-2.0.so.0 + 0x112574)
                                                      #4  0x0000749822b74266 n/a (libglib-2.0.so.0 + 0x8c266)
                                                      #5  0x000074982255c39d n/a (libc.so.6 + 0x9439d)
                                                      #6  0x00007498225e149c n/a (libc.so.6 + 0x11949c)
                                                      
                                                      Stack trace of thread 4135:
                                                      #0  0x00007498225df1fd syscall (libc.so.6 + 0x1171fd)
                                                      #1  0x0000749822ba0367 g_cond_wait_until (libglib-2.0.so.0 + 0xb8367)
                                                      #2  0x0000749822b0d8d5 n/a (libglib-2.0.so.0 + 0x258d5)
                                                      #3  0x0000749822b7a27b n/a (libglib-2.0.so.0 + 0x9227b)
                                                      #4  0x0000749822b74266 n/a (libglib-2.0.so.0 + 0x8c266)
                                                      #5  0x000074982255c39d n/a (libc.so.6 + 0x9439d)
                                                      #6  0x00007498225e149c n/a (libc.so.6 + 0x11949c)
                                                      
                                                      Stack trace of thread 4136:
                                                      #0  0x00007498225df1fd syscall (libc.so.6 + 0x1171fd)
                                                      #1  0x0000749822ba0367 g_cond_wait_until (libglib-2.0.so.0 + 0xb8367)
                                                      #2  0x0000749822b0d8d5 n/a (libglib-2.0.so.0 + 0x258d5)
                                                      #3  0x0000749822b7a27b n/a (libglib-2.0.so.0 + 0x9227b)
                                                      #4  0x0000749822b74266 n/a (libglib-2.0.so.0 + 0x8c266)
                                                      #5  0x000074982255c39d n/a (libc.so.6 + 0x9439d)
                                                      #6  0x00007498225e149c n/a (libc.so.6 + 0x11949c)
                                                      
                                                      Stack trace of thread 4133:
                                                      #0  0x00007498225df1fd syscall (libc.so.6 + 0x1171fd)
                                                      #1  0x0000749822b9fa10 g_cond_wait (libglib-2.0.so.0 + 0xb7a10)
                                                      #2  0x0000749822b0d90c n/a (libglib-2.0.so.0 + 0x2590c)
                                                      #3  0x0000749822b796b7 n/a (libglib-2.0.so.0 + 0x916b7)
                                                      #4  0x0000749822b74266 n/a (libglib-2.0.so.0 + 0x8c266)
                                                      #5  0x000074982255c39d n/a (libc.so.6 + 0x9439d)
                                                      #6  0x00007498225e149c n/a (libc.so.6 + 0x11949c)
                                                      ELF object binary architecture: AMD x86-64
авг 02 16:41:59 dannkuntPC systemd[2011]: xdg-desktop-portal.service: Main process exited, code=dumped, status=5/TRAP
авг 02 16:41:59 dannkuntPC systemd[2011]: xdg-desktop-portal.service: Failed with result 'core-dump'.
авг 02 16:41:59 dannkuntPC systemd[2011]: Failed to start Portal service.
авг 02 16:42:01 dannkuntPC systemd[2011]: xdg-desktop-portal.service: Start request repeated too quickly.
авг 02 16:42:01 dannkuntPC systemd[2011]: xdg-desktop-portal.service: Failed with result 'core-dump'.
авг 02 16:42:01 dannkuntPC systemd[2011]: Failed to start Portal service.

After installing xdg-desktop-portal-gtk adds 2 more lines to the log beftore the crash

авг 07 23:53:59 dannkuntPC xdg-desktop-por[14273]: Choosing gtk.portal for org.freedesktop.impl.portal.Lockdown as a last-resort fallback
авг 07 23:53:59 dannkuntPC xdg-desktop-por[14273]: The preferred method to match portal implementations to desktop environments is to use the portals.conf(5) configuration file

I am using KDE Wayland. RTX 3060. Nvidia 555.58.02(same issue on 550, 560). Kernels - 6.6, 6.10-xanmod

Now same thing is happening on the last testing update

Not for me at any time that I recall (on Unstable, KDE).

This makes me think that maybe your portal configuration is broken to begin with.
(as after installing portal-gtk, it is now shown as the final fallback)

I suppose we can start with

pacman -Qs portal

And do you have any configuration files?

cat ~/.config/xdg-desktop-portal-kderc
cat ~/.config/xdg-desktop-portal/*

FIXED FIXED FIXED

I had to execute
doas /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas/

Then reinstall gsettings-desktop-schemas and gsettings-system-schemas

Well thats one unstandard thing.

Why?

Why?

Idk. But it worked.

I guess it is because of broken part was

Settings schema 'org.gnome.system.proxy' is not installed

Then broken part is gnome thing. Then fix somewere in gnome part.

The very odd thing is when I did that in reverse order before last time, it didn’t work out.

Could it be that the hook that would normally fire does not work somehow?

$ cat /usr/share/libalpm/hooks/glib-compile-schemas.hook 
[Trigger]
Type = Path
Operation = Install
Operation = Upgrade
Operation = Remove
Target = usr/share/glib-2.0/schemas/*.xml
Target = usr/share/glib-2.0/schemas/*.override

[Action]
Description = Compiling GSettings XML schema files...
When = PostTransaction
Exec = /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas

If doas has replaced sudo maybe that is related?

My file is unchanged

❯ bat /usr/share/libalpm/hooks/glib-compile-schemas.hook
───────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       │ File: /usr/share/libalpm/hooks/glib-compile-schemas.hook
───────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ [Trigger]
   2   │ Type = Path
   3   │ Operation = Install
   4   │ Operation = Upgrade
   5   │ Operation = Remove
   6   │ Target = usr/share/glib-2.0/schemas/*.xml
   7   │ Target = usr/share/glib-2.0/schemas/*.override
   8   │ 
   9   │ [Action]
  10   │ Description = Compiling GSettings XML schema files...
  11   │ When = PostTransaction
  12   │ Exec = /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
───────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

doas is replaced only in my zsh shell by my hands. Is sudo is called it is not replaced automatically even in alias, so that can’t cause of an issue

Mysterious. :person_shrugging:

My other guess is to look in the pacman log, ex

grep compile-schemas /var/log/pacman.log -n1

I guess this is relevant logs

The grep was an example - I think there may be more related output in those logs.
In whatever case I believe it indicates that the packages were not being downloaded reliably.
Example with translation;

You may wish to try sorting your mirrors and keeping an eye on the integrity of your following syncs.
Example using (supposed) continent mirrors;

sudo pacman-mirrors --continent && sudo pacman -Syu
1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.