Bug 458755

Summary: Closing window while screencast leaks content of other windows or crash the program under specific circumstances (Wayland)
Product: [Plasma] xdg-desktop-portal-kde Reporter: Rurigk <rurigk>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: aleixpol, dev.bacteriostat, jgrulich, kde, nate, rurigk
Priority: NOR    
Version First Reported In: 5.24.6   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Rurigk 2022-09-05 17:53:44 UTC
Closing a window that is beign screencasted (via screencast portal) can change the window that is beign screencasted or crash the program that is capturing the window when hovering a icon in the "Icons-only Task Manager" until the thumbnail is shown 

STEPS TO REPRODUCE
1. Capture a window with OBS (via screencast portal)
2. Close the window while is beign captured
3. Hover the icon of other opened application in the "Icons-only Task Manager" until the thumbnail is shown 

OBSERVED RESULT
The window beign captured changes to the window of the application hovered in the "Icons-only Task Manager"

EXPECTED RESULT
The window beign captured dont change (Only show the last frame of the application closed)

STEPS TO REPRODUCE 2
1. Screencast a window with Firefox (via screencast portal)
2. Close the window while is beign captured
3. Hover the icon of other opened application in the "Icons-only Task Manager" until the thumbnail is shown 

OBSERVED RESULT 2
Firefox crashes

EXPECTED RESULT 2
Firefox doesn't crash (Only show the last frame of the application closed or closing the screencastt)


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro KDE
KDE Plasma Version: 5.24.6
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5
OBS Version: 28.0.1 (Flatpak)
Firefox version: 103.0.2
Pipewire version: 0.3.56

ADDITIONAL INFORMATION
Someone else successfully replicate the bug in Plasma 5.25.4 on Arch
Comment 1 David Redondo 2025-06-23 11:57:32 UTC
I cannot reproduce this on current versions