Bug 500577 - xdg-desktop-portal-kde crashes in ScreenCastSession::setStreams()
Summary: xdg-desktop-portal-kde crashes in ScreenCastSession::setStreams()
Status: RESOLVED FIXED
Alias: None
Product: xdg-desktop-portal-kde
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 6.3.1
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: drkonqi
: 504099 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-02-22 14:36 UTC by APTX
Modified: 2025-06-04 21:44 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.4.0
Sentry Crash Report: https://crash-reports.kde.org/organizations/kde/issues/134233/events/6d519efd4a1642069eccd1ffe76e5cf3/


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description APTX 2025-02-22 14:36:29 UTC
Application: xdg-desktop-portal-kde (6.3.1)
 (Compiled from sources)
ApplicationNotResponding [ANR]: false
Qt Version: 6.8.1
Frameworks Version: 6.11.0
Operating System: Linux 6.12.12-gentoo-x86_64 x86_64
Windowing System: Wayland
Distribution: "Gentoo Linux"
DrKonqi: 6.3.1 [CoredumpBackend]

-- Information about the crash:
Crash happened when setting up virtual camera in OBS for use with Skype. I have done this many times without issues.

The reporter is unsure if this crash is reproducible.

-- Backtrace:
Application: xdg-desktop-portal-kde (xdg-desktop-portal-kde), signal: Segmentation fault
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = 0x0}

warning: Can't open file /memfd:JSVMStack:QtQml (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:/.glXXXXXX (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:kwin-dmabuf-feedback-table (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:pipewire-memfd:flags=0x0000000f,type=2,size=2312 (deleted) during file-backed mapping note processing

warning: Can't open file /home/aptx/.cache/xdg-desktop-portal-kde/qmlcache/65328a870a64c327fe3c621ab51b45d878dd5ea2.qmlc (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:unknown-usage:QtQml (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:JITCode:QtQml (deleted) during file-backed mapping note processing

warning: Can't open file /home/aptx/.cache/xdg-desktop-portal-kde/qmlcache/2d5e4f331560033cab11d6580494c7a77dc282d1.qmlc (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:pipewire-memfd:flags=0x0000000f,type=2,size=4096 (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:JSGCHeap:QtQml (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:pipewire-memfd:flags=0x0000000f,type=2,size=786816 (deleted) during file-backed mapping note processing

warning: core file may not match specified executable file.
[New LWP 2883]
[New LWP 2906]
[New LWP 2899]
[New LWP 5246]
[New LWP 5290]
[New LWP 5279]
[New LWP 2905]
[New LWP 5259]
[New LWP 20588]
[New LWP 20587]
[New LWP 15966]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib64/libthread_db.so.1".
Core was generated by `/usr/libexec/xdg-desktop-portal-kde'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f049e6663ac in ?? () from /usr/lib64/libc.so.6
[Current thread is 1 (Thread 0x7f0498f9ea40 (LWP 2883))]
python sentry-sdk not installed :(

Cannot QML trace cores :(
/usr/share/drkonqi/gdb/python/gdb_preamble/preamble.py:547: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
  boot_time = datetime.utcfromtimestamp(psutil.boot_time()).strftime('%Y-%m-%dT%H:%M:%S')
Unexpectedly stumbled over an objfile (/usr/lib64/libKF6I18n.so.6.11.0) without build_id. Not creating payload.
[Current thread is 1 (Thread 0x7f0498f9ea40 (LWP 2883))]

Thread 11 (Thread 0x7f04677fe6c0 (LWP 15966)):
#0  0x00007f049e660e5e in ??? () at /usr/lib64/libc.so.6
#1  0x00007f049e663822 in pthread_cond_wait () at /usr/lib64/libc.so.6
#2  0x00007f04968bc028 in ??? () at /usr/lib64/libEGL_nvidia.so.0
#3  0x00007f049688afe1 in ??? () at /usr/lib64/libEGL_nvidia.so.0
#4  0x00007f04968c1a4e in ??? () at /usr/lib64/libEGL_nvidia.so.0
#5  0x00007f049e664663 in ??? () at /usr/lib64/libc.so.6
#6  0x00007f049e6d4fbc in ??? () at /usr/lib64/libc.so.6

Thread 10 (Thread 0x7f0479fff6c0 (LWP 20587)):
#0  0x00007f049e660e5e in ??? () at /usr/lib64/libc.so.6
#1  0x00007f049e663b5a in pthread_cond_timedwait () at /usr/lib64/libc.so.6
#2  0x00007f049eb5902d in QWaitConditionPrivate::wait_relative (this=<optimized out>, deadline=...) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/thread/qwaitcondition_unix.cpp:95
#3  QWaitConditionPrivate::wait (this=0x5612cb534b20, deadline=...) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/thread/qwaitcondition_unix.cpp:103
#4  QWaitCondition::wait (this=this@entry=0x5612cb5349f0, mutex=mutex@entry=0x7f0474020488, deadline=...) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/thread/qwaitcondition_unix.cpp:183
#5  0x00007f049ec31ba0 in QThreadPoolThread::run (this=0x5612cb5349e0) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/thread/qthreadpool.cpp:118
#6  0x00007f049ec17575 in operator() (__closure=<optimized out>) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/thread/qthread_unix.cpp:354
#7  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/thread/qthread_unix.cpp:290
#8  QThreadPrivate::start (arg=0x5612cb5349e0) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/thread/qthread_unix.cpp:318
#9  0x00007f049e664663 in ??? () at /usr/lib64/libc.so.6
#10 0x00007f049e6d4fbc in ??? () at /usr/lib64/libc.so.6

Thread 9 (Thread 0x7f04657fa6c0 (LWP 20588)):
#0  0x00007f049e660e5e in ??? () at /usr/lib64/libc.so.6
#1  0x00007f049e663b5a in pthread_cond_timedwait () at /usr/lib64/libc.so.6
#2  0x00007f049eb5902d in QWaitConditionPrivate::wait_relative (this=<optimized out>, deadline=...) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/thread/qwaitcondition_unix.cpp:95
#3  QWaitConditionPrivate::wait (this=0x5612ca70a260, deadline=...) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/thread/qwaitcondition_unix.cpp:103
#4  QWaitCondition::wait (this=this@entry=0x5612cb478660, mutex=mutex@entry=0x7f0474020488, deadline=...) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/thread/qwaitcondition_unix.cpp:183
#5  0x00007f049ec31ba0 in QThreadPoolThread::run (this=0x5612cb478650) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/thread/qthreadpool.cpp:118
#6  0x00007f049ec17575 in operator() (__closure=<optimized out>) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/thread/qthread_unix.cpp:354
#7  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/thread/qthread_unix.cpp:290
#8  QThreadPrivate::start (arg=0x5612cb478650) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/thread/qthread_unix.cpp:318
#9  0x00007f049e664663 in ??? () at /usr/lib64/libc.so.6
#10 0x00007f049e6d4fbc in ??? () at /usr/lib64/libc.so.6

Thread 8 (Thread 0x7f047321a6c0 (LWP 5259)):
#0  0x00007f049e6c87a6 in ppoll () at /usr/lib64/libc.so.6
#1  0x00007f049c35b4aa in ppoll (__ss=0x0, __timeout=0x0, __nfds=1, __fds=0x5612cad03630) at /usr/include/bits/poll2.h:101
#2  g_main_context_poll_unlocked (priority=<optimized out>, n_fds=1, fds=0x5612cad03630, timeout_usec=<optimized out>, context=0x7f0468000c90) at ../glib-2.82.4/glib/gmain.c:4591
#3  g_main_context_iterate_unlocked (context=context@entry=0x7f0468000c90, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib-2.82.4/glib/gmain.c:4268
#4  0x00007f049c35bb30 in g_main_context_iteration (context=0x7f0468000c90, may_block=1) at ../glib-2.82.4/glib/gmain.c:4338
#5  0x00007f049eaecac3 in QEventDispatcherGlib::processEvents (this=0x7f0468000ba0, flags=...) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/kernel/qeventdispatcher_glib.cpp:399
#6  0x00007f049ed590f2 in QEventLoop::exec (this=this@entry=0x7f0473219b00, flags=..., flags@entry=...) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/global/qflags.h:34
#7  0x00007f049ec8726e in QThread::exec (this=<optimized out>) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/global/qflags.h:74
#8  0x00007f049ec17575 in operator() (__closure=<optimized out>) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/thread/qthread_unix.cpp:354
#9  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/thread/qthread_unix.cpp:290
#10 QThreadPrivate::start (arg=0x5612cad04fe0) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/thread/qthread_unix.cpp:318
#11 0x00007f049e664663 in ??? () at /usr/lib64/libc.so.6
#12 0x00007f049e6d4fbc in ??? () at /usr/lib64/libc.so.6

Thread 7 (Thread 0x7f0497cc06c0 (LWP 2905)):
#0  0x00007f049e6c826f in poll () at /usr/lib64/libc.so.6
#1  0x00007f04a13d5d37 in poll (__fds=0x7f0497cbfaf0, __nfds=2, __timeout=-1) at /usr/include/bits/poll2.h:44
#2  QtWaylandClient::EventThread::run (this=0x5612ca303170) at /usr/src/debug/dev-qt/qtwayland-6.8.1/qtwayland-everywhere-src-6.8.1/src/client/qwaylanddisplay.cpp:182
#3  0x00007f049ec17575 in operator() (__closure=<optimized out>) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/thread/qthread_unix.cpp:354
#4  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/thread/qthread_unix.cpp:290
#5  QThreadPrivate::start (arg=0x5612ca303170) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/thread/qthread_unix.cpp:318
#6  0x00007f049e664663 in ??? () at /usr/lib64/libc.so.6
#7  0x00007f049e6d4fbc in ??? () at /usr/lib64/libc.so.6

Thread 6 (Thread 0x7f0471fb86c0 (LWP 5279)):
#0  0x00007f049e660e5e in ??? () at /usr/lib64/libc.so.6
#1  0x00007f049e663822 in pthread_cond_wait () at /usr/lib64/libc.so.6
#2  0x00007f04968bc028 in ??? () at /usr/lib64/libEGL_nvidia.so.0
#3  0x00007f049688afe1 in ??? () at /usr/lib64/libEGL_nvidia.so.0
#4  0x00007f04968c1a4e in ??? () at /usr/lib64/libEGL_nvidia.so.0
#5  0x00007f049e664663 in ??? () at /usr/lib64/libc.so.6
#6  0x00007f049e6d4fbc in ??? () at /usr/lib64/libc.so.6

Thread 5 (Thread 0x7f0464ff96c0 (LWP 5290)):
#0  0x00007f049e660e5e in ??? () at /usr/lib64/libc.so.6
#1  0x00007f049e663822 in pthread_cond_wait () at /usr/lib64/libc.so.6
#2  0x00007f04968bc028 in ??? () at /usr/lib64/libEGL_nvidia.so.0
#3  0x00007f049688afe1 in ??? () at /usr/lib64/libEGL_nvidia.so.0
#4  0x00007f04968c1a4e in ??? () at /usr/lib64/libEGL_nvidia.so.0
#5  0x00007f049e664663 in ??? () at /usr/lib64/libc.so.6
#6  0x00007f049e6d4fbc in ??? () at /usr/lib64/libc.so.6

Thread 4 (Thread 0x7f047952f6c0 (LWP 5246)):
#0  0x00007f049e6c87a6 in ppoll () at /usr/lib64/libc.so.6
#1  0x00007f049c35b4aa in ppoll (__ss=0x0, __timeout=0x0, __nfds=1, __fds=0x5612ca4ddc80) at /usr/include/bits/poll2.h:101
#2  g_main_context_poll_unlocked (priority=<optimized out>, n_fds=1, fds=0x5612ca4ddc80, timeout_usec=<optimized out>, context=0x7f046c000c90) at ../glib-2.82.4/glib/gmain.c:4591
#3  g_main_context_iterate_unlocked (context=context@entry=0x7f046c000c90, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib-2.82.4/glib/gmain.c:4268
#4  0x00007f049c35bb30 in g_main_context_iteration (context=0x7f046c000c90, may_block=1) at ../glib-2.82.4/glib/gmain.c:4338
#5  0x00007f049eaecac3 in QEventDispatcherGlib::processEvents (this=0x7f046c000ba0, flags=...) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/kernel/qeventdispatcher_glib.cpp:399
#6  0x00007f049ed590f2 in QEventLoop::exec (this=this@entry=0x7f047952eb00, flags=..., flags@entry=...) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/global/qflags.h:34
#7  0x00007f049ec8726e in QThread::exec (this=<optimized out>) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/global/qflags.h:74
#8  0x00007f049ec17575 in operator() (__closure=<optimized out>) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/thread/qthread_unix.cpp:354
#9  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/thread/qthread_unix.cpp:290
#10 QThreadPrivate::start (arg=0x5612ca4e7300) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/thread/qthread_unix.cpp:318
#11 0x00007f049e664663 in ??? () at /usr/lib64/libc.so.6
#12 0x00007f049e6d4fbc in ??? () at /usr/lib64/libc.so.6

Thread 3 (Thread 0x7f049891d6c0 (LWP 2899)):
#0  0x00007f049e6c87a6 in ppoll () at /usr/lib64/libc.so.6
#1  0x00007f049c35b4aa in ppoll (__ss=0x0, __timeout=0x0, __nfds=5, __fds=0x7f049001a1f0) at /usr/include/bits/poll2.h:101
#2  g_main_context_poll_unlocked (priority=<optimized out>, n_fds=5, fds=0x7f049001a1f0, timeout_usec=<optimized out>, context=0x7f0490000cb0) at ../glib-2.82.4/glib/gmain.c:4591
#3  g_main_context_iterate_unlocked (context=context@entry=0x7f0490000cb0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib-2.82.4/glib/gmain.c:4268
#4  0x00007f049c35bb30 in g_main_context_iteration (context=0x7f0490000cb0, may_block=1) at ../glib-2.82.4/glib/gmain.c:4338
#5  0x00007f049eaecac3 in QEventDispatcherGlib::processEvents (this=0x7f0490000ba0, flags=...) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/kernel/qeventdispatcher_glib.cpp:399
#6  0x00007f049ed590f2 in QEventLoop::exec (this=this@entry=0x7f049891cab0, flags=..., flags@entry=...) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/global/qflags.h:34
#7  0x00007f049ec8726e in QThread::exec (this=this@entry=0x7f049f08d160 <QGlobalStatic<QtGlobalStatic::Holder<(anonymous namespace)::Q_QGS__q_manager> >::instance()::holder>) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/global/qflags.h:74
#8  0x00007f049f0646ae in QDBusConnectionManager::run (this=0x7f049f08d160 <QGlobalStatic<QtGlobalStatic::Holder<(anonymous namespace)::Q_QGS__q_manager> >::instance()::holder>) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/dbus/qdbusconnectionmanager.cpp:144
#9  0x00007f049ec17575 in operator() (__closure=<optimized out>) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/thread/qthread_unix.cpp:354
#10 (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/thread/qthread_unix.cpp:290
#11 QThreadPrivate::start (arg=0x7f049f08d160 <QGlobalStatic<QtGlobalStatic::Holder<(anonymous namespace)::Q_QGS__q_manager> >::instance()::holder>) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/thread/qthread_unix.cpp:318
#12 0x00007f049e664663 in ??? () at /usr/lib64/libc.so.6
#13 0x00007f049e6d4fbc in ??? () at /usr/lib64/libc.so.6

Thread 2 (Thread 0x7f04974bf6c0 (LWP 2906)):
#0  0x00007f049e6c826f in poll () at /usr/lib64/libc.so.6
#1  0x00007f04a13d5d37 in poll (__fds=0x7f04974beaf0, __nfds=2, __timeout=-1) at /usr/include/bits/poll2.h:44
#2  QtWaylandClient::EventThread::run (this=0x5612ca31a130) at /usr/src/debug/dev-qt/qtwayland-6.8.1/qtwayland-everywhere-src-6.8.1/src/client/qwaylanddisplay.cpp:182
#3  0x00007f049ec17575 in operator() (__closure=<optimized out>) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/thread/qthread_unix.cpp:354
#4  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/thread/qthread_unix.cpp:290
#5  QThreadPrivate::start (arg=0x5612ca31a130) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/thread/qthread_unix.cpp:318
#6  0x00007f049e664663 in ??? () at /usr/lib64/libc.so.6
#7  0x00007f049e6d4fbc in ??? () at /usr/lib64/libc.so.6

Thread 1 (Thread 0x7f0498f9ea40 (LWP 2883)):
[KCrash Handler]
#4  qt_ptr_swap<QTypedArrayData<WaylandIntegration::Stream> > (lhs=<error reading variable: Cannot access memory at address 0x78>, rhs=<synthetic pointer>: <optimized out>) at /usr/include/qt6/QtCore/qswap.h:29
#5  QArrayDataPointer<WaylandIntegration::Stream>::swap (this=0x78, other=<synthetic pointer>...) at /usr/include/qt6/QtCore/qarraydatapointer.h:131
#6  QArrayDataPointer<WaylandIntegration::Stream>::operator= (this=0x78, other=...) at /usr/include/qt6/QtCore/qarraydatapointer.h:72
#7  QList<WaylandIntegration::Stream>::operator= (this=0x78) at /usr/include/qt6/QtCore/qlist.h:72
#8  ScreenCastSession::setStreams (this=0x0, streams=...) at /usr/src/debug/kde-plasma/xdg-desktop-portal-kde-6.3.1/xdg-desktop-portal-kde-6.3.1/src/session.cpp:286
#9  0x00005612c6ca4f90 in ScreenCastPortal::Start (this=0x5612ca58e160, handle=<optimized out>, session_handle=<optimized out>, app_id=..., parent_window=<optimized out>, options=<optimized out>, results=...) at /usr/src/debug/kde-plasma/xdg-desktop-portal-kde-6.3.1/xdg-desktop-portal-kde-6.3.1/src/screencast.cpp:335
#10 0x00005612c6c26b08 in ScreenCastPortal::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=0x7fffc75dde78) at /usr/src/debug/kde-plasma/xdg-desktop-portal-kde-6.3.1/xdg-desktop-portal-kde-6.3.1_build/src/xdg-desktop-portal-kde_autogen/EWIEGA46WW/moc_screencast.cpp:184
#11 0x00005612c6c2abc7 in ScreenCastPortal::qt_metacall (this=0x5612ca58e160, _c=<optimized out>, _id=2, _a=0x7fffc75dde78) at /usr/src/debug/kde-plasma/xdg-desktop-portal-kde-6.3.1/xdg-desktop-portal-kde-6.3.1_build/src/xdg-desktop-portal-kde_autogen/EWIEGA46WW/moc_screencast.cpp:249
#12 0x00007f049f00a7e3 in QDBusConnectionPrivate::deliverCall (this=this@entry=0x7f04900016a0, object=object@entry=0x5612ca58e160, msg=..., metaTypes=..., slotIdx=6) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/dbus/qdbusintegrator.cpp:1008
#13 0x00007f049f016fae in QDBusConnectionPrivate::activateCall (this=this@entry=0x7f04900016a0, object=0x5612ca58e160, flags=flags@entry=..., msg=...) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/dbus/qdbusintegrator.cpp:910
#14 0x00007f049f01a8eb in QDBusConnectionPrivate::activateObject (this=<optimized out>, node=..., msg=..., pathStartPos=<optimized out>) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/dbus/qdbusintegrator.cpp:1485
#15 0x00007f049f01ecc2 in QDBusActivateObjectEvent::placeMetaCall (this=0x7f049001aaf0) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/dbus/qdbusintegrator.cpp:1605
#16 0x00007f049ecadd60 in QObject::event (this=0x5612ca57b6a0, e=0x7f049001aaf0) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/kernel/qobject.cpp:1419
#17 0x00007f049fd60225 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x5612ca57b6a0, e=0x7f049001aaf0) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/widgets/kernel/qapplication.cpp:3296
#18 0x00007f049ed31708 in QCoreApplication::notifyInternal2 (receiver=0x5612ca57b6a0, event=0x7f049001aaf0) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/kernel/qcoreapplication.cpp:1168
#19 0x00007f049ed317ad in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/kernel/qcoreapplication.cpp:1612
#20 0x00007f049ed5838d in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x5612ca2bc2a0) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/kernel/qcoreapplication.cpp:1968
#21 0x00007f049ed58cac in QCoreApplication::sendPostedEvents (receiver=<optimized out>, event_type=<optimized out>) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/kernel/qcoreapplication.cpp:1800
#22 0x00007f049eaf7397 in postEventSourceDispatch (s=0x5612ca35e0f0) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/kernel/qeventdispatcher_glib.cpp:246
#23 0x00007f049c358224 in g_main_dispatch (context=context@entry=0x7f0490000f30) at ../glib-2.82.4/glib/gmain.c:3357
#24 0x00007f049c35b417 in g_main_context_dispatch_unlocked (context=0x7f0490000f30) at ../glib-2.82.4/glib/gmain.c:4208
#25 g_main_context_iterate_unlocked (context=context@entry=0x7f0490000f30, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib-2.82.4/glib/gmain.c:4273
#26 0x00007f049c35bb30 in g_main_context_iteration (context=0x7f0490000f30, may_block=1) at ../glib-2.82.4/glib/gmain.c:4338
#27 0x00007f049eaecac3 in QEventDispatcherGlib::processEvents (this=0x5612ca2c32f0, flags=...) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/kernel/qeventdispatcher_glib.cpp:399
#28 0x00007f049ed590f2 in QEventLoop::exec (this=this@entry=0x7fffc75de750, flags=..., flags@entry=...) at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/global/qflags.h:34
#29 0x00007f049ed593d8 in QCoreApplication::exec () at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/corelib/global/qflags.h:74
#30 0x00007f049f1faeb0 in QGuiApplication::exec () at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/gui/kernel/qguiapplication.cpp:1975
#31 0x00007f049fcce849 in QApplication::exec () at /usr/src/debug/dev-qt/qtbase-6.8.1/qtbase-everywhere-src-6.8.1/src/widgets/kernel/qapplication.cpp:2564
#32 0x00005612c6c249b9 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kde-plasma/xdg-desktop-portal-kde-6.3.1/xdg-desktop-portal-kde-6.3.1/src/xdg-desktop-portal-kde.cpp:63

Reported using DrKonqi
Comment 1 Nate Graham 2025-05-13 19:43:16 UTC
*** Bug 504099 has been marked as a duplicate of this bug. ***
Comment 2 Julian Pollak 2025-05-19 11:27:56 UTC
*** Bug 504099 has been marked as a duplicate of this bug. ***
Comment 3 Julian Pollak 2025-05-22 13:45:43 UTC
As in #504099, this only happens to me on teams.microsoft.com in Chromium 136 (but there might be more versions affected). Other sites, like jitbit.com/screensharing/ work perfectly fine with the same browser and same OS setup.
Comment 4 postix 2025-05-23 12:11:25 UTC
Can confirm on 

Operating System: Fedora Linux 42
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Kernel Version: 6.14.7-301.fc42.x86_64 (64-bit)
Graphics Platform: Wayland

Crash happened for me after I've added a Firefox 138 Wayland window for capturing in OBS Studio 31.0.3

Here's my stacktrace:

```
(gdb) bt
#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=11, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1  0x00007fb39ac811e3 in __pthread_kill_internal (threadid=<optimized out>, signo=11) at pthread_kill.c:89
#2  0x00007fb39ac27afe in __GI_raise (sig=11) at ../sysdeps/posix/raise.c:26
#3  0x00007fb39de25ef1 in KCrash::defaultCrashHandler (sig=11) at /usr/src/debug/kf6-kcrash-6.14.0-1.fc42.x86_64/src/kcrash.cpp:605
#4  0x00007fb39ac27c30 in <signal handler called> () at /lib64/libc.so.6
#5  0x0000000000000000 in ??? ()
#6  0x00007fb39b353809 in QObjectPrivate::connectImpl
    (sender=sender@entry=0x55b10fabf0e0, signal_index=<optimized out>, receiver=receiver@entry=0x55b10f9f81c0, slot=slot@entry=0x7ffeb00fcad0, slotObjRaw=slotObjRaw@entry=0x55b10fbd4ab0, type=<optimized out>, types=<optimized out>, senderMetaObject=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qobject.cpp:5332
#7  0x00007fb39b353b10 in QObject::connectImpl
    (sender=sender@entry=0x55b10fabf0e0, signal=signal@entry=0x7ffeb00fcaf0, receiver=receiver@entry=0x55b10f9f81c0, slot=slot@entry=0x7ffeb00fcad0, slotObjRaw=0x55b10fbd4ab0, type=Qt::AutoConnection, types=0x0, senderMetaObject=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qobject.cpp:5244
#8  0x000055b0e10ad70e in QObject::connect<void (ScreencastingStream::*)(), void (ScreenCastSession::*)()>
    (type=Qt::AutoConnection, sender=0x55b10fabf0e0, signal=(void (ScreencastingStream::*)(class ScreencastingStream * const)) 0x55b0e10318f0 <ScreencastingStream::closed()>, context=0x55b10f9f81c0, slot=@0x7ffeb00fcad0: (void (ScreenCastSession::*)(class ScreenCastSession * const)) 0x55b0e10a96c0 <ScreenCastSession::streamClosed()>)
    at /usr/include/qt6/QtCore/qobject.h:272
#9  ScreenCastSession::setStreams (this=0x55b10f9f81c0, streams=<optimized out>) at /usr/src/debug/xdg-desktop-portal-kde-6.3.5-1.fc42.x86_64/src/session.cpp:309
#10 0x000055b0e10a5950 in ScreenCastPortal::Start
    (this=<optimized out>, handle=<optimized out>, session_handle=<optimized out>, app_id=..., parent_window=<optimized out>, options=<optimized out>, results=...)
    at /usr/src/debug/xdg-desktop-portal-kde-6.3.5-1.fc42.x86_64/src/screencast.cpp:335
#11 0x000055b0e1033565 in ScreenCastPortal::qt_static_metacall (_o=_o@entry=0x55b10f5eb610, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=_id@entry=2, _a=_a@entry=0x7ffeb00fd0d8)
    at /usr/src/debug/xdg-desktop-portal-kde-6.3.5-1.fc42.x86_64/redhat-linux-build/src/xdg-desktop-portal-kde_autogen/EWIEGA46WW/moc_screencast.cpp:147
#12 0x000055b0e10374e7 in ScreenCastPortal::qt_metacall (this=0x55b10f5eb610, _c=<optimized out>, _id=2, _a=0x7ffeb00fd0d8)
    at /usr/src/debug/xdg-desktop-portal-kde-6.3.5-1.fc42.x86_64/redhat-linux-build/src/xdg-desktop-portal-kde_autogen/EWIEGA46WW/moc_screencast.cpp:212
#13 0x00007fb39b95b9f6 in QDBusConnectionPrivate::deliverCall (this=this@entry=0x7fb380001690, object=object@entry=0x55b10f5eb610, msg=..., metaTypes=<optimized out>, slotIdx=6)
    at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/dbus/qdbusintegrator.cpp:1007
#14 0x00007fb39b95f8cd in QDBusConnectionPrivate::activateCall (this=this@entry=0x7fb380001690, object=0x55b10f5eb610, flags=..., flags@entry=..., msg=...)
    at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/dbus/qdbusintegrator.cpp:916
#15 0x00007fb39b960600 in QDBusConnectionPrivate::activateObject (this=0x7fb380001690, node=..., msg=..., pathStartPos=<optimized out>)
    at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/dbus/qdbusintegrator.cpp:1484
#16 0x00007fb39b9637ca in QDBusActivateObjectEvent::placeMetaCall (this=0x7fb380033100) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/dbus/qdbusintegrator.cpp:1604
#17 0x00007fb39b350fec in QObject::event (this=<optimized out>, e=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qobject.cpp:1431
#18 0x00007fb39c43d7af in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55b10f5f1fa0, e=0x7fb380033100)
    at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/widgets/kernel/qapplication.cpp:3301
#19 0x00007fb39b2f5fa8 in QCoreApplication::notifyInternal2 (receiver=0x55b10f5f1fa0, event=0x7fb380033100)
    at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1106
#20 0x00007fb39b2f620d in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>)
    at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1546
#21 0x00007fb39b2f9cd6 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x55b10f1fc7c0)
    at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1879
#22 0x00007fb39b5ffd2f in postEventSourceDispatch (s=0x55b10f201bc0) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qeventdispatcher_glib.cpp:246
#23 0x00007fb3993ef880 in g_main_dispatch (context=0x7fb380000f00) at ../glib/gmain.c:3398
#24 g_main_context_dispatch_unlocked (context=0x7fb380000f00) at ../glib/gmain.c:4249
#25 0x00007fb3993f87a8 in g_main_context_iterate_unlocked (context=context@entry=0x7fb380000f00, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
--Type <RET> for more, q to quit, c to continue without paging--c
    at ../glib/gmain.c:4314
#26 0x00007fb3993f8953 in g_main_context_iteration (context=0x7fb380000f00, may_block=1) at ../glib/gmain.c:4379
#27 0x00007fb39b5ff56d in QEventDispatcherGlib::processEvents (this=0x55b10f202d70, flags=...)
    at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qeventdispatcher_glib.cpp:399
#28 0x00007fb39b303783 in QEventLoop::exec (this=this@entry=0x7ffeb00fd9d0, flags=..., flags@entry=...) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/global/qflags.h:77
#29 0x000055b0e10cacd2 in WaylandIntegration::WaylandIntegrationPrivate::startStreaming
    (this=0x55b0e1147a40 <_ZZN13QGlobalStaticIN14QtGlobalStatic6HolderIN12_GLOBAL__N_130Q_QGS_globalWaylandIntegrationEEEE8instanceEvE6holder.lto_priv.0>, stream=<optimized out>, streamOptions=...) at /usr/src/debug/xdg-desktop-portal-kde-6.3.5-1.fc42.x86_64/src/waylandintegration.cpp:358
#30 0x000055b0e10c1b01 in WaylandIntegration::WaylandIntegrationPrivate::startStreamingOutput
    (this=0x55b0e1147a40 <_ZZN13QGlobalStaticIN14QtGlobalStatic6HolderIN12_GLOBAL__N_130Q_QGS_globalWaylandIntegrationEEEE8instanceEvE6holder.lto_priv.0>, screen=<optimized out>, mode=Screencasting::Metadata) at /usr/src/debug/xdg-desktop-portal-kde-6.3.5-1.fc42.x86_64/src/waylandintegration.cpp:287
#31 0x000055b0e10a476e in WaylandIntegration::startStreamingOutput (screen=0x55b10f219440, mode=Screencasting::Metadata)
    at /usr/src/debug/xdg-desktop-portal-kde-6.3.5-1.fc42.x86_64/src/waylandintegration.cpp:126
#32 ScreenCastPortal::Start (this=<optimized out>, handle=<optimized out>, session_handle=<optimized out>, app_id=..., parent_window=<optimized out>, options=<optimized out>, results=...)
    at /usr/src/debug/xdg-desktop-portal-kde-6.3.5-1.fc42.x86_64/src/screencast.cpp:303
#33 0x000055b0e1033565 in ScreenCastPortal::qt_static_metacall (_o=_o@entry=0x55b10f5eb610, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=_id@entry=2, _a=_a@entry=0x7ffeb00fe0d8)
    at /usr/src/debug/xdg-desktop-portal-kde-6.3.5-1.fc42.x86_64/redhat-linux-build/src/xdg-desktop-portal-kde_autogen/EWIEGA46WW/moc_screencast.cpp:147
#34 0x000055b0e10374e7 in ScreenCastPortal::qt_metacall (this=0x55b10f5eb610, _c=<optimized out>, _id=2, _a=0x7ffeb00fe0d8)
    at /usr/src/debug/xdg-desktop-portal-kde-6.3.5-1.fc42.x86_64/redhat-linux-build/src/xdg-desktop-portal-kde_autogen/EWIEGA46WW/moc_screencast.cpp:212
#35 0x00007fb39b95b9f6 in QDBusConnectionPrivate::deliverCall (this=this@entry=0x7fb380001690, object=object@entry=0x55b10f5eb610, msg=..., metaTypes=..., slotIdx=6)
    at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/dbus/qdbusintegrator.cpp:1007
#36 0x00007fb39b95fe51 in QDBusConnectionPrivate::activateCall (this=this@entry=0x7fb380001690, object=0x55b10f5eb610, flags=..., flags@entry=..., msg=...)
    at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/dbus/qdbusintegrator.cpp:909
#37 0x00007fb39b960600 in QDBusConnectionPrivate::activateObject (this=0x7fb380001690, node=..., msg=..., pathStartPos=<optimized out>)
    at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/dbus/qdbusintegrator.cpp:1484
#38 0x00007fb39b9637ca in QDBusActivateObjectEvent::placeMetaCall (this=0x7fb380032a80) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/dbus/qdbusintegrator.cpp:1604
#39 0x00007fb39b350fec in QObject::event (this=<optimized out>, e=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qobject.cpp:1431
#40 0x00007fb39c43d7af in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55b10f5f1fa0, e=0x7fb380032a80)
    at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/widgets/kernel/qapplication.cpp:3301
#41 0x00007fb39b2f5fa8 in QCoreApplication::notifyInternal2 (receiver=0x55b10f5f1fa0, event=0x7fb380032a80)
    at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1106
#42 0x00007fb39b2f620d in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>)
    at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1546
#43 0x00007fb39b2f9cd6 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x55b10f1fc7c0)
    at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1879
#44 0x00007fb39b5ffd2f in postEventSourceDispatch (s=0x55b10f201bc0) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qeventdispatcher_glib.cpp:246
#45 0x00007fb3993ef880 in g_main_dispatch (context=0x7fb380000f00) at ../glib/gmain.c:3398
#46 g_main_context_dispatch_unlocked (context=0x7fb380000f00) at ../glib/gmain.c:4249
#47 0x00007fb3993f87a8 in g_main_context_iterate_unlocked (context=context@entry=0x7fb380000f00, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
    at ../glib/gmain.c:4314
#48 0x00007fb3993f8953 in g_main_context_iteration (context=0x7fb380000f00, may_block=1) at ../glib/gmain.c:4379
#49 0x00007fb39b5ff56d in QEventDispatcherGlib::processEvents (this=0x55b10f202d70, flags=...)
    at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qeventdispatcher_glib.cpp:399
#50 0x00007fb39b303783 in QEventLoop::exec (this=this@entry=0x7ffeb00fe990, flags=..., flags@entry=...) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/global/qflags.h:77
#51 0x00007fb39b2ff229 in QCoreApplication::exec () at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1449
#52 0x00007fb39badac3d in QGuiApplication::exec () at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/gui/kernel/qguiapplication.cpp:1993
#53 0x00007fb39c43d719 in QApplication::exec () at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/widgets/kernel/qapplication.cpp:2568
#54 0x000055b0e102fc0d in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/xdg-desktop-portal-kde-6.3.5-1.fc42.x86_64/src/xdg-desktop-portal-kde.cpp:63
```

``` bt full
#6  0x00007fb39b353809 in QObjectPrivate::connectImpl
    (sender=sender@entry=0x55b10fabf0e0, signal_index=<optimized out>, receiver=receiver@entry=0x55b10f9f81c0, slot=slot@entry=0x7ffeb00fcad0, slotObjRaw=slotObjRaw@entry=0x55b10fbd4ab0, type=<optimized out>, types=<optimized out>, senderMetaObject=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qobject.cpp:5332
        slotObj = std::unique_ptr<QtPrivate::QSlotObjectBase> = {get() = 0x0}
        s = 0x55b10fabf0e0
        r = 0x55b10f9f81c0
        locker = {mtx1 = 0x7fb39b8ac260 <_q_ObjectMutexPool+128>, mtx2 = 0x7fb39b8ac430 <_q_ObjectMutexPool+592>, locked = false}
        isSingleShot = <optimized out>
        c = std::unique_ptr<QObjectPrivate::Connection> = {get() = 0x0}
        td = <optimized out>
        ret = {d_ptr = 0x55b1101709f0}
        method = {mobj = 0x55b0e113c100 <ScreencastingStream::staticMetaObject>, data = {d = 0x55b0e110a028 <_ZN19ScreencastingStream32qt_staticMetaObjectStaticContentIN12_GLOBAL__N_138qt_meta_tag_ZN19ScreencastingStreamE_tEEE.lto_priv.0+104>}}
#7  0x00007fb39b353b10 in QObject::connectImpl
    (sender=sender@entry=0x55b10fabf0e0, signal=signal@entry=0x7ffeb00fcaf0, receiver=receiver@entry=0x55b10f9f81c0, slot=slot@entry=0x7ffeb00fcad0, slotObjRaw=0x55b10fbd4ab0, type=Qt::AutoConnection, types=0x0, senderMetaObject=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.0-2.fc42.x86_64/src/corelib/kernel/qobject.cpp:5244
        slotObj = std::unique_ptr<QtPrivate::QSlotObjectBase> = {get() = 0x0}
        signal_index = 5
        args = {0x7ffeb00fc9ec, 0x7ffeb00fcaf0}
#8  0x000055b0e10ad70e in QObject::connect<void (ScreencastingStream::*)(), void (ScreenCastSession::*)()>
    (type=Qt::AutoConnection, sender=0x55b10fabf0e0, signal=(void (ScreencastingStream::*)(class ScreencastingStream * const)) 0x55b0e10318f0 <ScreencastingStream::closed()>, context=0x55b10f9f81c0, slot=@0x7ffeb00fcad0: (void (ScreenCastSession::*)(class ScreenCastSession * const)) 0x55b0e10a96c0 <ScreenCastSession::streamClosed()>)
    at /usr/include/qt6/QtCore/qobject.h:272
        types = 0x0
        pSlot = 0x7ffeb00fcad0
#9  ScreenCastSession::setStreams (this=0x55b10f9f81c0, streams=<optimized out>) at /usr/src/debug/xdg-desktop-portal-kde-6.3.5-1.fc42.x86_64/src/session.cpp:309
        s = @0x55b110163280: {stream = 0x55b10fabf0e0, nodeId = 111, map = {d = {d = {ptr = 0x55b10f8b27a0}}}}
#10 0x000055b0e10a5950 in ScreenCastPortal::Start
    (this=<optimized out>, handle=<optimized out>, session_handle=<optimized out>, app_id=..., parent_window=<optimized out>, options=<optimized out>, results=...)
    at /usr/src/debug/xdg-desktop-portal-kde-6.3.5-1.fc42.x86_64/src/screencast.cpp:335
        outputs = {<QListSpecialMethods<QVariant>> = {<QListSpecialMethodsBase<QVariant>> = {<No data fields>}, <No data fields>}, d = {d = 0x55b10f5fad50, ptr = 0x55b10f5fad60, size = 1}}
        windows = {<QListSpecialMethods<WindowRestoreInfo>> = {<QListSpecialMethodsBase<WindowRestoreInfo>> = {<No data fields>}, <No data fields>}, d = {d = 0x0, ptr = 0x0, size = 0}}
        streams = {<QListSpecialMethods<WaylandIntegration::Stream>> = {<QListSpecialMethodsBase<WaylandIntegration::Stream>> = {<No data fields>}, <No data fields>}, d = {d = 0x55b110163270, ptr = 0x55b110163280, size = 1}}
        cursorMode = Screencasting::Metadata
        session = {wp = {d = 0x55b10f682590, value = 0x55b10f9f81c0}}
        persist = ScreenCastPortal::PersistUntilRevoked
        valid = <optimized out>
        selectedOutputs = {<QListSpecialMethods<Output>> = {<QListSpecialMethodsBase<Output>> = {<No data fields>}, <No data fields>}, d = {d = 0x55b10f9f2cc0, ptr = 0x55b10f9f2cd0, size = 1}}
        selectedWindows = {<QListSpecialMethods<KWayland::Client::PlasmaWindow*>> = {<QListSpecialMethodsBase<KWayland::Client::PlasmaWindow*>> = {<No data fields>}, <No data fields>}, d = {d = 0x0, ptr = <optimized out>, size = <optimized out>}}
        selectedRegion = {x1 = 0, y1 = 0, x2 = -1, y2 = -1}
        allowRestore = <optimized out>
```
Comment 5 postix 2025-05-23 13:38:02 UTC
^ some additional note: The window preview in OBS was frozen, when/after the crashed happened, thus I had to remove and add it again.
Comment 6 Bug Janitor Service 2025-06-03 09:25:14 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/merge_requests/396
Comment 7 David Redondo 2025-06-03 09:38:24 UTC
Git commit 13a19d1db5562d45477c6fa2cb53c3f40d7c60ed by David Redondo.
Committed on 03/06/2025 at 09:34.
Pushed by davidre into branch 'master'.

screencast: Guard against session closing while creating stream

Starting a stream runs an event loop during which the session can
be closed. For now use a QPointer to guard against that until
we make it not use an event loop anymore.
FIXED-IN:6.4

M  +5    -0    src/screencast.cpp

https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/commit/13a19d1db5562d45477c6fa2cb53c3f40d7c60ed
Comment 8 David Redondo 2025-06-03 10:17:10 UTC
Git commit 011d08c340bab468eec6aa347ae138e40c6332cf by David Redondo.
Committed on 03/06/2025 at 10:10.
Pushed by davidre into branch 'Plasma/6.4'.

screencast: Guard against session closing while creating stream

Starting a stream runs an event loop during which the session can
be closed. For now use a QPointer to guard against that until
we make it not use an event loop anymore.
FIXED-IN:6.4


(cherry picked from commit 13a19d1db5562d45477c6fa2cb53c3f40d7c60ed)

Co-authored-by: David Redondo <kde@david-redondo.de>

M  +5    -0    src/screencast.cpp

https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/commit/011d08c340bab468eec6aa347ae138e40c6332cf