https://bugs.kde.org/show_bug.cgi?id=459693
Bug ID: 459693 Summary: OBS crashes in portals when monitor for screen capture (pipewire) is changed Classification: Plasma Product: xdg-desktop-portal-kde Version: git-master Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: plasma-b...@kde.org Reporter: eric1.armbrus...@gmail.com CC: aleix...@kde.org, jgrul...@redhat.com, n...@kde.org Target Milestone: --- SUMMARY 0 0x00007982754a64d8 in pthread_sigmask () from /usr/lib/libc.so.6 #1 0x0000798275451bfd in sigprocmask () from /usr/lib/libc.so.6 #2 0x0000798275f29052 in KCrash::setCrashHandler (handler=0x0) at /home/eric/kde/src/kcrash/src/kcrash.cpp:415 #3 0x0000798275f29ae8 in KCrash::defaultCrashHandler (sig=11) at /home/eric/kde/src/kcrash/src/kcrash.cpp:632 #4 <signal handler called> #5 std::__atomic_base<int>::load (__m=std::memory_order_relaxed, this=0x6f72665f72656601) at /usr/include/c++/12.2.0/bits/atomic_base.h:488 #6 QAtomicOps<int>::loadRelaxed<int> ( _q_value=<error reading variable: Cannot access memory at address 0x6f72665f72656601>) at /usr/include/qt/QtCore/qatomic_cxx11.h:239 #7 0x0000581bef707c1a in QBasicAtomicInteger<int>::loadRelaxed (this=0x6f72665f72656601) at /usr/include/qt/QtCore/qbasicatomic.h:107 #8 0x0000581bef70768c in QtPrivate::RefCount::deref (this=0x6f72665f72656601) at /usr/include/qt/QtCore/qrefcount.h:66 #9 0x0000581bef74b2ff in QVector<WaylandIntegration::Stream>::~QVector (this=0x7ffd877a6910, __in_chrg=<optimized out>) at /usr/include/qt/QtCore/qvector.h:73 #10 0x0000581bef7527ec in QVector<WaylandIntegration::Stream>::operator= ( this=0x581befda4a90, v=QVector<WaylandIntegration::Stream> (size = 1) = {...}) at /usr/include/qt/QtCore/qvector.h:500 #11 0x0000581bef7523b9 in ScreenCastSession::setStreams (this=0x581befda4a60, streams=QVector<WaylandIntegration::Stream> (size = 1) = {...}) at /home/eric/kde/src/xdg-desktop-portal-kde/src/session.h:80 #12 0x0000581bef751c29 in ScreenCastPortal::Start (this=0x581befa4fae0, handle=..., session_handle=..., app_id="com.obsproject.Studio", parent_window="", options=QMap<QString, QVariant> (size = 0), results=QMap<QString, QVariant> (size = 0)) at /home/eric/kde/src/xdg-desktop-portal-kde/src/screencast.cpp:304 #13 0x0000581bef7055e0 in ScreenCastPortal::qt_static_metacall (_o=0x581befa4fae0, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0x7ffd877a6d00) at /home/eric/kde/build/xdg-desktop-portal-kde/src/xdg-desktop-portal-kde_autogen/EWIEGA46WW/moc_screencast.cpp:143 #14 0x0000581bef705877 in ScreenCastPortal::qt_metacall (this=0x581befa4fae0, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0x7ffd877a6d00) at /home/eric/kde/build/xdg-desktop-portal-kde/src/xdg-desktop-portal-kde_autogen/EWIEGA46WW/moc_screencast.cpp:223 #15 0x000079827712545f in ?? () from /usr/lib/libQt5DBus.so.5 #16 0x00007982770ebbc4 in ?? () from /usr/lib/libQt5DBus.so.5 #17 0x00007982770ec719 in ?? () from /usr/lib/libQt5DBus.so.5 #18 0x00007982770ec75c in ?? () from /usr/lib/libQt5DBus.so.5 #19 0x0000798275cb0520 in QObject::event(QEvent*) () from /usr/lib/libQt5Core.so.5 #20 0x0000798277b78b1c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5 STEPS TO REPRODUCE 1. Open OBS 2. In Sources select "screen capture (pipewire)" -> select a screen -> everything good 3. click again on the same screen capture source -> select monitor -> crash OBSERVED RESULT Crash EXPECTED RESULT No crash SOFTWARE/OS VERSIONS latest git master as of 9/26/22 ADDITIONAL INFORMATION Reproducible every time, I see this already since 5.25.0 at least crashing Not sure if the bug is in portals, might also be OBS, just had a quick glance at the crash -- You are receiving this mail because: You are watching all bug changes.