snapcrafters / obs-studio

This is a community-supported modified build of OBS Studio.
https://snapcraft.io/obs-studio
111 stars 37 forks source link

[Bug]: OBS_USE_EGL causes startup crash of obs-studio 27.2.1 snap #162

Closed ipkpjersi closed 8 months ago

ipkpjersi commented 1 year ago

What happened?

Basically, obs-studio crashes when I launch obs-studio with OBS_USE_EGL=1 obs-studio when using OBS Studio 27.2.1 snap.

What should have happened?

I expect it to launch with EGL and work properly.

Output of snap info $snap_name

name:      obs-studio
summary:   Free and open source software for live streaming and screen recording
publisher: Snapcrafters
store-url: https://snapcraft.io/obs-studio
contact:   https://github.com/snapcrafters/obs-studio/issues
license:   GPL-2.0
description: |
  OBS Studio is software designed for capturing, compositing, encoding,
  recording, and streaming video content, efficiently. _This is a
  community-supported modified build of OBS Studio; please file issues on the
  Snapcrafters GitHub:_ https://github.com/snapcrafters/obs-studio/issues

  **Batteries included**

  The snap of OBS studio comes pre-loaded with some extra features:

    * Supports **nvenc (NVIDIA) and VA-API (AMD & Intel) accelerated video
    encoding**.
    * **Advanced Scene Switcher** plugin; an automated scene switcher
    * **Browser** plugin; CEF-based OBS Studio browser plugin
    * **Directory Watch Media** plugin; filter you can add to a media source to
    load the oldest or newest file in a directory.
    * **Dynamic Delay** plugin; filter for dynamic delaying a video source.
    * **Freeze Filter** plugin; freeze a source using a filter.
    * **gPhoto** plugin; connect DSLR cameras with obs-studio via gPhoto.
    * **GStreamer** plugins; feed GStreamer launch pipelines into OBS Studio and
    use GStreamer encoder elements.
    * **Move Transition** plugin; move sources to a new position during a scene
    transition.
    * **NDI** plugin; Network A/V via NewTek's NDI.
    * **NvFBC** plugin; screen capture via NVIDIA FBC API. Requires NvFBC patches
    for Nvidia drivers for consumer-grade GPUs.
    * **RGB Levels** plugin; simple filter to adjust RGB levels.
    * **Source Switcher** plugin; to switch between a list of sources.
    * **Spectralizer** plugin; audio visualization using fftw.
    * **StreamFX** plugin; collection modern effects filters and transitions.
    * **Text Pango** plugin; Provides a text source rendered using Pango with
    multi-language support, emoji support, vertical rendering and RTL support.
    * **Transition Matrix** plugin; customize Any -> One or One -> One scene
    transitions.
    * **VNC Source** plugin; VNC viewer that works as a source.
    * **Websockets** plugin; remote-control OBS Studio through WebSockets.

  **Connecting Interfaces**

  For the best experience, you'll want to connect the following interfaces.

     sudo snap connect obs-studio:alsa
     sudo snap connect obs-studio:audio-record
     sudo snap connect obs-studio:avahi-control
     sudo snap connect obs-studio:camera
     sudo snap connect obs-studio:jack1
     sudo snap connect obs-studio:kernel-module-observe

  **NDI**

  If you want to use the NDI plugin you'll need to connect the Avahi Control
  interface.

     snap connect obs-studio:avahi-control

  **Virtual Camera**

  Starting with OBS 26.1.0, Virtual Camera support is integrated. Here's how to
  install and configure `v4l2loopback`:

     sudo snap connect obs-studio:kernel-module-observe
     sudo apt -y install v4l2loopback-dkms v4l2loopback-utils
     echo "options v4l2loopback devices=1 video_nr=13 card_label='OBS Virtual
     Camera'    exclusive_caps=1" | sudo tee /etc/modprobe.d/v4l2loopback.conf
     echo "v4l2loopback" | sudo tee /etc/modules-load.d/v4l2loopback.conf
     sudo modprobe -r v4l2loopback
     sudo modprobe v4l2loopback devices=1 video_nr=13 card_label='OBS Virtual
     Camera' exclusive_caps=1

  **NOTE!** Using `video_nr` greater than 64 will not work.

  **Removable Storage**

  To access content on external storage, connect to the removable-media plug:

     snap connect obs-studio:removable-media

  **gPhoto**

  The gPhoto plugin allows some DSLR cameras to be connected via USB. You'll need
  to connect the Raw USB interface.

     snap connect obs-studio:raw-usb

  **3rd Party plugins**

  To install pre-compiled plugins, download and extract the plugin to
  `~/snap/obs-studio/current/.config/obs-studio/plugins/`.

  This is how the Input Overlay plugin looks when correctly installed:

     /home/username/snap/obs-studio/current/.config/obs-studio/plugins/
     └── input-overlay
         ├── bin
         │   └── 64bit
         │       └── input-overlay.so
         └── data
             └── locale
                 ├── de-DE.ini
                 ├── en-US.ini
                 └── ru-RU.ini

  If you want to use the Input Overlay plugin, you'll also need to connect the
  joystick interface:

     snap connect obs-studio:joystick
commands:
  - obs-studio.eglinfo
  - obs-studio.ffmpeg
  - obs-studio.ffplay
  - obs-studio.ffprobe
  - obs-studio.glxinfo
  - obs-studio
  - obs-studio.srt-ffplay
  - obs-studio.srt-file-transmit
  - obs-studio.srt-live-transmit
  - obs-studio.srt-tunnel
  - obs-studio.vainfo
  - obs-studio.vdpauinfo
  - obs-studio.vulkaninfo
snap-id:      6uLU2MJmBURfLNz4rmL4WT2CmtVULE2u
tracking:     latest/edge
refresh-date: today at 00:04 EDT
channels:
  latest/stable:    27.1.3 2021-12-20 (1284) 418MB -
  latest/candidate: ↑                              
  latest/beta:      ↑                              
  latest/edge:      27.2.1 2022-02-24 (1287) 439MB -
installed:          27.2.1            (1287) 439MB -

Output of snap connections $snap_name

Interface                 Plug                                 Slot                            Notes
alsa                      obs-studio:alsa                      :alsa                           manual
audio-playback            obs-studio:audio-playback            :audio-playback                 -
audio-record              obs-studio:audio-record              :audio-record                   -
avahi-control             obs-studio:avahi-control             :avahi-control                  manual
browser-support           obs-studio:browser-support           :browser-support                -
camera                    obs-studio:camera                    :camera                         -
content[gtk-3-themes]     obs-studio:gtk-3-themes              gtk-common-themes:gtk-3-themes  -
content[icon-themes]      obs-studio:icon-themes               gtk-common-themes:icon-themes   -
content[sound-themes]     obs-studio:sound-themes              gtk-common-themes:sound-themes  -
desktop                   obs-studio:desktop                   :desktop                        -
desktop-legacy            obs-studio:desktop-legacy            :desktop-legacy                 -
gsettings                 obs-studio:gsettings                 :gsettings                      -
hardware-observe          obs-studio:hardware-observe          -                               -
home                      obs-studio:home                      :home                           -
jack1                     obs-studio:jack1                     :jack1                          manual
joystick                  obs-studio:joystick                  -                               -
kernel-module-observe     obs-studio:kernel-module-observe     :kernel-module-observe          manual
network                   obs-studio:network                   :network                        -
network-bind              obs-studio:network-bind              :network-bind                   -
opengl                    obs-studio:opengl                    :opengl                         -
password-manager-service  obs-studio:password-manager-service  -                               -
process-control           obs-studio:process-control           -                               -
pulseaudio                obs-studio:pulseaudio                :pulseaudio                     -
raw-usb                   obs-studio:raw-usb                   -                               -
removable-media           obs-studio:removable-media           :removable-media                manual
screen-inhibit-control    obs-studio:screen-inhibit-control    :screen-inhibit-control         -
screencast-legacy         obs-studio:screencast-legacy         -                               -
system-observe            obs-studio:system-observe            -                               -
unity7                    obs-studio:unity7                    :unity7                         -
upower-observe            obs-studio:upower-observe            :upower-observe                 -
wayland                   obs-studio:wayland                   :wayland                        -
x11                       obs-studio:x11                       :x11                            -

Output of snap version

snap version     
snap    2.56.2
snapd   2.56.2
series  16
ubuntu  22.04
kernel  5.15.0-41-generic

Relevant log output

Jul 21 23:33:41 fast-cottage kernel: [52593.618411] obs[3202048]: segfault at 38 ip 00007fe2a57cc4c0 sp 00007ffd6731d6c0 error 4 in libpipewire-0.3.so.0.332.0[7fe2a5786000+6a000]
Jul 21 23:42:12 fast-cottage kernel: [53104.734373] audit: type=1326 audit(1658461332.327:1582): auid=1000 uid=1000 gid=1000 ses=8 subj=? pid=3241081 comm="obs" exe="/snap/obs-studio/1284/usr/bin/obs" sig=0 arch=c000003e syscall=314 compat=0 ip=0x7fd8a2cd073d code=0x50000
Jul 21 23:42:12 fast-cottage kernel: [53104.754144] audit: type=1400 audit(1658461332.347:1583): apparmor="DENIED" operation="bind" profile="snap.obs-studio.obs-studio" pid=3241081 comm="obs" family="unix" sock_type="dgram" protocol=0 requested_mask="bind" denied_mask="bind" addr="@2F636F6D2F6F627370726F6A65637420333234313038312032372E312E332D6D6F64696669656420286C696E757829000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
Jul 21 23:42:12 fast-cottage kernel: [53104.863629] audit: type=1107 audit(1658461332.455:1584): pid=4082 uid=102 auid=4294967295 ses=4294967295 subj=? msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/DBus" interface="org.freedesktop.DBus" member="RequestName" mask="send" name="org.freedesktop.DBus" pid=3241081 label="snap.obs-studio.obs-studio" peer_label="unconfined"
Jul 21 23:42:12 fast-cottage kernel: [53104.863701] audit: type=1107 audit(1658461332.455:1586): pid=4082 uid=102 auid=4294967295 ses=4294967295 subj=? msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/DBus" interface="org.freedesktop.DBus" member="ListNames" mask="send" name="org.freedesktop.DBus" pid=3241081 label="snap.obs-studio.obs-studio" peer_label="unconfined"
Jul 21 23:42:12 fast-cottage kernel: [53105.111571] audit: type=1400 audit(1658461332.703:1588): apparmor="DENIED" operation="bind" profile="snap.obs-studio.obs-studio" pid=3241081 comm="obs" family="unix" sock_type="stream" protocol=0 requested_mask="bind" denied_mask="bind" addr="@/com/obsproject/vkcapture"
Jul 21 23:42:12 fast-cottage kernel: [53105.249484] audit: type=1400 audit(1658461332.843:1589): apparmor="DENIED" operation="ptrace" profile="snap.obs-studio.obs-studio" pid=3241081 comm="obs" requested_mask="read" denied_mask="read" peer="unconfined"
Jul 21 23:43:43 fast-cottage kernel: [53196.377727] obs[3241081]: segfault at 38 ip 00007fd83bf294c0 sp 00007fff6b45e490 error 4 in libpipewire-0.3.so.0.332.0[7fd83bee3000+6a000]
Jul 22 09:02:09 fast-cottage kernel: [  394.551201] audit: type=1326 audit(1658494929.639:266): auid=1000 uid=1000 gid=1000 ses=8 subj=? pid=37858 comm="obs" exe="/snap/obs-studio/1284/usr/bin/obs" sig=0 arch=c000003e syscall=314 compat=0 ip=0x7f0de603673d code=0x50000
Jul 22 09:02:09 fast-cottage kernel: [  394.575107] audit: type=1400 audit(1658494929.663:267): apparmor="DENIED" operation="bind" profile="snap.obs-studio.obs-studio" pid=37858 comm="obs" family="unix" sock_type="dgram" protocol=0 requested_mask="bind" denied_mask="bind" addr="@2F636F6D2F6F627370726F6A6563742033373835382032372E312E332D6D6F64696669656420286C696E7578290000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
Jul 22 09:02:09 fast-cottage kernel: [  394.712973] audit: type=1107 audit(1658494929.803:268): pid=4067 uid=102 auid=4294967295 ses=4294967295 subj=? msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/DBus" interface="org.freedesktop.DBus" member="RequestName" mask="send" name="org.freedesktop.DBus" pid=37858 label="snap.obs-studio.obs-studio" peer_label="unconfined"
Jul 22 23:59:27 fast-cottage kernel: [54230.694418] audit: type=1326 audit(1658548767.319:2403): auid=1000 uid=1000 gid=1000 ses=8 subj=? pid=3296882 comm="obs" exe="/snap/obs-studio/1284/usr/bin/obs" sig=0 arch=c000003e syscall=314 compat=0 ip=0x7f484eae373d code=0x50000
Jul 22 23:59:27 fast-cottage kernel: [54230.713338] audit: type=1400 audit(1658548767.339:2404): apparmor="DENIED" operation="bind" profile="snap.obs-studio.obs-studio" pid=3296882 comm="obs" family="unix" sock_type="dgram" protocol=0 requested_mask="bind" denied_mask="bind" addr="@2F636F6D2F6F627370726F6A65637420333239363838322032372E312E332D6D6F64696669656420286C696E757829000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
Jul 22 23:59:27 fast-cottage kernel: [54230.809897] audit: type=1107 audit(1658548767.435:2405): pid=4067 uid=102 auid=4294967295 ses=4294967295 subj=? msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/DBus" interface="org.freedesktop.DBus" member="RequestName" mask="send" name="org.freedesktop.DBus" pid=3296882 label="snap.obs-studio.obs-studio" peer_label="unconfined"
Jul 22 23:59:27 fast-cottage kernel: [54230.809969] audit: type=1107 audit(1658548767.435:2407): pid=4067 uid=102 auid=4294967295 ses=4294967295 subj=? msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/DBus" interface="org.freedesktop.DBus" member="ListNames" mask="send" name="org.freedesktop.DBus" pid=3296882 label="snap.obs-studio.obs-studio" peer_label="unconfined"
Jul 22 23:59:27 fast-cottage kernel: [54231.322553] audit: type=1400 audit(1658548767.947:2409): apparmor="DENIED" operation="ptrace" profile="snap.obs-studio.obs-studio" pid=3296882 comm="obs" requested_mask="read" denied_mask="read" peer="unconfined"
Jul 23 00:04:46 fast-cottage kernel: [54549.964191] audit: type=1400 audit(1658549086.600:2426): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap.obs-studio.vdpauinfo" pid=3319594 comm="apparmor_parser"
Jul 23 00:04:46 fast-cottage kernel: [54549.971214] audit: type=1400 audit(1658549086.604:2427): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap.obs-studio.obs-studio" pid=3319588 comm="apparmor_parser"
Jul 23 00:04:46 fast-cottage kernel: [54549.973757] audit: type=1400 audit(1658549086.608:2428): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap.obs-studio.ffplay" pid=3319585 comm="apparmor_parser"
Jul 23 00:04:46 fast-cottage kernel: [54549.976149] audit: type=1400 audit(1658549086.612:2429): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap.obs-studio.ffprobe" pid=3319586 comm="apparmor_parser"
Jul 23 00:04:51 fast-cottage kernel: [54554.540307] audit: type=1326 audit(1658549091.176:2440): auid=1000 uid=1000 gid=1000 ses=8 subj=? pid=3319830 comm="obs" exe="/snap/obs-studio/1287/usr/bin/obs" sig=0 arch=c000003e syscall=314 compat=0 ip=0x7fe59b98373d code=0x50000
Jul 23 00:04:51 fast-cottage kernel: [54554.556120] audit: type=1400 audit(1658549091.192:2441): apparmor="DENIED" operation="bind" profile="snap.obs-studio.obs-studio" pid=3319830 comm="obs" family="unix" sock_type="dgram" protocol=0 requested_mask="bind" denied_mask="bind" addr="@2F636F6D2F6F627370726F6A65637420333331393833302032372E322E312D6D6F64696669656420286C696E757829000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
Jul 23 00:04:51 fast-cottage kernel: [54554.671727] audit: type=1107 audit(1658549091.308:2442): pid=4067 uid=102 auid=4294967295 ses=4294967295 subj=? msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/DBus" interface="org.freedesktop.DBus" member="RequestName" mask="send" name="org.freedesktop.DBus" pid=3319830 label="snap.obs-studio.obs-studio" peer_label="unconfined"
Jul 23 00:04:51 fast-cottage kernel: [54554.671787] audit: type=1107 audit(1658549091.308:2444): pid=4067 uid=102 auid=4294967295 ses=4294967295 subj=? msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/DBus" interface="org.freedesktop.DBus" member="ListNames" mask="send" name="org.freedesktop.DBus" pid=3319830 label="snap.obs-studio.obs-studio" peer_label="unconfined"
Jul 23 00:04:51 fast-cottage kernel: [54554.973300] audit: type=1326 audit(1658549091.608:2446): auid=1000 uid=1000 gid=1000 ses=8 subj=? pid=3320130 comm="gst-plugin-scan" exe="/snap/obs-studio/1287/usr/lib/x86_64-linux-gnu/gstreamer1.0/gstreamer-1.0/gst-plugin-scanner" sig=0 arch=c000003e syscall=314 compat=0 ip=0x7ff81b37a73d code=0x50000
Jul 23 00:05:04 fast-cottage kernel: [54567.823233] audit: type=1400 audit(1658549104.461:2449): apparmor="DENIED" operation="ptrace" profile="snap.obs-studio.obs-studio" pid=3319830 comm="obs" requested_mask="read" denied_mask="read" peer="unconfined"
Jul 23 00:05:31 fast-cottage kernel: [54595.163438] audit: type=1326 audit(1658549131.801:2450): auid=1000 uid=1000 gid=1000 ses=8 subj=? pid=3322491 comm="obs" exe="/snap/obs-studio/1287/usr/bin/obs" sig=0 arch=c000003e syscall=314 compat=0 ip=0x7f6a91d8973d code=0x50000
Jul 23 00:05:31 fast-cottage kernel: [54595.178313] audit: type=1400 audit(1658549131.817:2451): apparmor="DENIED" operation="bind" profile="snap.obs-studio.obs-studio" pid=3322491 comm="obs" family="unix" sock_type="dgram" protocol=0 requested_mask="bind" denied_mask="bind" addr="@2F636F6D2F6F627370726F6A65637420333332323439312032372E322E312D6D6F64696669656420286C696E757829000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
Jul 23 00:05:31 fast-cottage kernel: [54595.263097] audit: type=1107 audit(1658549131.901:2452): pid=4067 uid=102 auid=4294967295 ses=4294967295 subj=? msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/DBus" interface="org.freedesktop.DBus" member="RequestName" mask="send" name="org.freedesktop.DBus" pid=3322491 label="snap.obs-studio.obs-studio" peer_label="unconfined"
Jul 23 00:05:31 fast-cottage kernel: [54595.263167] audit: type=1107 audit(1658549131.901:2454): pid=4067 uid=102 auid=4294967295 ses=4294967295 subj=? msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/DBus" interface="org.freedesktop.DBus" member="ListNames" mask="send" name="org.freedesktop.DBus" pid=3322491 label="snap.obs-studio.obs-studio" peer_label="unconfined"
Jul 23 00:05:32 fast-cottage kernel: [54595.521420] audit: type=1400 audit(1658549132.157:2456): apparmor="DENIED" operation="bind" profile="snap.obs-studio.obs-studio" pid=3322491 comm="obs" family="unix" sock_type="stream" protocol=0 requested_mask="bind" denied_mask="bind" addr="@/com/obsproject/vkcapture"
Jul 23 00:05:32 fast-cottage kernel: [54595.523842] obs[3322491]: segfault at 968 ip 00007f6a8e14e414 sp 00007ffef7f7bd60 error 4 in libX11.so.6.3.0[7f6a8e13d000+8b000]
Jul 23 00:05:45 fast-cottage kernel: [54608.753445] audit: type=1326 audit(1658549145.390:2459): auid=1000 uid=1000 gid=1000 ses=8 subj=? pid=3323592 comm="obs" exe="/snap/obs-studio/1287/usr/bin/obs" sig=0 arch=c000003e syscall=314 compat=0 ip=0x7f3bc0deb73d code=0x50000
Jul 23 00:05:45 fast-cottage kernel: [54608.768590] audit: type=1400 audit(1658549145.406:2460): apparmor="DENIED" operation="bind" profile="snap.obs-studio.obs-studio" pid=3323592 comm="obs" family="unix" sock_type="dgram" protocol=0 requested_mask="bind" denied_mask="bind" addr="@2F636F6D2F6F627370726F6A65637420333332333539322032372E322E312D6D6F64696669656420286C696E757829000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
Jul 23 00:05:45 fast-cottage kernel: [54608.850033] audit: type=1107 audit(1658549145.490:2461): pid=4067 uid=102 auid=4294967295 ses=4294967295 subj=? msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/DBus" interface="org.freedesktop.DBus" member="RequestName" mask="send" name="org.freedesktop.DBus" pid=3323592 label="snap.obs-studio.obs-studio" peer_label="unconfined"
Jul 23 00:05:45 fast-cottage kernel: [54608.850098] audit: type=1107 audit(1658549145.490:2463): pid=4067 uid=102 auid=4294967295 ses=4294967295 subj=? msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/DBus" interface="org.freedesktop.DBus" member="ListNames" mask="send" name="org.freedesktop.DBus" pid=3323592 label="snap.obs-studio.obs-studio" peer_label="unconfined"
Jul 23 00:05:45 fast-cottage kernel: [54609.042145] audit: type=1400 audit(1658549145.682:2465): apparmor="DENIED" operation="bind" profile="snap.obs-studio.obs-studio" pid=3323592 comm="obs" family="unix" sock_type="stream" protocol=0 requested_mask="bind" denied_mask="bind" addr="@/com/obsproject/vkcapture"
Jul 23 00:05:45 fast-cottage kernel: [54609.043411] obs[3323592]: segfault at 968 ip 00007f3bbd1b0414 sp 00007ffef4dbffb0 error 4 in libX11.so.6.3.0[7f3bbd19f000+8b000]
Jul 23 00:05:51 fast-cottage kernel: [54614.379713] audit: type=1400 audit(1658549151.018:2466): apparmor="DENIED" operation="mkdir" profile="snap.obs-studio.obs-studio" name="/run/user/0/" pid=3324072 comm="mkdir" requested_mask="c" denied_mask="c" fsuid=0 ouid=0
Jul 23 00:05:51 fast-cottage kernel: [54614.970020] audit: type=1400 audit(1658549151.610:2467): apparmor="DENIED" operation="capable" profile="snap.obs-studio.obs-studio" pid=3324030 comm="obs" capability=2  capname="dac_read_search"
Jul 23 00:05:51 fast-cottage kernel: [54614.970027] audit: type=1400 audit(1658549151.610:2468): apparmor="DENIED" operation="capable" profile="snap.obs-studio.obs-studio" pid=3324030 comm="obs" capability=1  capname="dac_override"
Jul 23 00:05:55 fast-cottage kernel: [54618.781478] audit: type=1326 audit(1658549155.422:2469): auid=1000 uid=1000 gid=1000 ses=8 subj=? pid=3324457 comm="obs" exe="/snap/obs-studio/1287/usr/bin/obs" sig=0 arch=c000003e syscall=314 compat=0 ip=0x7fb79b38c73d code=0x50000
Jul 23 00:05:55 fast-cottage kernel: [54618.796353] audit: type=1400 audit(1658549155.434:2470): apparmor="DENIED" operation="bind" profile="snap.obs-studio.obs-studio" pid=3324457 comm="obs" family="unix" sock_type="dgram" protocol=0 requested_mask="bind" denied_mask="bind" addr="@2F636F6D2F6F627370726F6A65637420333332343435372032372E322E312D6D6F64696669656420286C696E757829000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
Jul 23 00:05:55 fast-cottage kernel: [54618.899168] audit: type=1107 audit(1658549155.538:2471): pid=4067 uid=102 auid=4294967295 ses=4294967295 subj=? msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/DBus" interface="org.freedesktop.DBus" member="RequestName" mask="send" name="org.freedesktop.DBus" pid=3324457 label="snap.obs-studio.obs-studio" peer_label="unconfined"
Jul 23 00:05:55 fast-cottage kernel: [54618.899253] audit: type=1107 audit(1658549155.538:2473): pid=4067 uid=102 auid=4294967295 ses=4294967295 subj=? msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/DBus" interface="org.freedesktop.DBus" member="ListNames" mask="send" name="org.freedesktop.DBus" pid=3324457 label="snap.obs-studio.obs-studio" peer_label="unconfined"
Jul 23 00:05:55 fast-cottage kernel: [54619.104936] audit: type=1400 audit(1658549155.742:2475): apparmor="DENIED" operation="bind" profile="snap.obs-studio.obs-studio" pid=3324457 comm="obs" family="unix" sock_type="stream" protocol=0 requested_mask="bind" denied_mask="bind" addr="@/com/obsproject/vkcapture"
Jul 23 00:07:36 fast-cottage kernel: [54719.476440] audit: type=1326 audit(1658549256.117:2476): auid=1000 uid=1000 gid=1000 ses=8 subj=? pid=3330649 comm="obs" exe="/snap/obs-studio/1287/usr/bin/obs" sig=0 arch=c000003e syscall=314 compat=0 ip=0x7fbdfefec73d code=0x50000
Jul 23 00:07:36 fast-cottage kernel: [54719.491748] audit: type=1400 audit(1658549256.133:2477): apparmor="DENIED" operation="bind" profile="snap.obs-studio.obs-studio" pid=3330649 comm="obs" family="unix" sock_type="dgram" protocol=0 requested_mask="bind" denied_mask="bind" addr="@2F636F6D2F6F627370726F6A65637420333333303634392032372E322E312D6D6F64696669656420286C696E757829000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
Jul 23 00:07:36 fast-cottage kernel: [54719.665374] audit: type=1107 audit(1658549256.305:2478): pid=4067 uid=102 auid=4294967295 ses=4294967295 subj=? msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/DBus" interface="org.freedesktop.DBus" member="RequestName" mask="send" name="org.freedesktop.DBus" pid=3330649 label="snap.obs-studio.obs-studio" peer_label="unconfined"
Jul 23 00:07:36 fast-cottage kernel: [54719.665447] audit: type=1107 audit(1658549256.305:2480): pid=4067 uid=102 auid=4294967295 ses=4294967295 subj=? msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/DBus" interface="org.freedesktop.DBus" member="ListNames" mask="send" name="org.freedesktop.DBus" pid=3330649 label="snap.obs-studio.obs-studio" peer_label="unconfined"
Jul 23 00:07:36 fast-cottage kernel: [54720.005336] audit: type=1400 audit(1658549256.645:2482): apparmor="DENIED" operation="ptrace" profile="snap.obs-studio.obs-studio" pid=3330649 comm="obs" requested_mask="read" denied_mask="read" peer="unconfined"

Teminal output of app

$ OBS_USE_EGL=1 obs-studio     
Gtk-Message: 00:05:55.387: Failed to load module "xapp-gtk3-module"
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: User enabled --multi flag and is now running multiple instances of OBS.
info: Command Line Arguments: --multi
info: Using EGL/X11
info: CPU Name: AMD Ryzen 9 5900X 12-Core Processor
info: CPU Speed: 3821.369MHz
info: Physical Cores: 12, Logical Cores: 24
info: Physical Memory: 32000MB Total, 1533MB Free
info: Kernel Version: Linux 5.15.0-41-generic
info: Distribution: "Ubuntu Core" "20"
info: Session Type: x11
info: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.21.1
info: Qt Version: 5.15.2 (runtime), 5.15.2 (compiled)
info: Portable mode: false
Attempted path: share/obs/obs-studio/themes/Dark/no_sources.svg
Attempted path: /usr/share/obs/obs-studio/themes/Dark/no_sources.svg
QMetaObject::connectSlotsByName: No matching signal for on_tbar_position_valueChanged(int)
QMetaObject::connectSlotsByName: No matching signal for on_actionShowTransitionProperties_triggered()
QMetaObject::connectSlotsByName: No matching signal for on_actionHideTransitionProperties_triggered()
info: OBS 27.2.1-modified (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
    samples per sec: 48000
    speakers:        2
info: ---------------------------------
info: Initializing OpenGL...
info: Loading up OpenGL on adapter NVIDIA Corporation NVIDIA GeForce RTX 3070 Ti/PCIe/SSE2
info: OpenGL loaded successfully, version 3.3.0 NVIDIA 515.48.07, shading language 3.30 NVIDIA via Cg compiler
info: ---------------------------------
info: video settings reset:
    base resolution:   1920x1080
    output resolution: 1920x1080
    downscale filter:  Bilinear
    fps:               60/1
    format:            NV12
    YUV mode:          709/Partial
info: NV12 texture support not available
info: Audio monitoring device:
    name: Default
    id: default
info: ---------------------------------
info: [StreamFX] Loading Version 0.11.0.0-g31d56703
info: [StreamFX] <gfx::opengl> Version 3.3 initialized.
info: [StreamFX] Loaded Version 0.11.0.0-g31d56703
info: [adv-ss] version: 1.17.2
info: [adv-ss] version: af188b55df007b76a10b455b4d6628c9929f8d08
info: [adv-ss] curl loaded successfully
info: [adv-ss] found curl library
info: [adv-ss] attempting to load "/usr/lib/obs-plugins/adv-ss-plugins/advanced-scene-switcher-opencv.so"
info: [adv-ss] successfully loaded "/usr/lib/obs-plugins/adv-ss-plugins/advanced-scene-switcher-opencv.so"
warning: Failed to load 'en-US' text for module: 'decklink-captions.so'
warning: Failed to load 'en-US' text for module: 'decklink-ouput-ui.so'
info: [Downstream Keyer] loaded version 0.2.1
info: [Freeze Filter] loaded version 0.3.2
info: [Gradient Source] loaded version 0.3.0
warning: Failed to load 'en-US' text for module: 'liblooking-glass-obs.so'
Looking Glass OBS Client (B4)
info: [pango]: Loaded system fontconfig
info: [pipewire] No captures available
libDeckLinkAPI.so: cannot open shared object file: No such file or directory
warning: A DeckLink iterator could not be created.  The DeckLink drivers may not be installed
info: No blackmagic support
info: [linux-vkcapture] plugin loaded successfully (version 1.1.0)
error: [linux-vkcapture] Cannot bind unix socket to : 13
info: [Move Transition] loaded version 2.5.7
[1]    3324457 segmentation fault  OBS_USE_EGL=1 obs-studio
flexiondotorg commented 8 months ago

Fixed via #172