Bug 446220 - Image corrupted/broken when screen sharing an X window on Firefox on Wayland
Summary: Image corrupted/broken when screen sharing an X window on Firefox on Wayland
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: platform-wayland-nested (show other bugs)
Version: 5.23.3
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-29 01:14 UTC by nf.pereira
Modified: 2022-10-13 01:59 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Picture corruption (88.20 KB, image/jpeg)
2021-11-29 01:14 UTC, nf.pereira
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nf.pereira 2021-11-29 01:14:25 UTC
Created attachment 144054 [details]
Picture corruption

SUMMARY

On Firefox running on Wayland, when I screenshare any XWayland window, it looks all corrupted like the attached picture:

STEPS TO REPRODUCE
1. Open a site that uses WebRTC like https://mozilla.github.io/webrtc-landing/gum_test.html
2. Press "Screen capture"
3. Select an XWayland window.
4. Observe the corrupted picture or observe Firefox crashing.

OBSERVED RESULT
The picture being shared is corrupted, or Firefox crashes.

EXPECTED RESULT
The picture should not be corrupted.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2
Firefox: 94.0.2
Comment 1 nf.pereira 2021-12-02 16:12:17 UTC
I've just now noticed this is also reproducible on OBS Studio when capturing an XWayland window.
Comment 2 nf.pereira 2022-10-13 01:59:35 UTC
Something seems to have fixed this, as I can no longer reproduce the problem. I'll close it.