Bug 435371

Summary: Crash when restarting pipewire while a xdg-desktop-portal screencast is in progress
Product: [Plasma] kwin Reporter: kde
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: alois1
Priority: NOR    
Version: 5.21.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description kde 2021-04-05 00:12:34 UTC
SUMMARY
If a screen/window capture is in progress and pipewire is restarted, kwin_wayland segfaults.

STEPS TO REPRODUCE
1. Start a window capture through portal (I'm using OBS 27.0.0-rc1 for this)
2. Restart pipewire (here using systemctl --user restart pipewire.service)

OBSERVED RESULT
kwin_wayland crashes in most attempts

EXPECTED RESULT
kwin_wayland does not crash

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.21.3
KDE Plasma Version: 5.21.3
KDE Frameworks Version: 5.80.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
GPU: AMD 5700XT with AMDGPU

Attaching an unstripped version of kwin_wayland with gdb yields an incomplete backtrace in this fashion when the segfault happens:
#0  0x00007f92bc10f408 in  ()
#1  0x0000563b6c3c90f8 in  ()
#2  0x0000563b6c3c90f8 in  ()
#3  0x0000000000000000 in  ()
Comment 1 Alois Wohlschlager 2021-04-05 11:59:46 UTC

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