You are not logged in.

#1 2024-11-20 17:59:25

NateDawg
Member
Registered: 2024-11-20
Posts: 3

GNOME - xdg-desktop-portal-gnome Core dumping (SOLVED)

Hello All,

Hoping I can save my GNOME install and learn some things in the process.

Yesterday, seemingly out of the blue, some functions within GNOME has stopped working. I first notice that I was unable to open nautilus, then noticed that other apps would not launch (E.G. gnome-terminal), or would take ages to launch (E.G. blackbox flatpack). Some other strange issues appeared as well, such as apps that do run not taking any changes in themes.

Attempting to Launch Nautilus from a terminal session gave me this error:

** Message: 12:17:13.211: Connecting to org.freedesktop.Tracker3.Miner.Files

(org.gnome.Nautilus:2170468): Gdk-ERROR **: 12:17:13.212: gdk_display_open() was called before gtk_init()
[1]    2170468 trace trap (core dumped)  nautilus

Similar message for gnome terminal:

(kgx:2240619): Gdk-ERROR **: 12:19:08.119: gdk_display_manager_get() was called before gtk_init()
[1]    2240619 trace trap (core dumped)  kgx

I eventually saw some portal issue logs in journalctl, which lead me to check the xdg portal services.

pacman -Qs xdg-desktop-portal

shows I have the following installed:

local/xdg-desktop-portal 1.18.4-1
    Desktop integration portals for sandboxed apps
local/xdg-desktop-portal-gnome 47.1-2 (gnome)
    Backend implementation for xdg-desktop-portal for the GNOME desktop environment
local/xdg-desktop-portal-gtk 1.15.1-2
    A backend implementation for xdg-desktop-portal using GTK
local/xdg-desktop-portal-kde 6.2.3-1 (plasma)
    A backend implementation for xdg-desktop-portal using Qt/KF5

running

systemctl --user status xdg-desktop-portal-gnome.service

shows the service has failed and has core dumped:

xdg-desktop-portal-gnome.service - Portal service (GNOME implementation)
     Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal-gnome.service; static)
     Active: failed (Result: core-dump) since Wed 2024-11-20 12:23:23 EST; 16s ago
 Invocation: f1c12817afbe43db8533f0c2babc2340
    Process: 2397797 ExecStart=/usr/lib/xdg-desktop-portal-gnome (code=dumped, signal=TRAP)
   Main PID: 2397797 (code=dumped, signal=TRAP)
   Mem peak: 4.4M
        CPU: 41ms

Nov 20 12:23:23 desktop systemd[2024082]: Starting Portal service (GNOME implementation)...
Nov 20 12:23:23 desktop xdg-desktop-por[2397797]: gdk_display_open() was called before gtk_init()
Nov 20 12:23:23 desktop systemd-coredump[2397812]: [?] Process 2397797 (xdg-desktop-por) of user 1000 dumped core.
                                                   
                                                   Stack trace of thread 2397797:
                                                   #0  0x00007c590ffa212b g_log_writer_default (libglib-2.0.so.0 + 0x6b12b)
                                                   #1  0x00007c590ff995e8 g_log_structured_array (libglib-2.0.so.0 + 0x625e8)
                                                   #2  0x00007c590ff9985f g_log_structured_standard (libglib-2.0.so.0 + 0x6285f)
                                                   #3  0x00007c590f679bcd gdk_display_open (libgtk-4.so.1 + 0x479bcd)
                                                   #4  0x0000617fb4f0bbf8 n/a (xdg-desktop-portal-gnome + 0xebf8)
                                                   #5  0x00007c590ebd8e08 n/a (libc.so.6 + 0x25e08)
                                                   #6  0x00007c590ebd8ecc __libc_start_main (libc.so.6 + 0x25ecc)
                                                   #7  0x0000617fb4f0bee5 n/a (xdg-desktop-portal-gnome + 0xeee5)
                                                   
                                                   Stack trace of thread 2397810:
                                                   #0  0x00007c590ecbebb0 ppoll (libc.so.6 + 0x10bbb0)
                                                   #1  0x00007c590fff7227 n/a (libglib-2.0.so.0 + 0xc0227)
                                                   #2  0x00007c590ff95287 g_main_loop_run (libglib-2.0.so.0 + 0x5e287)
                                                   #3  0x00007c590fe7bbc4 n/a (libgio-2.0.so.0 + 0x113bc4)
                                                   #4  0x00007c590ffc8026 n/a (libglib-2.0.so.0 + 0x91026)
                                                   #5  0x00007c590ec4739d n/a (libc.so.6 + 0x9439d)
                                                   #6  0x00007c590eccc49c n/a (libc.so.6 + 0x11949c)
                                                   
                                                   Stack trace of thread 2397809:
                                                   #0  0x00007c590ecbebb0 ppoll (libc.so.6 + 0x10bbb0)
                                                   #1  0x00007c590fff7227 n/a (libglib-2.0.so.0 + 0xc0227)
                                                   #2  0x00007c590ff93a55 g_main_context_iteration (libglib-2.0.so.0 + 0x5ca55)
                                                   #3  0x00007c590ff93ab2 n/a (libglib-2.0.so.0 + 0x5cab2)
                                                   #4  0x00007c590ffc8026 n/a (libglib-2.0.so.0 + 0x91026)
                                                   #5  0x00007c590ec4739d n/a (libc.so.6 + 0x9439d)
                                                   #6  0x00007c590eccc49c n/a (libc.so.6 + 0x11949c)
                                                   
                                                   Stack trace of thread 2397808:
                                                   #0  0x00007c590ecca1fd syscall (libc.so.6 + 0x1171fd)
                                                   #1  0x00007c590ffc5f20 g_cond_wait (libglib-2.0.so.0 + 0x8ef20)
                                                   #2  0x00007c590ff5c98c n/a (libglib-2.0.so.0 + 0x2598c)
                                                   #3  0x00007c590ffcc137 n/a (libglib-2.0.so.0 + 0x95137)
                                                   #4  0x00007c590ffc8026 n/a (libglib-2.0.so.0 + 0x91026)
                                                   #5  0x00007c590ec4739d n/a (libc.so.6 + 0x9439d)
                                                   #6  0x00007c590eccc49c n/a (libc.so.6 + 0x11949c)
                                                   ELF object binary architecture: AMD x86-64
Nov 20 12:23:23 desktop systemd[2024082]: xdg-desktop-portal-gnome.service: Main process exited, code=dumped, status=5/TRAP
Nov 20 12:23:23 desktop systemd[2024082]: xdg-desktop-portal-gnome.service: Failed with result 'core-dump'.
Nov 20 12:23:23 desktop systemd[2024082]: Failed to start Portal service (GNOME implementation).

What I have currently tried:
- test a different DE (KDE/Cosmic both work as expected)
- wipe gnome config (dconf reset -f /)
- uninstall and reinstall gnome (pacman -Runs gnome - reboot - pacman -S gnome)
- downgrade xdg-desktop-protal-gnome
- remove all other DEs (cosmic/KDE)

I've tried running a few searches, haven't been able to find anything specific. Not really sure where to go next. If I need to reinstall so be it, but wanted to see if this can be fixed first!

Appreciate any and all help I can get!

Last edited by NateDawg (2024-11-20 22:38:53)

Offline

#2 2024-11-20 21:02:08

seth
Member
Registered: 2012-09-03
Posts: 58,974

Re: GNOME - xdg-desktop-portal-gnome Core dumping (SOLVED)

https://gitlab.gnome.org/GNOME/gtk/-/issues/7035
https://gitlab.gnome.org/GNOME/gtk/-/me … te_2249064

Is this on X11 or wayland?

Btw: "portal", not "protal" - you might wanna edit your post and fix that for google.

Offline

#3 2024-11-20 21:51:34

NateDawg
Member
Registered: 2024-11-20
Posts: 3

Re: GNOME - xdg-desktop-portal-gnome Core dumping (SOLVED)

Appreciate the call out on spelling, edited the post.

Took a look through those issues, I had seen the second link. however this issue started to occur without any updates to gnome packages, or packages that I would think could impact the system functioning.

I run my system on wayland using AMD with the default mesa drivers, for troubleshooting I did try X11 as well, but same issues. This does seem to be strictly isolated to gnome, other DE's work just fine.

Issues go beyond nautilus not opening such as:
-not switching from light/dark theme
-apps (specifically gnome developed) extremely slow to open
-extensions no longer showing in extentions app

A few more weird things as well.

Last edited by NateDawg (2024-11-20 21:56:32)

Offline

#4 2024-11-20 22:03:08

seth
Member
Registered: 2012-09-03
Posts: 58,974

Re: GNOME - xdg-desktop-portal-gnome Core dumping (SOLVED)

The offender would be https://archlinux.org/packages/extra/x86_64/gtk4/ which was last updated 2 weeks ago. When did you update it according to your pacman log?
Also

printenv

GDK_BACKEND, XDG_SESSION_TYPE and GSK_RENDERER might be relevant but post the entire output (minus the part where $PWD is your porn folder tongue)

Offline

#5 2024-11-20 22:38:13

NateDawg
Member
Registered: 2024-11-20
Posts: 3

Re: GNOME - xdg-desktop-portal-gnome Core dumping (SOLVED)

Well you would be absolutely right.

It was upgraded for me on the 7th of Nov. I was away for a week or so, but I had used my PC after it updated with no issues. guess something kicked in.

Ran

 sudo downgrade gtk4 

Moved it to back to version 4.16.5-1, and all is well now. I'll keep an eye on this, check bug reports, and upgrade once a new version is in place.

Thanks a bunch for the help! Will mark as solved (once I figure out how!)

Quick Edit: For anyone else who might run into this...I realized this new GTK package is part of the gnome-unstable repo. Disabling that repo and running a pacman -Syu should also work instead of the downgrade command.

Last edited by NateDawg (2024-11-21 06:03:24)

Offline

#6 2024-11-21 10:03:52

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,289

Re: GNOME - xdg-desktop-portal-gnome Core dumping (SOLVED)

The unstable repos all mandate testing, if those weren't enabled at the same time you're in all sorts of partial update land.

Offline

Board footer

Powered by FluxBB