https://bugs.kde.org/show_bug.cgi?id=506713

            Bug ID: 506713
           Summary: xdg-desktop-portal-kde crashes on startup, causing
                    freeze after closing file dialogs on Plasma 6.4.2
    Classification: Plasma
           Product: xdg-desktop-portal-kde
      Version First 6.4.2
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

SUMMARY
xdg-desktop-portal-kde crashes on startup, causing apps to freeze briefly
(~0.5–10s) when closing file dialogs.

STEPS TO REPRODUCE
1. Open any application that uses the Qt/KDE file dialog (e.g. Dolphin, Kate,
Gwenview).
2. Trigger a file dialog (e.g. File → Open).
3. Close the dialog with or without selecting anything.

OBSERVED RESULT
The application freezes for a short period (initially 5–10 seconds, now ~0.5s
after a workaround) after the file dialog closes.
This corresponds to a timeout caused by xdg-desktop-portal-kde failing to
respond on D-Bus due to crashing on startup.

Logs show:

pgsql
Copier
Modifier
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it
was found.
This application failed to start because no Qt platform plugin could be
initialized.
xdg-desktop-portal-kde.service: Failed with result 'core-dump'

EXPECTED RESULT
The file dialog closes immediately and the application remains responsive,
without freezing.


SOFTWARE/OS VERSIONS
Operating System: EndeavourOS
KDE Plasma Version: 6.4.2
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Kernel Version: 6.15.5-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Display Manager: SDDM

xdg-desktop-portal: 1.20.3-1
xdg-desktop-portal-kde: 6.4.2-1
xcb-util-cursor: installed
xdg-desktop-portal-gtk: not installed

ADDITIONAL INFORMATION
As a workaround, I created a user-level systemd service to manually start the
portal:

# ~/.config/systemd/user/xdg-desktop-portal-kde.service
[Unit]
Description=xdg-desktop-portal backend for KDE
After=xdg-desktop-portal.service
PartOf=xdg-desktop-portal.service

[Service]
ExecStart=/usr/lib/xdg-desktop-portal-kde
Restart=on-failure
Environment=QT_QPA_PLATFORM=xcb
Environment=DISPLAY=:0
Environment=XDG_CURRENT_DESKTOP=KDE

[Install]
WantedBy=default.target
This reduced the freeze time from ~10s to ~0.5s, confirming that the backend is
involved. However, the service still fails with a core dump on startup.

This bug appears distinct from Bug 506266, which was GTK-related. My setup does
not include the GTK portal, and the crash is confirmed to originate from
xdg-desktop-portal-kde.

This report and troubleshooting were assisted by ChatGPT to ensure clarity and
accuracy.
Happy to provide a backtrace or coredump if needed.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to