Bug 503461

Summary: xdg-desktop-portal-kde crash multiple times when logout from start menu
Product: [Plasma] xdg-desktop-portal-kde Reporter: BryanLiang <liangrui.ch>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REPORTED ---    
Severity: crash CC: aleixpol, nate
Priority: NOR    
Version First Reported In: 6.3.4   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description BryanLiang 2025-04-28 05:39:14 UTC
SUMMARY
As title,

I logout from the start menu. After re-login, I ran `coredumpctl list` in the terminal and found out that there are 5 coredump records of xdg-desktop-portal-kde. The signal of all of them is SIGABRT. Besides, I found serveral message like

```
4月 28 12:38:00 systemd[1291]: Failed to start Xdg Desktop Portal For KDE.
4月 28 12:38:00 systemd[1291]: plasma-xdg-desktop-portal-kde.service: Start request repeated too quickly.
4月 28 12:38:00 systemd[1291]: plasma-xdg-desktop-portal-kde.service: Failed with result 'core-dump'.
```
in the journald.


STEPS TO REPRODUCE
I think they are random crash and there is no stable way to reproduce.

OBSERVED RESULT
xdg-desktop-portal-kde crash many times.

EXPECTED RESULT
xdg-desktop-portal-kde doesn't crash.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.9.0
Kernel Version: 6.13.8-arch1-1-cjktty (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800H with Radeon Graphics
Memory: 13.5 GiB of RAM
Graphics Processor: AMD Radeon Graphics


ADDITIONAL INFORMATION
Here are stack trace of five coredump files.

http://0x0.st/8WaU.txt
http://0x0.st/8WaG.txt
http://0x0.st/8WaD.txt
http://0x0.st/8Wak.txt
http://0x0.st/8Wad.txt

Here is the journald log.
https://0x0.st/8Wa5.txt
Comment 1 Nate Graham 2025-04-28 16:03:11 UTC
        fatalMessage = {d = {d = 0x645ea54ad4f0, ptr = 0x645ea54ad500 u"This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.\n\nAvailable platform plugins are: eglfs, linuxfb, minimal, minima"..., size = 263}, static _empty = 0 u'\000'}