emersion / xdg-desktop-portal-wlr

xdg-desktop-portal backend for wlroots
MIT License
591 stars 57 forks source link

Blank/No Screen Share with Test-Script #187

Closed L3MON4D3 closed 2 years ago

L3MON4D3 commented 2 years ago

Hi, I'm unable to share my screen with both the python test-script and the webrtc test page (with firefox)

I'm using:

The script produces the following output:

[~]$ python xdp.py 
session /org/freedesktop/portal/desktop/session/1_27/u1 created
sources selected
streams:
stream 4294967295

I'm unsure what exactly causes this, opening the issue in xdpw because the symptoms seem similar to #168, which was resolved here.

logs: pw.log wp.log xdpw.log

I've also gone through the troubleshooting-checklist, but all of these are set up properly on my end.

columbarius commented 2 years ago

Can you please redo the xdpw log with the TRACE loglevel?

L3MON4D3 commented 2 years ago

Yep: xdpw2.log

Not sure if it's relevant, but I have to SIGQUIT to stop the script.

columbarius commented 2 years ago

Failed to reproduce your issue with the same pipewire version. The returned stream id 4294967295 is far to high. What confuses me is that xdpw should log the returned stream value which doesn't happen. Could you please add an abort(); before every return ret or return -1 from https://github.com/emersion/xdg-desktop-portal-wlr/blob/master/src/screencast/screencast.c#L425 on and try to run it again?

Additionally please check with pw-dot --detail && xdot pw.dot if the stream is registered in PipeWire.

For completeness what distro are you using?

L3MON4D3 commented 2 years ago

Okay, big misconfiguration on my part: I was using a leftover, I assume, version of xdg-desktop-portal-wlr and its' corresponding systemd-service, both located in usr/local/ and therefore shadowing the newer, working!!, versions from the AUR-package :facepalm:

Thank you for your help and putting me on the correct path (eg. building from source and running the result directly), apologies for any time wasted :/