Screen share not working with OBS PipeWire output / some portals.
See original GitHub issueAknowledgements
-
I have checked that there’s no other issue describing the same or similar problem that I currently have, regardless if it has been closed or open.
-
I can confirm that this is not an issue with the Discord website, but it is a problem specific to the WebCord itself.
-
I have tried running the build from the
master
branch and it does not have any fixes implemented according to my issue. -
My issue describes one of the unstable and/or not fully implemented features.
-
I have found a workaround to mitigate or temporarily fix this issue (please write it in Additional context section).
Operating System / Platform
🐧️ Linux
Operating system architecture
x64 (64-bit Intel/AMD)
Electron version
19.0.4
Application version
3.2.0
Bug description
When screensharing it brings up prompt, but output of screenshare is entirely messed up with jagged lines going down (See Video)
Additional context
Not using Wayland works fine, but not really a solution if you want to use wayland. Also additional notes: Chromium crashes when trying to screenshare weirdly enough. (Might be releated?).
Video: Recorded with pipewire video capture:
Verbose output from webcord when first screensharing: Problary releated:
[11511:0615/151242.681968:ERROR:egl_dmabuf.cc(569)] Failed to record frame: Error creating EGLImage - EGL_BAD_ALLOC
[11511:0615/151242.682063:ERROR:shared_screencast_stream.cc(598)] Dropping DMA-BUF modifier: 72057594037927940 and trying to renegotiate stream parameters
I can screenshare from Firefox, and also Obs pipewire output (Which is how i recorded in first place)
To be clear: I have tried running master branch but couldnt get it working, and also i dont seem any commits that would seem to be related to this issue
EDIT: VIDEO LINK: https://www.youtube.com/watch?v=vo6XHh1zDfY
Issue Analytics
- State:
- Created a year ago
- Comments:11 (4 by maintainers)
Top GitHub Comments
seems to be upstream in chromium and electron confirmed: in xdg-desktop-portal-wlr https://github.com/emersion/xdg-desktop-portal-wlr/issues/217 downgrading xdg-desktop-portal to 0.50 works. It’s a deep rabbit hole, Webrtc seems to be the problem though
Looks like the fixes have been deployed in Chromium version 105. It looks like upgrading PipeWire might also fix the issue for some.
https://bugs.chromium.org/p/chromium/issues/detail?id=1333304