Bug#1108442: xdg-desktop-portal-gnome: Crashes in a wayland session

2025-06-29 Thread Paolo Redaelli



Il 29/06/25 10:21, Simon McVittie ha scritto:

Control: tags -1 + moreinfo

On Sat, 28 Jun 2025 at 20:58:52 +0200, Paolo Redaelli wrote:
xdg-desktop-portal-gnome crashes a Gnome session at login when 
selecting a wayland

session while it runs fine in an Xorg session.


Do you have evidence of this crash? The Journal messages you quoted 
are about xdg-desktop-portal, and they indicate that 
xdg-desktop-portal-gtk (not xdg-desktop-portal-gnome) took too long to 
start up (which is bad, but is not a crash).


Please look at the systemd Journal with journalctl, preferably as a 
privileged user (root or a member of the adm group), to get an 
overview of what is happening at the time.


Actually I found  no evidence of a crash as either 
xdg-desktop-portal-gtk or xdg-desktop-portal-gnome exited with an error 
code.


I read the logs founding no apparent clue.

I somehow solved the issue removing ~/.config/dconf/user; I dumped its 
keys but again I couldn't find any potential issue.


Thank you everyone for your time and attention but my issue does not 
deserve to waste your time anymore, so I'm posting this to 
[email protected], signaling that it shall be closed.




Bug#1108442: xdg-desktop-portal-gnome: Crashes in a wayland session

2025-06-29 Thread Simon McVittie

Control: tags -1 + moreinfo

On Sat, 28 Jun 2025 at 20:58:52 +0200, Paolo Redaelli wrote:

xdg-desktop-portal-gnome crashes a Gnome session at login when selecting a 
wayland
session while it runs fine in an Xorg session.


Do you have evidence of this crash? The Journal messages you quoted are 
about xdg-desktop-portal, and they indicate that xdg-desktop-portal-gtk 
(not xdg-desktop-portal-gnome) took too long to start up (which is bad, 
but is not a crash).


Please look at the systemd Journal with journalctl, preferably as a 
privileged user (root or a member of the adm group), to get an overview 
of what is happening at the time.



Jun 28 13:44:19 acer-paolo xdg-desktop-por[3745]: Choosing gtk.portal for 
org.freedesktop.impl.portal.Lockdown as a last-resort fallback
Jun 28 13:44:44 acer-paolo xdg-desktop-por[3745]: Choosing gtk.portal for 
org.freedesktop.impl.portal.Settings as a last-resort fallback


This is a message from xdg-desktop-portal, not from 
xdg-desktop-portal-gnome.



Jun 28 13:45:09 acer-paolo xdg-desktop-por[3745]: Failed to create settings 
proxy: Errore nel chiamare StartServiceByName per 
org.freedesktop.impl.portal.desktop.gtk: È stato raggiunto il timeout


This is a message from xdg-desktop-portal about xdg-desktop-portal-gtk, 
and is unrelated to xdg-desktop-portal-gnome.



Jun 28 13:45:34 acer-paolo xdg-desktop-por[3745]: Failed to create file chooser 
proxy: Errore nel chiamare StartServiceByName per 
org.freedesktop.impl.portal.desktop.gtk: È stato raggiunto il timeout


Same here.


Jun 28 13:45:49 acer-paolo systemd[2105]: xdg-desktop-portal.service: start 
operation timed out. Terminating.


This is a message from systemd about xdg-desktop-portal, and again is 
unrelated to xdg-desktop-portal-gnome.


smcv



Bug#1108442: xdg-desktop-portal-gnome: Crashes in a wayland session

2025-06-28 Thread Jeremy Bícha
On Sat, Jun 28, 2025 at 4:07 PM Paolo Redaelli  wrote:
> I lauched "find ~ -iname "*xdg*"|less" and searched in dconf but I
> couldn't find anything relevant.
>
> Where should I look? I'm a "lifelong" Linux user but this bug looks a
> little puzzling, otherwise I woulnd't have reported a bug ...

I don't know so here are a few other ideas:

Do you have any files in ~/.config/xdg-desktop-portal/ ?

Compare the output of  env  between the working and non-working users.

You could back up your config files, then remove files to bisect to
try to figure out what isn't working.

Thank you,
Jeremy Bícha



Bug#1108442: xdg-desktop-portal-gnome: Crashes in a wayland session

2025-06-28 Thread Paolo Redaelli



Il 28/06/25 21:43, Jeremy Bícha ha scritto:

On Sat, Jun 28, 2025 at 3:01 PM Paolo Redaelli  wrote:

xdg-desktop-portal-gnome crashes a Gnome session at login when selecting a 
wayland
session while it runs fine in an Xorg session.

Please create a new user and log in as that user. If the bug doesn't
show there, then there is a problem with your user's config.


First of all, thank you very much for you prompt answer!

In a freshly created user the problem does not show so it is in my config.

I lauched "find ~ -iname "*xdg*"|less" and searched in dconf but I 
couldn't find anything relevant.


Where should I look? I'm a "lifelong" Linux user but this bug looks a 
little puzzling, otherwise I woulnd't have reported a bug ...


Thank you in advance for your attention...

Kind regards,

    Paolo



Bug#1108442: xdg-desktop-portal-gnome: Crashes in a wayland session

2025-06-28 Thread Jeremy Bícha
On Sat, Jun 28, 2025 at 3:01 PM Paolo Redaelli  wrote:
> xdg-desktop-portal-gnome crashes a Gnome session at login when selecting a 
> wayland
> session while it runs fine in an Xorg session.

Please create a new user and log in as that user. If the bug doesn't
show there, then there is a problem with your user's config.

Thank you,
Jeremy Bícha



Bug#1108442: xdg-desktop-portal-gnome: Crashes in a wayland session

2025-06-28 Thread Paolo Redaelli
Package: xdg-desktop-portal-gnome
Version: 48.0-2
Severity: important
X-Debbugs-Cc: [email protected]

Dear Maintainer,

xdg-desktop-portal-gnome crashes a Gnome session at login when selecting a 
wayland
session while it runs fine in an Xorg session.

Other wayland desktops such as enlightenment and wayfire run fine but
Gtk applications starts with a lag of dozens of seconds, showing in logs
a similar error. As far as I can say it is this, but I wasn't able to
find more details.

Jun 28 13:44:19 acer-paolo systemd[2105]: Starting xdg-desktop-portal.service - 
Portal service...
-- Subject: A start job for unit UNIT has begun execution
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- A start job for unit UNIT has begun execution.
-- 
-- The job identifier is 196.
Jun 28 13:44:19 acer-paolo xdg-desktop-por[3745]: Choosing gtk.portal for 
org.freedesktop.impl.portal.Lockdown as a last-resort fallback
Jun 28 13:44:44 acer-paolo xdg-desktop-por[3745]: Choosing gtk.portal for 
org.freedesktop.impl.portal.Settings as a last-resort fallback
Jun 28 13:45:09 acer-paolo xdg-desktop-por[3745]: Failed to create settings 
proxy: Errore nel chiamare StartServiceByName per 
org.freedesktop.impl.portal.desktop.gtk: È stato raggiunto il timeout
Jun 28 13:45:09 acer-paolo xdg-desktop-por[3745]: No skeleton to export
Jun 28 13:45:09 acer-paolo xdg-desktop-por[3745]: Choosing gtk.portal for 
org.freedesktop.impl.portal.FileChooser as a last-resort fallback
Jun 28 13:45:34 acer-paolo xdg-desktop-por[3745]: Failed to create file chooser 
proxy: Errore nel chiamare StartServiceByName per 
org.freedesktop.impl.portal.desktop.gtk: È stato raggiunto il timeout
Jun 28 13:45:34 acer-paolo xdg-desktop-por[3745]: No skeleton to export
Jun 28 13:45:34 acer-paolo xdg-desktop-por[3745]: Choosing gtk.portal for 
org.freedesktop.impl.portal.AppChooser as a last-resort fallback
Jun 28 13:45:49 acer-paolo systemd[2105]: xdg-desktop-portal.service: start 
operation timed out. Terminating.
Jun 28 13:45:49 acer-paolo systemd[2105]: xdg-desktop-portal.service: Failed 
with result 'timeout'.
-- Subject: Unit failed

-- System Information:
Debian Release: 13.0
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 
'unstable'), (500, 'testing'), (500, 'stable'), (500, 'oldstable'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.12.33+deb13-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages xdg-desktop-portal-gnome depends on:
ii  dbus-user-session1.16.2-2
ii  dbus-x11 1.16.2-2
ii  dconf-gsettings-backend [gsettings-backend]  0.40.0-5
ii  gsettings-desktop-schemas48.0-1
ii  libadwaita-1-0   1.7.4-2
ii  libc62.41-9
ii  libcairo21.18.4-1+b1
ii  libfontconfig1   2.15.0-2.3
ii  libgdk-pixbuf-2.0-0  2.42.12+dfsg-3
ii  libglib2.0-0t64  2.84.3-1
ii  libgnome-bg-4-2t64   44.3-3
ii  libgnome-desktop-4-2t64  44.3-3
ii  libgraphene-1.0-01.10.8-5
ii  libgtk-4-1   4.18.6+ds-2
ii  libwayland-client0   1.23.1-3
ii  libx11-6 2:1.8.12-1
ii  nautilus 48.2-3
ii  xdg-desktop-portal   1.20.3+ds-1
ii  xdg-desktop-portal-gtk   1.14.1-1

Versions of packages xdg-desktop-portal-gnome recommends:
ii  gnome-settings-daemon  48.1-1
ii  gnome-shell48.2-3

Versions of packages xdg-desktop-portal-gnome suggests:
ii  accountsservice  23.13.9-7
ii  evince   48.0-1

-- no debconf information