Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shared screen hangs after a few seconds running #251

Open
sqozz opened this issue Dec 1, 2022 · 7 comments
Open

shared screen hangs after a few seconds running #251

sqozz opened this issue Dec 1, 2022 · 7 comments

Comments

@sqozz
Copy link

sqozz commented Dec 1, 2022

I use HyperHDR and its pipewire backend to capture my screen and map it to some LEDs. I realized that after some seconds of using it, nothing is updated anymore and the recorded screen just shows a static frame. However, the mouse is still moving. I validated this using a Jitsi session in Firefox.

Versions and software I use:

  • Gentoo
  • sway 1.7
  • pipewire 0.3.60
  • versions 0.5.0 (stable on gentoo), 0.6.0 (unstable) and the latest git release of xdg-desktop-portal-wlr

While trying to collect data for this bug report I started xdg-desktop-portal-wlr with -lTRACE and to my surprise it just does not "crash"/hang any longer. So unfortunately the best I can do is look at the -lDEBUG log which only prints:

2022/12/01 21:22:58 [WARN] - pipewire: out of buffers
2022/12/01 21:22:58 [WARN] - wlroots: no current buffer

This message appears hundreds of times per seconds but doesn't look to suspicious. Let me know if there is any other useful way I can provide you with more data/logs.

@sqozz
Copy link
Author

sqozz commented Dec 1, 2022

I also replaced the xdg-desktop-portal with an interactive session but also no problem visible here:

sqozz@workstation ~ » /usr/libexec/xdg-desktop-portal -r -v
XDP: load portals from /usr/share/xdg-desktop-portal/portals
XDP: loading /usr/share/xdg-desktop-portal/portals/gnome-keyring.portal
XDP: portal implementation for gnome
XDP: portal implementation supports org.freedesktop.impl.portal.Secret
XDP: loading /usr/share/xdg-desktop-portal/portals/wlr.portal
XDP: portal implementation for wlroots, sway, Wayfire, river, phosh, Hyprland
XDP: portal implementation supports org.freedesktop.impl.portal.Screenshot
XDP: portal implementation supports org.freedesktop.impl.portal.ScreenCast
XDP: providing portal org.freedesktop.portal.MemoryMonitor
XDP: providing portal org.freedesktop.portal.PowerProfileMonitor
XDP: providing portal org.freedesktop.portal.NetworkMonitor
XDP: providing portal org.freedesktop.portal.ProxyResolver
XDP: providing portal org.freedesktop.portal.Trash
XDP: providing portal org.freedesktop.portal.GameMode
XDP: providing portal org.freedesktop.portal.Realtime

** (/usr/libexec/xdg-desktop-portal:14349): WARNING **: 21:50:47.287: No skeleton to export
XDP: Falling back to wlr.portal for org.freedesktop.impl.portal.Screenshot
XDP: Falling back to gnome-keyring.portal for org.freedesktop.impl.portal.Secret
XDP: providing portal org.freedesktop.portal.Secret
XDP: Falling back to wlr.portal for org.freedesktop.impl.portal.ScreenCast
XDP: providing portal org.freedesktop.portal.ScreenCast
XDP: org.freedesktop.portal.Desktop acquired
XDP: screen cast session owned by ':1.95' created
XDP: screen cast session owned by ':1.95' started

@Algram
Copy link
Contributor

Algram commented Dec 14, 2022

I have exactly the same problem, also using HyperHDR. I will try to also run it with the trace flag and check if that also keeps it from happening.

@awawa-dev
Copy link

I found this by change...I will try to debug it also, maybe there is a workaround (I suspect the buffer that is holding the last frame must be released immediately in such cases, can be done if it resolves it). If someone is willing to test an experimental amd64 version using a hardware acceleration, it's available here: awawa-dev/HyperHDR#386 (comment)

@Algram
Copy link
Contributor

Algram commented Dec 14, 2022

I tested it with the trace log level and it seemed to crash less often, only two times in about 2 hours. This could totally be random though.

@awawa-dev the build won't work on my system, do you have a branch with the changes, then I can compile it myself.

@awawa-dev
Copy link

@Algram I need to clean it and will publish it just after v19 is released, probably month or so. There is one library in this package missing due to the size limit and need to be copied from the standard release but it's mentioned in the thread (ldd will show it). Anyway I will also try it myself.

@Algram
Copy link
Contributor

Algram commented Jul 24, 2023

Just as an update: This is definitely happening way less often when using the trace flag. It does not make sense to me, but that is how it is. I have been running it like that the last few months and it definitely makes a big difference.

@awawa-dev
Copy link

@Algram you can build and test this PR awawa-dev/HyperHDR#556

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants