media-video/obs-studio on gui-wm/sway with gui-libs/xdg-desktop-portal-wlr open obs-studio and activating a screen capture prompts xdg-desktop-portal-wlr to grey screens to pick a screen (this is exp[ected) once screen is selected with a mouse click obs seg faults Reproducible: Always Steps to Reproduce: 1.open obs 2.in obs > source > add a screen capture on pipewire 3.select screen Actual Results: obs seg faults and closes Expected Results: obs should capture the selected screen
Created attachment 873167 [details] emerge --info output
Could you try grab a backtrace please? (See https://wiki.gentoo.org/wiki/Debugging#Per-package)
Created attachment 873168 [details] cat /etc-xdg-desktop-portal/wlroots-potal.conf this is needed for sys-apps/xdg-desktop-portal version 1.18 and newer
Created attachment 873169 [details] obs log output
I guess this might be: https://github.com/obsproject/obs-studio/issues/9733
Created attachment 873207 [details, diff] obs-studio-29.1.3-pipewire-segfault-916030 Does the attached patch fix the crashing? It does seem like it may cause other issues [1] while potentially fixing the crash. 1. https://github.com/obsproject/obs-studio/issues/9741#issuecomment-1774092631
Comment on attachment 873207 [details, diff] obs-studio-29.1.3-pipewire-segfault-916030 Looks like there is another change required [1], which I believe I actually intended to attach here instead of the one I did. In any case, that other change does not apply on 29.1.3, which I did want to keep around for longer since it is the last release with Qt5 support, but it looks like that might not be such a good idea after all. 1. https://github.com/obsproject/obs-studio/pull/9752#issuecomment-1776251549
I can't reproduce the crash with obs 29.1.3-r2, wlr 0.7.0, sway 1.8.1 and xdg-desktop-portal-1.18.0-r2. I have a few unstable packages for newer features, could one of them have fixed the issue?
(In reply to rogerroger from comment #8) > I can't reproduce the crash with obs 29.1.3-r2, wlr 0.7.0, sway 1.8.1 and > xdg-desktop-portal-1.18.0-r2. I have a few unstable packages for newer > features, could one of them have fixed the issue? Possiblai. :] Can't really tell at this time, but good to know it works again!