emersion / xdg-desktop-portal-wlr

xdg-desktop-portal backend for wlroots
MIT License
579 stars 53 forks source link

xdg-desktop-portal-wlr crashes when trying to screencast or capture screen via obs. #275

Closed killmlana closed 12 months ago

killmlana commented 12 months ago

OS: Arch Wm: Wayfire Drivers: Nvidia-open

Whenever i try to screencast on Wayfire it just shows a black screen and ends immediately. After running /usr/lib/xdg-desktop-portal -r -v & /usr/lib/xdg-desktop-portal-wlr -r through shell and screencasting on firefox in wayland mode, it shows:

[ERROR] - xdg-desktop-portal-wlr: unsupported wl_shm format 0x34324742 zsh: IOT instruction (core dumped) /usr/lib/xdg-desktop-portal-wlr -r

and then xdg-desktop-portal-wlr just crashes.

Pipewire, wireplumber, xdg-desktop-portal, xdg-desktop-portal-gtk, xdg-desktop-portal-wlr are installed and running.

I am using the gUM Test Page on firefox 115.0.2-1.

Tried everything in the troubleshooting-checklist and all of my environment variables are alright. One thing I couldn't check was my color bit depth which i am unsure how to check.

killmlana commented 12 months ago

Fixed using this patch.