Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 916030

Summary: media-video/obs-studio: segfault on gui-libs/xdg-desktop-portal-wlr integration on gui-wm/sway
Product: Gentoo Linux Reporter: josh <josh>
Component: Current packagesAssignee: Chiitoo <chiitoo>
Status: UNCONFIRMED ---    
Severity: normal CC: prometheanfire, speedjack95
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also:
Package list:
Runtime testing required: ---
Attachments: emerge --info output
cat /etc-xdg-desktop-portal/wlroots-potal.conf
obs log output

Description 2023-10-19 23:54:04 UTC
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: obs obs > source > add a screen capture on pipewire screen
Actual Results:  
obs seg faults and closes

Expected Results:  
obs should capture the selected screen
Comment 1 2023-10-19 23:54:39 UTC
Created attachment 873167 [details]
emerge --info output
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-19 23:55:04 UTC
Could you try grab a backtrace please? (See
Comment 3 2023-10-19 23:56:14 UTC
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
Comment 4 2023-10-19 23:56:40 UTC
Created attachment 873169 [details]
obs log output
Comment 5 Chiitoo gentoo-dev 2023-10-21 19:47:45 UTC
I guess this might be:
Comment 6 Chiitoo gentoo-dev 2023-10-22 15:02:08 UTC
Created attachment 873207 [details, diff]

Does the attached patch fix the crashing?

It does seem like it may cause other issues [1] while potentially fixing the crash.

Comment 7 Chiitoo gentoo-dev 2023-10-24 16:46:54 UTC
Comment on attachment 873207 [details, diff]

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.

Comment 8 rogerroger 2023-11-03 12:14:29 UTC
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?