Bug 500251

Summary: xdg-desktop-portal-kde crashes on wayland
Product: [Plasma] xdg-desktop-portal-kde Reporter: gudvinr+kde
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: aleixpol, sitter
Priority: NOR    
Version First Reported In: 6.3.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description gudvinr+kde 2025-02-17 11:33:09 UTC
I am getting a crash while starting Wayland session.

From coredumpctl it seems that crash is very similar to BUG 500248 and can be caused by regressions in Qt.

STACKTRACE

#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1  0x00007da50b2a56d3 in __pthread_kill_internal (threadid=<optimized out>, signo=6) at pthread_kill.c:89
#2  0x00007da50b24bba0 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#3  0x00007da50b233582 in __GI_abort () at abort.c:73
#4  0x00007da50ac905c2 in qAbort () at /usr/src/debug/qt6-base/qtbase/src/corelib/global/qassert.cpp:49
#5  qt_message_fatal<QString&> (context=..., message=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/global/qlogging.cpp:2130
#6  qt_message(QtMsgType, const QMessageLogContext &, const char *, typedef __va_list_tag __va_list_tag *) (msgType=msgType@entry=QtFatalMsg, 
    context=..., msg=msg@entry=0x7da50bb816e3 "%s", ap=ap@entry=0x7fff776d4ca8)
    at /usr/src/debug/qt6-base/qtbase/src/corelib/global/qlogging.cpp:382
#7  0x00007da50ac9154b in QMessageLogger::fatal (this=this@entry=0x7fff776d51e0, msg=msg@entry=0x7da50bb816e3 "%s")
    at /usr/src/debug/qt6-base/qtbase/src/corelib/global/qlogging.cpp:884
#8  0x00007da50b4def5d in init_platform (pluginNamesWithArguments=..., platformPluginPath=..., platformThemeName=..., 
    argc=@0x7fff776d555c: 1, argv=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qguiapplication.cpp:1327
#9  QGuiApplicationPrivate::createPlatformIntegration (this=0x627d3f500ab0)
    at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qguiapplication.cpp:1580
#10 0x00007da50b58acd8 in QGuiApplicationPrivate::createEventDispatcher (this=<optimized out>)
    at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qguiapplication.cpp:1599
#11 0x00007da50ad58a7d in QCoreApplicationPrivate::init (this=this@entry=0x627d3f500ab0)
    at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:931
#12 0x00007da50b58ad6e in QGuiApplicationPrivate::init (this=this@entry=0x627d3f500ab0)
    at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qguiapplication.cpp:1627
#13 0x00007da50bef9ae6 in QApplicationPrivate::init (this=0x627d3f500ab0)
    at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:474
#14 0x00007da50bef9c42 in QApplication::QApplication (this=<optimized out>, argc=<optimized out>, argv=<optimized out>, this=<optimized out>, 
    argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:462
#15 0x0000627d2702c381 in main (argc=<optimized out>, argv=<optimized out>)
    at /usr/src/debug/xdg-desktop-portal-kde/xdg-desktop-portal-kde-6.3.0/src/xdg-desktop-portal-kde.cpp:30

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.13.2-arch1-1 (64-bit)
Graphics Platform: Wayland
Graphics Processor 1: AMD Radeon RX Vega M GL Graphics
Graphics Processor 2: Mesa IntelĀ® HD Graphics 630
Comment 1 Harald Sitter 2025-02-17 11:37:36 UTC
Please fill in the bug report template

SUMMARY


STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT
Comment 2 gudvinr+kde 2025-02-17 12:43:46 UTC
(In reply to Harald Sitter from comment #1)
> Please fill in the bug report template

SUMMARY

I am getting a crash while starting Wayland session.

From coredumpctl it seems that crash is very similar to BUG 500248 and can be caused by regressions in Qt.

STEPS TO REPRODUCE
1. Launch Wayland session from SDDM

OBSERVED RESULT

I am seeing DrKonqi window saying xdg-desktop-portal-kde crashed.

EXPECTED RESULT

Wayland session starts and xdg-desktop-portal-kde doesn't exit with SIGABRT.
Comment 3 Harald Sitter 2025-02-17 16:08:50 UTC

*** This bug has been marked as a duplicate of bug 500248 ***