question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Screen share not working with OBS PipeWire output / some portals.

See original GitHub issue

Aknowledgements

  • 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:closed
  • Created a year ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
fbievancommented, Jun 27, 2022

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

0reactions
nluttermancommented, Sep 19, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't select screen share source when multiple pipewire ...
This is an issue since these dialogs pop up when OBS starts up a scene, so if you have more than one PipeWire...
Read more >
Share screen and use OBS with pipewire and xdg-desktop ...
I'm trying to get screen sharing and obs working under sway on archlinux without success. I read the tutorials but many seems outdated....
Read more >
Issues with Wayland (xdg-desktop-portal and pipewire screen ...
I am running `systemctl start --user xdg-desktop-portal ... path: /usr/share/obs/obs-studio/themes/Dark.qss info: Platform: Wayland info: ...
Read more >
Screen capture not showing in Sway | OBS Forums
Hi. I am on running Sway on Gentoo. I was trying to make OBS screen sharing work. As stated in this section of...
Read more >
Screen-sharing output is distorted (#2480) · Issues · PipeWire ...
Hey everyone, I have a problem with screen-sharing under pipewire. If I try to share entire screen or just a single window, the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found