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...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chiitoo
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-19 23:54 UTC by josh@10leej.com
Modified: 2023-11-03 12:14 UTC (History)
2 users (show)

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


Attachments
emerge --info output (emerge-info.txt,8.62 KB, text/plain)
2023-10-19 23:54 UTC, josh@10leej.com
Details
cat /etc-xdg-desktop-portal/wlroots-potal.conf (wlroots-portals.conf,299 bytes, text/plain)
2023-10-19 23:56 UTC, josh@10leej.com
Details
obs log output (obs-log.txt,7.25 KB, text/plain)
2023-10-19 23:56 UTC, josh@10leej.com
Details
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 josh@10leej.com 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:
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
Comment 1 josh@10leej.com 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 https://wiki.gentoo.org/wiki/Debugging#Per-package)
Comment 3 josh@10leej.com 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 josh@10leej.com 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: https://github.com/obsproject/obs-studio/issues/9733
Comment 6 Chiitoo gentoo-dev 2023-10-22 15:02:08 UTC
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 7 Chiitoo gentoo-dev 2023-10-24 16:46:54 UTC
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
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?