Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 916030 - media-video/obs-studio: segfault on gui-libs/xdg-desktop-portal-wlr integration on gui-wm/sway
Summary: media-video/obs-studio: segfault on gui-libs/xdg-desktop-portal-wlr integrati...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chiitoo
Depends on:
Reported: 2023-10-19 23:54 UTC by
Modified: 2023-11-03 12:14 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---

emerge --info output (emerge-info.txt,8.62 KB, text/plain)
2023-10-19 23:54 UTC,
cat /etc-xdg-desktop-portal/wlroots-potal.conf (wlroots-portals.conf,299 bytes, text/plain)
2023-10-19 23:56 UTC,
obs log output (obs-log.txt,7.25 KB, text/plain)
2023-10-19 23:56 UTC,
obs-studio-29.1.3-pipewire-segfault-916030 (obs-studio-29.1.3-pipewire-segfault-916030.patch,1.07 KB, patch)
2023-10-22 15:02 UTC, Chiitoo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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?