You are not logged in.

#1 2023-12-13 13:04:21

Tibor
Member
Registered: 2023-12-13
Posts: 4

[SOLVED] XDG_DESKTOP_PORTAL crash(SIGTRAP) - startup

Hello!

I'm on Arch Linux - Hyprland.
I got to this point after investigating the "Hyprland - apps slow to start up" issue where starting up some apps like Firefox, Brave or Wezterm takes a long time while other start up immediately e.g. Alacritty.

I have a situation where the xdg-desktop-portal and xdg-desktop-portal-gtk crash with SIGTRAP (according to coredumpctl) and the xdg-desktop-portal-hyprland is not running at all (according to systemctl --user status). Additionally the at-spi-bus-launcher occasionally crashes as well with the SIGTRAP, but I couldn't gather any useful info about it other than that.

They also crash if I start some of the apps mentioned above after waiting for about 30s.
In Browser, whether Firefox or Brave, if I open the file-picker, the browsers crash immediately.
The core dumps don't reveal much other than memory addresses and the reason for failure (SIGTRAP).

Outputs of systemctl --user status:
- xdg-desktop-portal-gtk:

 > systemctl --user status xdg-desktop-portal-gtk
systemd[518]: Starting Portal service (GTK/GNOME implementation)...                                                                                                                                                                                                                                                               
xdg-desktop-por[2551]: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. 
xdg-desktop-por[2551]: No GSettings schemas are installed on the system                                                                                                                                                                                                                                                           
systemd-coredump[2940]: Process 2551 (xdg-desktop-por) of user 1000 dumped core.                                                                                                                                                                                                                                                  

- xdg-desktop-portal:

 > systemctl --user status xdg-desktop-portal
systemd[518]: Starting Portal service...
xdg-desktop-por[2539]: No GSettings schemas are installed on the system
systemd-coredump[2937]: Process 2539 (xdg-desktop-por) of user 1000 dumped core.

Relevant information:
- I updated the system.
- I have the 6.6.6-zen1-1-zen kernel & no NVIDIA drivers (I do have a NVIDIA graphics card though).
- I tried searching online for similar problems.
- I tried searching for a similar issue here in Arch Linux Forum but didn't find anything that would help me.
- As suggested by the Hyprland wiki:
    I have installed xdg-desktop-portal-gtk & xdg-desktop-portal-hyprland.
    I tried the tips that suggest to execute a script which kills the xdg-desktop-portals and restarts them after the environment variables have been updated using

exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP

(I also tried changing which variables are updated as well as using the

exec-once = systemctl --user import-environment

).
    The script:

#!/usr/bin/env bash

sleep 2
killall -e xdg-desktop-portal-hyprland
killall -e xdg-desktop-portal-gtk
killall -e xdg-desktop-portal
/usr/lib/xdg-desktop-portal-hyprland
sleep 5
/usr/lib/xdg-desktop-portal-gtk
sleep 5
/usr/lib/xdg-desktop-portal
sleep 5

- I tried reinstalling all xdg-desktop-portals.

I'm not sure how to proceed further with this issue. I'm relatively new to Arch, and would appreciate help.

If there are some commands that I can run to get additional information, I would highly appreciate if someone could tell me what those are and I would be happy to update this post with that additional info.

Last edited by Tibor (2023-12-13 21:38:51)

Offline

#2 2023-12-13 13:40:39

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,797

Re: [SOLVED] XDG_DESKTOP_PORTAL crash(SIGTRAP) - startup

AT-SPI: Error retrieving accessibility bus address …

You can side-step that w/

export NO_AT_BRIDGE=1
systemd-coredump[2940]: Process 2551 (xdg-desktop-por) of user 1000 dumped core. 

https://wiki.archlinux.org/title/Core_d … _core_dump

The script

You're not supposed to run multiple intances of xdg-portal and rather not "xdg-desktop-portal" at all.

Next to the coredump, how do you start hyprland and what's the output of

loginctl session-status

Offline

#3 2023-12-13 20:22:28

Tibor
Member
Registered: 2023-12-13
Posts: 4

Re: [SOLVED] XDG_DESKTOP_PORTAL crash(SIGTRAP) - startup

Hello Seth!

I've often seen your name in the Forums, it's awesome to talk to you!

Thank you for the tips on

NO_AT_BRIDGE=1

and not running multiple xdg-desktop-portal instances. just a quick side question: If I run only the xdg-desktop-portal-hyprland, will the browsers automatically look for a xdg-desktop-portal implementation that allows for a file picker(i.e. xdg-desktop-portal-gtk in my case)?

Here is the output of loginctl session-status https://0x0.st/H3Cr.txt.
TLDR, I'm using the Ly desktop manager to start Hyprland.

I hope that's helpful.

Offline

#4 2023-12-13 20:30:31

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,797

Re: [SOLVED] XDG_DESKTOP_PORTAL crash(SIGTRAP) - startup

will the browsers automatically look for a xdg-desktop-portal implementation that allows for a file picker

No, but see https://wiki.archlinux.org/title/XDG_De … figuration (also the browser really should™ just use a built-in dialog)

I'm using the Ly desktop manager to start Hyprland.

Please try w/o - ly systematically breaks the session bus, https://github.com/fairyglade/ly/issues/380 and many more bugs on the github
https://wiki.archlinux.org/title/Hyprland#Starting

Offline

#5 2023-12-13 21:36:41

Tibor
Member
Registered: 2023-12-13
Posts: 4

Re: [SOLVED] XDG_DESKTOP_PORTAL crash(SIGTRAP) - startup

I tried launching Hyprland via tty and Brave and Wezterm startup immediately, there's no coredumps &

also the browser really should™ just use a built-in dialog

you were right, the file picker works fine now.

Ly seems to be the issue, sadly. I'll look for an alternative. Marking this as solved.

Thank you very much seth for all your help!

Offline

Board footer

Powered by FluxBB