Bug 461068 - OSD: kscreen_osd_ser coredumps in KScreen::Output::~Output() when pressing Fn+F7 (monitor config key)
Summary: OSD: kscreen_osd_ser coredumps in KScreen::Output::~Output() when pressing Fn...
Status: REPORTED
Alias: None
Product: KScreen
Classification: Plasma
Component: OSD and Plasma applet (show other bugs)
Version: 5.26.2
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: kscreen-bugs-null@kde.org
URL:
Keywords:
: 460798 461460 462646 467237 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-10-27 14:38 UTC by Vorpal
Modified: 2023-07-26 19:57 UTC (History)
13 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
gdb_session.log (38.45 KB, text/x-log)
2022-10-27 14:38 UTC, Vorpal
Details
journalctl log of (kscreen_osd_ser) of user 1000 dumped (151.19 KB, text/plain)
2023-04-16 10:07 UTC, Ondrej Malek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vorpal 2022-10-27 14:38:27 UTC
Created attachment 153236 [details]
gdb_session.log

SUMMARY
plasma-kscreen-osd.service crashes when activating the monitor configuration key on a laptop. All functionality seems to still work, which seems to be because it crashes in the destructor. This is fully reproducible. A log of the coredumpctl session is attached.

STEPS TO REPRODUCE
1.  On a Lenovo Thinkpad P15 Gen1, press Fn+F7. This brings up a OSD display to change the external display config (mirror, extend left, ...). This appears to work correctly.
2. Notice how the systemd user service plasma-kscreen-osd.service is now crashed. 

OBSERVED RESULT
A crashed systemd unit, plus a core dump in /var/lib/systemd/coredump/.

EXPECTED RESULT
No crash? I mean, that is what I usually expect at least!

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  Arch Linux
KDE Plasma Version: 5.26.2
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.6

ADDITIONAL INFORMATION

The laptop has nvidia graphics and is running in nvidia mode (not intel or hybrid). I don't know if this makes a difference. I can't test that however, as the external monitors are connected directly to the nvidia GPU and thus won't work in intel mode. Additionally, hybrid mode is very unstable and crashy preventing testing that entirely.
Comment 1 Nate Graham 2022-10-28 19:34:00 UTC
If something crashed, we need a backtrace of it so we can figure out what's going on. See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports.

Can you please attach one? Thanks!
Comment 2 Vorpal 2022-10-29 08:22:34 UTC
(In reply to Nate Graham from comment #1)
> If something crashed, we need a backtrace of it so we can figure out what's
> going on. See
> https://community.kde.org/Guidelines_and_HOWTOs/Debugging/
> How_to_create_useful_crash_reports.
> 
> Can you please attach one? Thanks!

Hi!

Did you even look in the attached gdb_session.log? I ran bt. What other sort of backtrace do you want?
Comment 3 Nate Graham 2022-10-31 18:02:25 UTC
I did, sorry. Thanks for the detailed debugging data. I'm pasting the backtrace part of it inline for searchability:

#0  0x00007fbed40c46cf in QWindow::setVisible (this=<optimized out>, visible=false) at kernel/qwindow.cpp:623
#1  0x00007fbed3d1e381 in QtPrivate::QSlotObjectBase::call (a=<optimized out>, r=<optimized out>, this=<optimized out>, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#2  doActivate<false> (sender=0x556600b9c0d0, signal_index=0, argv=0x7ffce5da42e0) at kernel/qobject.cpp:3919
#3  0x00007fbed3d1e724 in QObject::destroyed (this=<optimized out>, _t1=<optimized out>) at .moc/moc_qobject.cpp:219
#4  0x00007fbed3d14cec in QObject::~QObject (this=<optimized out>, this=<optimized out>) at kernel/qobject.cpp:1010
#5  0x00007fbed4fe0c2a in KScreen::Output::~Output (this=<optimized out>, this=<optimized out>) at /usr/src/debug/libkscreen-5.26.2/src/output.cpp:176
#6  QtSharedPointer::CustomDeleter<KScreen::Output, QtSharedPointer::NormalDeleter>::execute (this=<optimized out>) at /usr/include/qt/QtCore/qsharedpointer_impl.h:187
#7  QtSharedPointer::ExternalRefCountWithCustomDeleter<KScreen::Output, QtSharedPointer::NormalDeleter>::deleter (self=<optimized out>) at /usr/include/qt/QtCore/qsharedpointer_impl.h:205
#8  0x00005565ff8b3956 in QtSharedPointer::ExternalRefCountData::destroy (this=0x556600b9c020) at /usr/include/qt/QtCore/qsharedpointer_impl.h:149
#9  QSharedPointer<KScreen::Config>::deref (dd=0x556600b9c020) at /usr/include/qt/QtCore/qsharedpointer_impl.h:458
#10 QSharedPointer<KScreen::Output>::deref (dd=<optimized out>, dd=<optimized out>) at /usr/include/qt/QtCore/qsharedpointer_impl.h:454
#11 QSharedPointer<KScreen::Output>::deref (this=<optimized out>, this=<optimized out>) at /usr/include/qt/QtCore/qsharedpointer_impl.h:453
#12 QSharedPointer<KScreen::Output>::~QSharedPointer (this=<optimized out>, this=<optimized out>) at /usr/include/qt/QtCore/qsharedpointer_impl.h:310
#13 KScreen::Osd::~Osd (this=<optimized out>, this=<optimized out>) at /usr/src/debug/kscreen-5.26.2/osd/osd.cpp:40
#14 0x00005565ff8b39e5 in KScreen::Osd::~Osd (this=<optimized out>, this=<optimized out>) at /usr/src/debug/kscreen-5.26.2/osd/osd.cpp:38
#15 qDeleteAll<QMap<QString, KScreen::Osd*>::const_iterator> (end=..., begin=...) at /usr/include/qt/QtCore/qalgorithms.h:320
#16 qDeleteAll<QMap<QString, KScreen::Osd*> > (c=...) at /usr/include/qt/QtCore/qalgorithms.h:328
#17 KScreen::OsdManager::quit (this=0x7ffce5da48d0) at /usr/src/debug/kscreen-5.26.2/osd/osdmanager.cpp:49
#18 0x00007fbed3d11520 in QObject::event (this=0x7ffce5da48d0, e=0x556600d052c0) at kernel/qobject.cpp:1347
#19 0x00007fbed3cedb88 in QCoreApplication::notifyInternal2 (receiver=0x7ffce5da48d0, event=0x556600d052c0) at kernel/qcoreapplication.cpp:1064
#20 0x00007fbed3cee693 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x55660051c100) at kernel/qcoreapplication.cpp:1821
#21 0x00007fbed3d34728 in postEventSourceDispatch (s=0x556600683dc0) at kernel/qeventdispatcher_glib.cpp:277
#22 0x00007fbed1f3b81b in g_main_dispatch (context=0x7fbec8005010) at ../glib/glib/gmain.c:3444
#23 g_main_context_dispatch (context=0x7fbec8005010) at ../glib/glib/gmain.c:4162
#24 0x00007fbed1f91ec9 in g_main_context_iterate.constprop.0 (context=0x7fbec8005010, block=1, dispatch=1, self=<optimized out>) at ../glib/glib/gmain.c:4238
#25 0x00007fbed1f3a0d2 in g_main_context_iteration (context=0x7fbec8005010, may_block=1) at ../glib/glib/gmain.c:4303
#26 0x00007fbed3d3850c in QEventDispatcherGlib::processEvents (this=0x556600681f00, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#27 0x00007fbed3ce632c in QEventLoop::exec (this=0x7ffce5da4830, flags=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#28 0x00007fbed3cf0e59 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#29 0x00007fbed40bc0e2 in QGuiApplication::exec () at kernel/qguiapplication.cpp:1870
#30 0x00005565ff8ae4db in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kscreen-5.26.2/osd/main.cpp:17
Comment 4 Nate Graham 2022-11-05 17:32:28 UTC
*** Bug 461460 has been marked as a duplicate of this bug. ***
Comment 5 Nate Graham 2022-12-11 17:34:00 UTC
*** Bug 462646 has been marked as a duplicate of this bug. ***
Comment 6 Nate Graham 2022-12-11 17:34:45 UTC
*** Bug 460798 has been marked as a duplicate of this bug. ***
Comment 7 whatifgodwasoneofus 2023-02-18 19:18:01 UTC
(In reply to Nate Graham from comment #3)

I have a hybrid laptop and this issues happens also when I run it in intel-only mode.

Here is my stacktrace:

```
Feb 18 20:15:18 sobriety dbus-daemon[1032]: [session uid=1000 pid=1032] Activating via systemd: service name='org.kde.kscreen.osdService' unit='plasma-kscreen-osd.service' requested by ':1.7' (uid=1000 pid=1080 comm="/usr/bin/kded5")
Feb 18 20:15:18 sobriety systemd[1012]: Starting KScreen OSD service...
Feb 18 20:15:18 sobriety dbus-daemon[1032]: [session uid=1000 pid=1032] Successfully activated service 'org.kde.kscreen.osdService'
Feb 18 20:15:18 sobriety systemd[1012]: Started KScreen OSD service.
Feb 18 20:15:18 sobriety kscreen_osd_service[4899]: Could not create scene graph context for backend 'opengl' - check that plugins are installed correctly in /usr/lib/qt/plugins
Feb 18 20:15:23 sobriety audit[4899]: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=3 pid=4899 comm="kscreen_osd_ser" exe="/usr/lib/kscreen_osd_service" sig=11 res=1
Feb 18 20:15:23 sobriety kscreen_backend_launcher[1317]: kscreen.xrandr: XRandR::setConfig
Feb 18 20:15:23 sobriety kscreen_backend_launcher[1317]: kscreen.xrandr: Requested screen size is QSize(1920, 1080)
Feb 18 20:15:23 sobriety kscreen_backend_launcher[1317]: kscreen.xrandr: Needed CRTCs:  1
Feb 18 20:15:23 sobriety kscreen_backend_launcher[1317]: kscreen.xrandr: Actions to perform: 
                                                                Primary Output: false
Feb 18 20:15:23 sobriety kscreen_backend_launcher[1317]: kscreen.xrandr:        Change Screen Size: false
Feb 18 20:15:23 sobriety kscreen_backend_launcher[1317]: kscreen.xrandr:        Disable outputs: false
Feb 18 20:15:23 sobriety kscreen_backend_launcher[1317]: kscreen.xrandr:        Change outputs: false
Feb 18 20:15:23 sobriety kscreen_backend_launcher[1317]: kscreen.xrandr:        Enable outputs: false
Feb 18 20:15:23 sobriety kscreen_backend_launcher[1317]: kscreen.xrandr: XRandR::setConfig done!
Feb 18 20:15:23 sobriety kernel: kscreen_osd_ser[4899]: segfault at 40 ip 00007f1c5ab4253f sp 00007ffe3ee502a8 error 4 in libQt5Gui.so.5.15.8[7f1c5aaf7000+45e000] likely on CPU 6 (core 12, socket 0)
Feb 18 20:15:23 sobriety kernel: Code: 8b 44 24 68 eb d5 90 0f 1f 40 00 f3 0f 1e fa 48 8b 47 08 89 70 58 c3 0f 1f 40 00 f3 0f 1e fa 48 8b 7f 08 40 0f b6 f6 48 8b 07 <ff> 60 20 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 f3 0f 1e fa 48
Feb 18 20:15:23 sobriety kernel: audit: type=1701 audit(1676747723.389:194): auid=1000 uid=1000 gid=1000 ses=3 pid=4899 comm="kscreen_osd_ser" exe="/usr/lib/kscreen_osd_service" sig=11 res=1
Feb 18 20:15:23 sobriety audit: BPF prog-id=58 op=LOAD
Feb 18 20:15:23 sobriety audit: BPF prog-id=59 op=LOAD
Feb 18 20:15:23 sobriety audit: BPF prog-id=60 op=LOAD
Feb 18 20:15:23 sobriety kernel: audit: type=1334 audit(1676747723.393:195): prog-id=58 op=LOAD
Feb 18 20:15:23 sobriety kernel: audit: type=1334 audit(1676747723.393:196): prog-id=59 op=LOAD
Feb 18 20:15:23 sobriety kernel: audit: type=1334 audit(1676747723.393:197): prog-id=60 op=LOAD
Feb 18 20:15:23 sobriety systemd[1]: Started Process Core Dump (PID 4924/UID 0).
Feb 18 20:15:23 sobriety audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@6-4924-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 18 20:15:23 sobriety kernel: audit: type=1130 audit(1676747723.443:198): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@6-4924-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 18 20:15:23 sobriety systemd-coredump[4925]: [🡕] Process 4899 (kscreen_osd_ser) of user 1000 dumped core.
                                                 
                                                 Stack trace of thread 4899:
                                                 #0  0x00007f1c5ab4253f _ZN7QWindow10setVisibleEb (libQt5Gui.so.5 + 0x14253f)
                                                 #1  0x00007f1c5a6bea71 n/a (libQt5Core.so.5 + 0x2bea71)
                                                 #2  0x00007f1c5a6bee14 _ZN7QObject9destroyedEPS_ (libQt5Core.so.5 + 0x2bee14)
                                                 #3  0x00007f1c5a6b537c _ZN7QObjectD2Ev (libQt5Core.so.5 + 0x2b537c)
                                                 #4  0x00007f1c5bf27e8a n/a (libKF5Screen.so.7 + 0x28e8a)
                                                 #5  0x000055d914f6e956 n/a (kscreen_osd_service + 0xa956)
                                                 #6  0x000055d914f6e9e5 n/a (kscreen_osd_service + 0xa9e5)
                                                 #7  0x00007f1c5a6b1bb0 _ZN7QObject5eventEP6QEvent (libQt5Core.so.5 + 0x2b1bb0)
                                                 #8  0x00007f1c5a68df48 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5 + 0x28df48)
                                                 #9  0x00007f1c5a68ea53 _ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData (libQt5Core.so.5 + 0x28ea53)
                                                 #10 0x00007f1c5a6d4e88 n/a (libQt5Core.so.5 + 0x2d4e88)
                                                 #11 0x00007f1c58f1682b g_main_context_dispatch (libglib-2.0.so.0 + 0x5582b)
                                                 #12 0x00007f1c58f6dcc9 n/a (libglib-2.0.so.0 + 0xaccc9)
                                                 #13 0x00007f1c58f150e2 g_main_context_iteration (libglib-2.0.so.0 + 0x540e2)
                                                 #14 0x00007f1c5a6d8c6c _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2d8c6c)
                                                 #15 0x00007f1c5a6866ec _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2866ec)
                                                 #16 0x00007f1c5a691219 _ZN16QCoreApplication4execEv (libQt5Core.so.5 + 0x291219)
                                                 #17 0x000055d914f694db n/a (kscreen_osd_service + 0x54db)
                                                 #18 0x00007f1c5b63c790 n/a (libc.so.6 + 0x23790)
                                                 #19 0x00007f1c5b63c84a __libc_start_main (libc.so.6 + 0x2384a)
                                                 #20 0x000055d914f69685 n/a (kscreen_osd_service + 0x5685)
                                                 
                                                 Stack trace of thread 4906:
                                                 #0  0x00007f1c5b69b766 n/a (libc.so.6 + 0x82766)
                                                 #1  0x00007f1c5b69df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                                                 #2  0x00007f1c4250c49e n/a (iris_dri.so + 0x10c49e)
                                                 #3  0x00007f1c424bc86c n/a (iris_dri.so + 0xbc86c)
                                                 #4  0x00007f1c4250c3cc n/a (iris_dri.so + 0x10c3cc)
                                                 #5  0x00007f1c5b69ebb5 n/a (libc.so.6 + 0x85bb5)
                                                 #6  0x00007f1c5b720d90 n/a (libc.so.6 + 0x107d90)
                                                 
                                                 Stack trace of thread 4900:
                                                 #0  0x00007f1c5b7139df __poll (libc.so.6 + 0xfa9df)
                                                 #1  0x00007f1c58f6dc2f n/a (libglib-2.0.so.0 + 0xacc2f)
                                                 #2  0x00007f1c58f150e2 g_main_context_iteration (libglib-2.0.so.0 + 0x540e2)
                                                 #3  0x00007f1c5a6d8c6c _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2d8c6c)
                                                 #4  0x00007f1c5a6866ec _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2866ec)
                                                 #5  0x00007f1c5a4e725f _ZN7QThread4execEv (libQt5Core.so.5 + 0xe725f)
                                                 #6  0x00007f1c5be95cba n/a (libQt5DBus.so.5 + 0x23cba)
                                                 #7  0x00007f1c5a4e432a n/a (libQt5Core.so.5 + 0xe432a)
                                                 #8  0x00007f1c5b69ebb5 n/a (libc.so.6 + 0x85bb5)
                                                 #9  0x00007f1c5b720d90 n/a (libc.so.6 + 0x107d90)
                                                 
                                                 Stack trace of thread 4913:
                                                 #0  0x00007f1c5b69b766 n/a (libc.so.6 + 0x82766)
                                                 #1  0x00007f1c5b69df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                                                 #2  0x00007f1c4250c49e n/a (iris_dri.so + 0x10c49e)
                                                 #3  0x00007f1c424bc86c n/a (iris_dri.so + 0xbc86c)
                                                 #4  0x00007f1c4250c3cc n/a (iris_dri.so + 0x10c3cc)
                                                 #5  0x00007f1c5b69ebb5 n/a (libc.so.6 + 0x85bb5)
                                                 #6  0x00007f1c5b720d90 n/a (libc.so.6 + 0x107d90)
                                                 
                                                 Stack trace of thread 4909:
                                                 #0  0x00007f1c5b69b766 n/a (libc.so.6 + 0x82766)
                                                 #1  0x00007f1c5b69df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                                                 #2  0x00007f1c4250c49e n/a (iris_dri.so + 0x10c49e)
                                                 #3  0x00007f1c424bc86c n/a (iris_dri.so + 0xbc86c)
                                                 #4  0x00007f1c4250c3cc n/a (iris_dri.so + 0x10c3cc)
                                                 #5  0x00007f1c5b69ebb5 n/a (libc.so.6 + 0x85bb5)
                                                 #6  0x00007f1c5b720d90 n/a (libc.so.6 + 0x107d90)
                                                 
                                                 Stack trace of thread 4914:
                                                 #0  0x00007f1c5b69b766 n/a (libc.so.6 + 0x82766)
                                                 #1  0x00007f1c5b69df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                                                 #2  0x00007f1c4250c49e n/a (iris_dri.so + 0x10c49e)
                                                 #3  0x00007f1c424bc86c n/a (iris_dri.so + 0xbc86c)
                                                 #4  0x00007f1c4250c3cc n/a (iris_dri.so + 0x10c3cc)
                                                 #5  0x00007f1c5b69ebb5 n/a (libc.so.6 + 0x85bb5)
                                                 #6  0x00007f1c5b720d90 n/a (libc.so.6 + 0x107d90)
                                                 
                                                 Stack trace of thread 4917:
                                                 #0  0x00007f1c5b69b766 n/a (libc.so.6 + 0x82766)
                                                 #1  0x00007f1c5b69df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                                                 #2  0x00007f1c4250c49e n/a (iris_dri.so + 0x10c49e)
                                                 #3  0x00007f1c424bc86c n/a (iris_dri.so + 0xbc86c)
                                                 #4  0x00007f1c4250c3cc n/a (iris_dri.so + 0x10c3cc)
                                                 #5  0x00007f1c5b69ebb5 n/a (libc.so.6 + 0x85bb5)
                                                 #6  0x00007f1c5b720d90 n/a (libc.so.6 + 0x107d90)
                                                 
                                                 Stack trace of thread 4907:
                                                 #0  0x00007f1c5b69b766 n/a (libc.so.6 + 0x82766)
                                                 #1  0x00007f1c5b69df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                                                 #2  0x00007f1c4250c49e n/a (iris_dri.so + 0x10c49e)
                                                 #3  0x00007f1c424bc86c n/a (iris_dri.so + 0xbc86c)
                                                 #4  0x00007f1c4250c3cc n/a (iris_dri.so + 0x10c3cc)
                                                 #5  0x00007f1c5b69ebb5 n/a (libc.so.6 + 0x85bb5)
                                                 #6  0x00007f1c5b720d90 n/a (libc.so.6 + 0x107d90)
                                                 
                                                 Stack trace of thread 4903:
                                                 #0  0x00007f1c5b69b766 n/a (libc.so.6 + 0x82766)
                                                 #1  0x00007f1c5b69df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                                                 #2  0x00007f1c4250c49e n/a (iris_dri.so + 0x10c49e)
                                                 #3  0x00007f1c424bc86c n/a (iris_dri.so + 0xbc86c)
                                                 #4  0x00007f1c4250c3cc n/a (iris_dri.so + 0x10c3cc)
                                                 #5  0x00007f1c5b69ebb5 n/a (libc.so.6 + 0x85bb5)
                                                 #6  0x00007f1c5b720d90 n/a (libc.so.6 + 0x107d90)
                                                 
                                                 Stack trace of thread 4918:
                                                 #0  0x00007f1c5b69b766 n/a (libc.so.6 + 0x82766)
                                                 #1  0x00007f1c5b69df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                                                 #2  0x00007f1c4250c49e n/a (iris_dri.so + 0x10c49e)
                                                 #3  0x00007f1c424bc86c n/a (iris_dri.so + 0xbc86c)
                                                 #4  0x00007f1c4250c3cc n/a (iris_dri.so + 0x10c3cc)
                                                 #5  0x00007f1c5b69ebb5 n/a (libc.so.6 + 0x85bb5)
                                                 #6  0x00007f1c5b720d90 n/a (libc.so.6 + 0x107d90)
                                                 
                                                 Stack trace of thread 4916:
                                                 #0  0x00007f1c5b69b766 n/a (libc.so.6 + 0x82766)
                                                 #1  0x00007f1c5b69df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                                                 #2  0x00007f1c4250c49e n/a (iris_dri.so + 0x10c49e)
                                                 #3  0x00007f1c424bc86c n/a (iris_dri.so + 0xbc86c)
                                                 #4  0x00007f1c4250c3cc n/a (iris_dri.so + 0x10c3cc)
                                                 #5  0x00007f1c5b69ebb5 n/a (libc.so.6 + 0x85bb5)
                                                 #6  0x00007f1c5b720d90 n/a (libc.so.6 + 0x107d90)
                                                 
                                                 Stack trace of thread 4905:
                                                 #0  0x00007f1c5b69b766 n/a (libc.so.6 + 0x82766)
                                                 #1  0x00007f1c5b69df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                                                 #2  0x00007f1c4250c49e n/a (iris_dri.so + 0x10c49e)
                                                 #3  0x00007f1c424bc86c n/a (iris_dri.so + 0xbc86c)
                                                 #4  0x00007f1c4250c3cc n/a (iris_dri.so + 0x10c3cc)
                                                 #5  0x00007f1c5b69ebb5 n/a (libc.so.6 + 0x85bb5)
                                                 #6  0x00007f1c5b720d90 n/a (libc.so.6 + 0x107d90)
                                                 
                                                 Stack trace of thread 4910:
                                                 #0  0x00007f1c5b69b766 n/a (libc.so.6 + 0x82766)
                                                 #1  0x00007f1c5b69df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                                                 #2  0x00007f1c4250c49e n/a (iris_dri.so + 0x10c49e)
                                                 #3  0x00007f1c424bc86c n/a (iris_dri.so + 0xbc86c)
                                                 #4  0x00007f1c4250c3cc n/a (iris_dri.so + 0x10c3cc)
                                                 #5  0x00007f1c5b69ebb5 n/a (libc.so.6 + 0x85bb5)
                                                 #6  0x00007f1c5b720d90 n/a (libc.so.6 + 0x107d90)
                                                 
                                                 Stack trace of thread 4915:
                                                 #0  0x00007f1c5b69b766 n/a (libc.so.6 + 0x82766)
                                                 #1  0x00007f1c5b69df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                                                 #2  0x00007f1c4250c49e n/a (iris_dri.so + 0x10c49e)
                                                 #3  0x00007f1c424bc86c n/a (iris_dri.so + 0xbc86c)
                                                 #4  0x00007f1c4250c3cc n/a (iris_dri.so + 0x10c3cc)
                                                 #5  0x00007f1c5b69ebb5 n/a (libc.so.6 + 0x85bb5)
                                                 #6  0x00007f1c5b720d90 n/a (libc.so.6 + 0x107d90)
                                                 
                                                 Stack trace of thread 4904:
                                                 #0  0x00007f1c5b69b766 n/a (libc.so.6 + 0x82766)
                                                 #1  0x00007f1c5b69df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                                                 #2  0x00007f1c4250c49e n/a (iris_dri.so + 0x10c49e)
                                                 #3  0x00007f1c424bc86c n/a (iris_dri.so + 0xbc86c)
                                                 #4  0x00007f1c4250c3cc n/a (iris_dri.so + 0x10c3cc)
                                                 #5  0x00007f1c5b69ebb5 n/a (libc.so.6 + 0x85bb5)
                                                 #6  0x00007f1c5b720d90 n/a (libc.so.6 + 0x107d90)
                                                 
                                                 Stack trace of thread 4908:
                                                 #0  0x00007f1c5b69b766 n/a (libc.so.6 + 0x82766)
                                                 #1  0x00007f1c5b69df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                                                 #2  0x00007f1c4250c49e n/a (iris_dri.so + 0x10c49e)
                                                 #3  0x00007f1c424bc86c n/a (iris_dri.so + 0xbc86c)
                                                 #4  0x00007f1c4250c3cc n/a (iris_dri.so + 0x10c3cc)
                                                 #5  0x00007f1c5b69ebb5 n/a (libc.so.6 + 0x85bb5)
                                                 #6  0x00007f1c5b720d90 n/a (libc.so.6 + 0x107d90)
                                                 
                                                 Stack trace of thread 4911:
                                                 #0  0x00007f1c5b69b766 n/a (libc.so.6 + 0x82766)
                                                 #1  0x00007f1c5b69df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                                                 #2  0x00007f1c4250c49e n/a (iris_dri.so + 0x10c49e)
                                                 #3  0x00007f1c424bc86c n/a (iris_dri.so + 0xbc86c)
                                                 #4  0x00007f1c4250c3cc n/a (iris_dri.so + 0x10c3cc)
                                                 #5  0x00007f1c5b69ebb5 n/a (libc.so.6 + 0x85bb5)
                                                 #6  0x00007f1c5b720d90 n/a (libc.so.6 + 0x107d90)
                                                 
                                                 Stack trace of thread 4901:
                                                 #0  0x00007f1c5b7139df __poll (libc.so.6 + 0xfa9df)
                                                 #1  0x00007f1c5be5026b n/a (libxcb.so.1 + 0xd26b)
                                                 #2  0x00007f1c5be51d1d xcb_wait_for_event (libxcb.so.1 + 0xed1d)
                                                 #3  0x00007f1c5572c252 n/a (libQt5XcbQpa.so.5 + 0x62252)
                                                 #4  0x00007f1c5a4e432a n/a (libQt5Core.so.5 + 0xe432a)
                                                 #5  0x00007f1c5b69ebb5 n/a (libc.so.6 + 0x85bb5)
                                                 #6  0x00007f1c5b720d90 n/a (libc.so.6 + 0x107d90)
                                                 
                                                 Stack trace of thread 4912:
                                                 #0  0x00007f1c5b69b766 n/a (libc.so.6 + 0x82766)
                                                 #1  0x00007f1c5b69df90 pthread_cond_wait (libc.so.6 + 0x84f90)
                                                 #2  0x00007f1c4250c49e n/a (iris_dri.so + 0x10c49e)
                                                 #3  0x00007f1c424bc86c n/a (iris_dri.so + 0xbc86c)
                                                 #4  0x00007f1c4250c3cc n/a (iris_dri.so + 0x10c3cc)
                                                 #5  0x00007f1c5b69ebb5 n/a (libc.so.6 + 0x85bb5)
                                                 #6  0x00007f1c5b720d90 n/a (libc.so.6 + 0x107d90)
                                                 ELF object binary architecture: AMD x86-64
Feb 18 20:15:23 sobriety systemd[1]: systemd-coredump@6-4924-0.service: Deactivated successfully.
Feb 18 20:15:23 sobriety systemd[1012]: plasma-kscreen-osd.service: Main process exited, code=dumped, status=11/SEGV
Feb 18 20:15:23 sobriety systemd[1012]: plasma-kscreen-osd.service: Failed with result 'core-dump'.
Feb 18 20:15:23 sobriety audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@6-4924-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'

```
Comment 8 whatifgodwasoneofus 2023-02-18 19:19:21 UTC
(In reply to whatifgodwasoneofus from comment #7)

Could it be smth related to Qt5?
Comment 9 whatifgodwasoneofus 2023-02-19 16:31:33 UTC
(In reply to whatifgodwasoneofus from comment #8)

NEW INFO: The crash only happens if I attach the cable to a port that is directly controlled by (soldered to?) the discrete GPU. If I attach the cable to another port somehow managed by the Intel GPU, kscreen behaves properly.
I am using the _prime_ drivers.
Comment 10 Nicolas Fella 2023-03-12 13:06:07 UTC
*** Bug 467237 has been marked as a duplicate of this bug. ***
Comment 11 petrk 2023-04-06 23:44:55 UTC
Not sure if it's interesting but here you go.


Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f50115425af in QWindow::setVisible (this=<optimized out>, visible=false) at kernel/qwindow.cpp:630
Downloading source file /usr/src/debug/qt5-base/qtbase/src/gui/kernel/qwindow.cpp
630         d->setVisible(visible);                                                                                    
[Current thread is 1 (Thread 0x7f500f806680 (LWP 5442))]
(gdb) trace
Tracepoint 1 at 0x7f50115425af: file kernel/qwindow.cpp, line 630.
(gdb) bt
#0  0x00007f50115425af in QWindow::setVisible (this=<optimized out>, visible=false) at kernel/qwindow.cpp:630
#1  0x00007f50110bea71 in QtPrivate::QSlotObjectBase::call (a=<optimized out>, r=<optimized out>, 
    this=<optimized out>, this=<optimized out>, r=<optimized out>, a=<optimized out>)
    at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#2  doActivate<false> (sender=0x557d05fe8900, signal_index=0, argv=0x7ffe6cafc880) at kernel/qobject.cpp:3923
#3  0x00007f50110bee14 in QObject::destroyed (this=<optimized out>, _t1=<optimized out>) at .moc/moc_qobject.cpp:219
#4  0x00007f50110b537c in QObject::~QObject (this=<optimized out>, this=<optimized out>) at kernel/qobject.cpp:1010
#5  0x00007f50129c967a in KScreen::Output::~Output (this=<optimized out>, this=<optimized out>)
    at /usr/src/debug/libkscreen/libkscreen-5.27.3/src/output.cpp:180
#6  QtSharedPointer::CustomDeleter<KScreen::Output, QtSharedPointer::NormalDeleter>::execute (this=<optimized out>)
    at /usr/include/qt/QtCore/qsharedpointer_impl.h:187
#7  QtSharedPointer::ExternalRefCountWithCustomDeleter<KScreen::Output, QtSharedPointer::NormalDeleter>::deleter (
    self=<optimized out>) at /usr/include/qt/QtCore/qsharedpointer_impl.h:205
#8  0x0000557d050a1956 in QtSharedPointer::ExternalRefCountData::destroy (this=0x557d05fed2b0)
    at /usr/include/qt/QtCore/qsharedpointer_impl.h:149
#9  QSharedPointer<KScreen::Config>::deref (dd=0x557d05fed2b0) at /usr/include/qt/QtCore/qsharedpointer_impl.h:458
#10 QSharedPointer<KScreen::Output>::deref (dd=<optimized out>, dd=<optimized out>)
    at /usr/include/qt/QtCore/qsharedpointer_impl.h:454
#11 QSharedPointer<KScreen::Output>::deref (this=<optimized out>, this=<optimized out>)
    at /usr/include/qt/QtCore/qsharedpointer_impl.h:453
#12 QSharedPointer<KScreen::Output>::~QSharedPointer (this=<optimized out>, this=<optimized out>)
    at /usr/include/qt/QtCore/qsharedpointer_impl.h:310
#13 KScreen::Osd::~Osd (this=<optimized out>, this=<optimized out>)
    at /usr/src/debug/kscreen/kscreen-5.27.3/osd/osd.cpp:38
#14 0x0000557d050a19e5 in KScreen::Osd::~Osd (this=<optimized out>, this=<optimized out>)
    at /usr/src/debug/kscreen/kscreen-5.27.3/osd/osd.cpp:36
#15 qDeleteAll<QMap<QString, KScreen::Osd*>::const_iterator> (end=..., begin=...)
    at /usr/include/qt/QtCore/qalgorithms.h:320
#16 qDeleteAll<QMap<QString, KScreen::Osd*> > (c=...) at /usr/include/qt/QtCore/qalgorithms.h:328
#17 KScreen::OsdManager::quit (this=0x7ffe6cafce70) at /usr/src/debug/kscreen/kscreen-5.27.3/osd/osdmanager.cpp:49
#18 0x00007f50110b1bb0 in QObject::event (this=0x7ffe6cafce70, e=0x7f5000002560) at kernel/qobject.cpp:1347
#19 0x00007f501108df48 in QCoreApplication::notifyInternal2 (receiver=0x7ffe6cafce70, event=0x7f5000002560)
    at kernel/qcoreapplication.cpp:1064
--Type <RET> for more, q to quit, c to continue without paging--c
#20 0x00007f501108dfb3 in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>)
    at kernel/qcoreapplication.cpp:1462
#21 0x00007f501108ea53 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x557d05b1f450)
    at kernel/qcoreapplication.cpp:1821
#22 0x00007f50110d4e88 in postEventSourceDispatch (s=0x557d05b999f0) at kernel/qeventdispatcher_glib.cpp:277
#23 0x00007f500f90f53b in g_main_dispatch (context=0x7f5008000ee0) at ../glib/glib/gmain.c:3460
#24 g_main_context_dispatch (context=0x7f5008000ee0) at ../glib/glib/gmain.c:4200
#25 0x00007f500f96c219 in g_main_context_iterate.constprop.0 (context=0x7f5008000ee0, block=1, dispatch=1, 
    self=<optimized out>) at ../glib/glib/gmain.c:4276
#26 0x00007f500f90e1a2 in g_main_context_iteration (context=0x7f5008000ee0, may_block=1) at ../glib/glib/gmain.c:4343
#27 0x00007f50110d8c6c in QEventDispatcherGlib::processEvents (this=0x557d05b7f150, flags=...)
    at kernel/qeventdispatcher_glib.cpp:423
#28 0x00007f50110866ec in QEventLoop::exec (this=0x7ffe6cafcdd0, flags=...)
    at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#29 0x00007f5011091219 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#30 0x00007f501153a052 in QGuiApplication::exec () at kernel/qguiapplication.cpp:1870
#31 0x0000557d0509c4db in main (argc=<optimized out>, argv=<optimized out>)
    at /usr/src/debug/kscreen/kscreen-5.27.3/osd/main.cpp:17
Comment 12 Ondrej Malek 2023-04-16 10:07:59 UTC
Created attachment 158142 [details]
journalctl log of (kscreen_osd_ser) of user 1000 dumped

Maybe the same bug. see attachment kscreen_osd_ser-of-user-1000-dumped 

Operating System: openSUSE Tumbleweed 20230402
KDE Plasma Version: 5.27.3
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Kernel Version: 6.0.12-1-default (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 5600U with Radeon Graphics
Memory: 38,0 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: LENOVO
Product Name: 20X70042CK
System Version: ThinkPad L15 Gen 2a