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

Bug 785559

Summary: media-video/obs-studio-26.1.2: Segfault on start (under Wayland)
Product: Gentoo Linux Reporter: Marcel Schilling <marcel.schilling>
Component: Current packagesAssignee: Chiitoo <chiitoo>
Status: CONFIRMED ---    
Severity: normal CC: gentoo, ionen, jstein, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: emerg --info

Description Marcel Schilling 2021-04-25 10:03:41 UTC
I am running a system using Wayland (with Sway as the compositor) and `-X` in `/etc/make.conf`.
On that system, I was able to emerge media-video/obs-studio (after unmasking it ~amd64, to be fair), but it segfaults on start.

I am assuming this is due to lack of Wayland support in media-video/obs-studio-26.1.2 since list the corresponding PR for Milestone 27.0.
I also found aiming to add the respective USE flag
to the -9999 ebuild, so I assume there is no need for a trace to figure out what exactly caused the segfault.
I still think of this as a packaging bug: If OBS (as of now) requires X11, portage should no let me emerge it without pulling in X11 (or XWayland if that is a valid alternative in this case).

Reproducible: Always

Steps to Reproduce:
1. Install OBS: emerge -1 media-video/obs-studio
2. Try launching OBS: obs
Actual Results:  

Attempted path: share/obs/obs-studio/locale/en-US.ini
Attempted path: /usr/share/obs/obs-studio/locale/en-US.ini
Attempted path: share/obs/obs-studio/locale.ini
Attempted path: /usr/share/obs/obs-studio/locale.ini
Attempted path: share/obs/obs-studio/themes/Dark.qss
Attempted path: /usr/share/obs/obs-studio/themes/Dark.qss
info: CPU Name: AMD Ryzen 9 3900X 12-Core Processor
info: CPU Speed: 2198.627MHz
info: Physical Cores: 12, Logical Cores: 24
info: Physical Memory: 64249MB Total, 55914MB Free
info: Kernel Version: Linux 5.10.27-gentoo
info: Distribution: Gentoo Unknown
info: Session Type: wayland
info: Unable to open X display
info: Freeing OBS context data
Segmentation fault

Expected Results:  
No Segmentation fault
Comment 1 Marcel Schilling 2021-04-25 10:05:51 UTC
Created attachment 702375 [details]
emerg --info

emerge --info media-video/obs-studio media-video/ffmpeg dev-qt/qtgui
Comment 2 Chiitoo gentoo-dev 2021-04-25 11:49:55 UTC
There's a pretty big re-factoring of the CMake configure parts coming up, so I'll probably handle this while adjusting things for that.

Thanks for the report!