Bug 500271

Summary: xdg-desktop-portal core dump when boot
Product: [Plasma] xdg-desktop-portal-kde Reporter: zxvb12z <zxvb12z>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: aleixpol, kde
Priority: NOR    
Version First Reported In: 6.3.0   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: log
cat service
systemctl --user status

Description zxvb12z 2025-02-17 18:00:48 UTC
Created attachment 178490 [details]
log

SUMMARY
xdg-desktop-portal core dump when boot

xdg-desktop-portal-kderc contain:

[FileDialogSize]
1920x1080 screen: Height=583
1920x1080 screen: Width=1202
DVI-D-0 Height 1920x1080 DVI-D-0=662
DVI-D-0 Width 1920x1080 DVI-D-0=980
DVI-D-1 Height 1920x1080 DVI-D-1=682
DVI-D-1 Width 1920x1080 DVI-D-1=1120

[KFileDialog Settings]
iconViewIconSize=64
listViewIconSize=64

Log attached as file.

STEPS TO REPRODUCE
1. boot system
2.  sudo journalctl -b
3. ......

OBSERVED RESULT
xdg-desktop-portal core dump when boot

EXPECTED RESULT
xdg-desktop-portal don't core dump when boot

SOFTWARE/OS VERSIONS
Linux: Manjaro 25.0
KDE Plasma Version: 6.3, wayland
KDE Frameworks Version: 6.11
Qt Version: 6.8.2
Nvidia video driver: 570.86.16 witch close kernel module

ADDITIONAL INFORMATION
Comment 1 David Redondo 2025-02-18 10:08:49 UTC
Something is starting xdg-desktop-portal (and kde in turn). xdg-desktop-portal-kde cannot work without a running graphical session. You should find out what is triggering this start too early.
Comment 2 zxvb12z 2025-02-18 11:18:02 UTC
(In reply to David Redondo from comment #1)
> Something is starting xdg-desktop-portal (and kde in turn).
> xdg-desktop-portal-kde cannot work without a running graphical session. You
> should find out what is triggering this start too early.

I use the following services:

xdg-desktop-portal.service
plasma-xdg-desktop-portal-kde.service
xdg-desktop-portal-rewrite-launchers.service
xdg-document-portal.service
xdg-permission-store.service

Their content and systemctl --user status Attached as files
Comment 3 zxvb12z 2025-02-18 11:18:36 UTC
Created attachment 178513 [details]
cat service
Comment 4 zxvb12z 2025-02-18 11:19:08 UTC
Created attachment 178514 [details]
systemctl --user status
Comment 5 zxvb12z 2025-02-18 11:21:02 UTC
if start /usr/lib/xdg-desktop-portal-kde --help from console

the following message will be displayed at the end:

QThreadStorage: Thread 0x5e968cc6c2b0 exited after QThreadStorage 7 destroyed
QThreadStorage: Thread 0x5e968cc6c2b0 exited after QThreadStorage 3 destroyed
QThreadStorage: Thread 0x5e968cc6c2b0 exited after QThreadStorage 2 destroyed
Comment 6 zxvb12z 2025-02-18 18:06:10 UTC
It doesn’t seem to happen every time. During this boot, this did not happen
Comment 7 David Redondo 2025-02-18 19:17:44 UTC Comment hidden (spam)