Bug 502156

Summary: Crash when enabling DisplayPort MST
Product: [Plasma] kwin Reporter: christian tacke <kde-bugs>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash CC: kdedev, nate, xaver.hugl
Priority: NOR    
Version First Reported In: 6.3.3   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=500031
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Crash dump text
sudo coredumpctl debug kwin_wayland
journalctl --user-unit plasma-kwin_wayland --boot 0

Description christian tacke 2025-03-29 14:10:43 UTC
Created attachment 179842 [details]
Crash dump text

SUMMARY
I have a monitor setup with two monitors connected via a Display Port daisy chain. I can enable / disable the MST option on the first monitor to treat them either as one or two monitors.

STEPS TO REPRODUCE
1. Running KDE plasma session on wayland
2. Enable MST

OBSERVED RESULT
Wayland crash. Screen is black with underscore character in topleft corner. Opening a console session works. System recovers after disabling MST.

EXPECTED RESULT
I can extend my screen to both monitors.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Linux 41
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2

ADDITIONAL INFORMATION
I sent an automatic crash report, but I can't find it .
Comment 1 Nate Graham 2025-03-31 19:10:28 UTC
                #0  0x00007f16d907fb54 __pthread_kill_implementation (libc.so.6 + 0x72b54)
                #1  0x00007f16d9026f9e raise (libc.so.6 + 0x19f9e)
                #2  0x00007f16dcb4e37e _ZN6KCrash19defaultCrashHandlerEi (libKF6Crash.so.6 + 0x537e)
                #3  0x00007f16d9027050 __restore_rt (libc.so.6 + 0x1a050)
                #4  0x00007f16dc5126b3 _ZN4KWin11DrmPipeline25prepareAtomicPresentationEPNS_15DrmAtomicCommitERKSt10shared_ptrINS_11OutputFrameEE (libkwin.so.6 + 0x3126b3)
                #5  0x00007f16dc514a38 _ZN4KWin11DrmPipeline7presentERKSt10shared_ptrINS_11OutputFrameEE (libkwin.so.6 + 0x314a38)
                #6  0x00007f16dc516832 _ZN4KWin9DrmOutput7presentERKSt10shared_ptrINS_11OutputFrameEE (libkwin.so.6 + 0x316832)
                #7  0x00007f16dc260f43 _ZN4KWin17WaylandCompositor9compositeEPNS_10RenderLoopE (libkwin.so.6 + 0x60f43)
                #8  0x00007f16d975a26e _Z10doActivateILb0EEvP7QObjectiPPv (libQt6Core.so.6 + 0x15a26e)
                #9  0x00007f16dc275af4 _ZN4KWin10RenderLoop14frameRequestedEPS0_ (libkwin.so.6 + 0x75af4)
                #10 0x00007f16dc27ab12 _ZN4KWin17RenderLoopPrivate8dispatchEv (libkwin.so.6 + 0x7ab12)
                #11 0x00007f16d975a26e _Z10doActivateILb0EEvP7QObjectiPPv (libQt6Core.so.6 + 0x15a26e)
                #12 0x00007f16d976a02d _ZN6QTimer7timeoutENS_14QPrivateSignalE (libQt6Core.so.6 + 0x16a02d)
                #13 0x00007f16d974b935 _ZN7QObject5eventEP6QEvent (libQt6Core.so.6 + 0x14b935)
                #14 0x00007f16da83d9b8 _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt6Widgets.so.6 + 0x3d9b8)
                #15 0x00007f16d96f3590 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt6Core.so.6 + 0xf3590)
                #16 0x00007f16d98b4e28 _ZN14QTimerInfoList14activateTimersEv (libQt6Core.so.6 + 0x2b4e28)
                #17 0x00007f16d98b929b _ZN20QEventDispatcherUNIX13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Core.so.6 + 0x2b929b)
                #18 0x00007f16da4cabf2 _ZN23QUnixEventDispatcherQPA13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Gui.so.6 + 0x6cabf2)
                #19 0x00007f16d9700993 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x100993)
                #20 0x00007f16d96fbf6e _ZN16QCoreApplication4execEv (libQt6Core.so.6 + 0xfbf6e)
                #21 0x000055db23046786 main (kwin_wayland + 0xf786)
                #22 0x00007f16d9010248 __libc_start_call_main (libc.so.6 + 0x3248)
                #23 0x00007f16d901030b __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x330b)
                #24 0x000055db2304c9c5 _start (kwin_wayland + 0x159c5)


Looks like it's the same thing as Bug 502156.
Comment 2 Zamundaaa 2025-03-31 21:51:40 UTC
It's a bit difficult to tell if it's exactly the same thing.

Please get me a complete backtrace ("coredumpctl debug kwin_wayland" and then "bt" in the gdb console), and attach the output of
> journalctl --user-unit plasma-kwin_wayland --boot 0
after reproducing the crash.
Comment 3 christian tacke 2025-04-08 17:53:04 UTC
Created attachment 180094 [details]
sudo coredumpctl debug kwin_wayland
Comment 4 christian tacke 2025-04-08 17:53:38 UTC
Created attachment 180095 [details]
journalctl --user-unit plasma-kwin_wayland --boot 0
Comment 5 christian tacke 2025-04-08 17:54:02 UTC
Hey,

thanks for looking into it and I'm sorry for the delay.
Comment 6 Nate Graham 2025-04-11 18:30:42 UTC

*** This bug has been marked as a duplicate of bug 500031 ***
Comment 7 christian tacke 2025-04-18 21:51:19 UTC
With update to Fedora 42 it does not crash anymore. Though it does not work either.

Display configuration shows the secondary display for a while then it get's removed.
My Notebook with Ubuntu 24.04 and Plasma 5 does work though.

dmesg -w
[ 1160.899937] snd_hda_codec_hdmi hdaudioC1D0: HDMI: Unknown ELD version 0
[ 1161.872462] [drm] DM_MST: starting TM on aconnector: 000000007ad7cadd [id: 83]
[ 1161.879532] [drm] DM_MST: DP14, 4-lane link detected
[ 1162.603619] [drm] Downstream port present 1, type 0
[ 1163.859691] [drm] Downstream port present 1, type 0
[ 1172.603039] [drm] Downstream port present 1, type 0
[ 1193.871938] [drm] Downstream port present 1, type 0
[ 1215.136910] [drm] Downstream port present 1, type 0
[ 1221.515617] [drm] DM_MST: stopping TM on aconnector: 000000007ad7cadd [id: 83]

journactl -f
Apr 18 23:47:15 bluetux.local kernel: [drm] DM_MST: DP14, 4-lane link detected
Apr 18 23:47:15 bluetux.local kwin_wayland[2190]: kwin_wayland_drm: failed to open drm device at ""
Apr 18 23:47:15 bluetux.local kernel: [drm] Downstream port present 1, type 0
Apr 18 23:47:15 bluetux.local kwin_wayland[2190]: kwin_wayland_drm: failed to open drm device at ""
Apr 18 23:47:16 bluetux.local kded6[2429]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_00_1f.3.iec958-stereo.monitor"
Apr 18 23:47:16 bluetux.local kwin_wayland[2190]: kwin_wayland_drm: failed to open drm device at ""
Apr 18 23:47:16 bluetux.local kded6[2429]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_00_1f.3.iec958-stereo.monitor"
Apr 18 23:47:17 bluetux.local kernel: [drm] Downstream port present 1, type 0
Apr 18 23:47:17 bluetux.local kwin_wayland[2190]: kwin_core: Applying output config failed!
Apr 18 23:47:17 bluetux.local kwin_wayland[2190]: kwin_core: Applying output config failed!