OBS 30.2.3 Segmentation fault

nbi

New Member
Installed OBS using the .deb package in Debian Trixie. It seg faults on start up:

----------------------------------------------------------------------------------------
info: Using EGL/X11
info: CPU Name: Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz
info: CPU Speed: 3308.110MHz
info: Physical Cores: 4, Logical Cores: 8
info: Physical Memory: 11963MB Total, 791MB Free
info: Kernel Version: Linux 5.19.0-2-amd64
info: Distribution: "Debian GNU/Linux" Unknown
info: Desktop Environment: XFCE (xfce)
info: Session Type: x11
info: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.21.1
info: Qt Version: 6.6.2 (runtime), 6.6.2 (compiled)
info: Portable mode: false
info: OBS 30.2.3 (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
samples per sec: 48000
speakers: 2
max buffering: 960 milliseconds
buffering type: dynamically increasing
info: ---------------------------------
info: Initializing OpenGL...
info: Loading up OpenGL on adapter NVIDIA Corporation NVIDIA GeForce GTX 1050/PCIe/SSE2
info: OpenGL loaded successfully, version 3.3.0 NVIDIA 535.183.01, shading language 3.30 NVIDIA via Cg compiler
info: ---------------------------------
info: video settings reset:
base resolution: 1920x1080
output resolution: 1920x1080
downscale filter: Bicubic
fps: 60/1
format: NV12
YUV mode: Rec. 709/Partial
info: NV12 texture support enabled
info: P010 texture support not available
info: Audio monitoring device:
name: Default
id: default
info: ---------------------------------
warning: No AJA devices found, skipping loading AJA UI plugin
warning: Failed to initialize module 'aja-output-ui.so'
warning: No AJA devices found, skipping loading AJA plugin
warning: Failed to initialize module 'aja.so'
warning: Failed to load 'en-US' text for module: 'decklink-captions.so'
warning: Failed to load 'en-US' text for module: 'decklink-output-ui.so'
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
warning: Failed to initialize module 'decklink.so'
info: [pipewire] No capture sources available
info: NVENC supported
Segmentation fault
----------------------------------------------------------------------------------------

/var/log/messages shows:
obs[3465611]: segfault at d8 ip 00007f9e456ee7e4 sp 00007ffdf19d7f08 error 4 in libX11.so.6.4.0[7f9e456d8000+8d000]

My system doesn't use DeckLink hardware so not sure what induced the DeckLink messages.
 

T3cube

New Member
Having the same issue with either flatpak or the base OBS package in the arch repos or from the AUR and building from git.


Code:
debug: Found portal inhibitor
debug: Attempted path: /usr/bin/../share/obs/obs-studio/locale/en-US.ini
debug: Attempted path: /usr/bin/../share/obs/obs-studio/locale.ini
debug: Attempted path: /usr/bin/../share/obs/obs-studio/locale/en-GB.ini
info: Using preferred locale 'en-GB'
debug: Attempted path: /usr/bin/../share/obs/obs-studio/themes
debug: Attempted path: /usr/bin/../share/obs/obs-studio/themes/
warning: ReadOne on org.freedesktop.portal.Settings returned an invalid reply
warning: [Safe Mode] Unclean shutdown detected!
warning: [Safe Mode] User elected to launch normally.
info: Command Line Arguments: --verbose
info: Using EGL/X11
info: CPU Name: Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz
info: CPU Speed: 800.000MHz
info: Physical Cores: 4, Logical Cores: 4
info: Physical Memory: 47123MB Total, 19056MB Free
info: Kernel Version: Linux 6.6.56-1-lts
info: Distribution: "Arch Linux" Unknown
info: Desktop Environment: KDE (plasmax11)
info: Session Type: x11
info: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.21.1
debug: found alternate keycode 62 for OBS_KEY_SHIFT which already has keycode 50
debug: found alternate keycode 105 for OBS_KEY_CONTROL which already has keycode 37
debug: found alternate keycode 108 for OBS_KEY_ALT which already has keycode 64
debug: found alternate keycode 129 for OBS_KEY_NUMPERIOD which already has keycode 91
debug: found alternate keycode 190 for OBS_KEY_REDO which already has keycode 137
debug: found alternate keycode 208 for OBS_KEY_VK_MEDIA_PLAY_PAUSE which already has keycode 172
debug: found alternate keycode 215 for OBS_KEY_VK_MEDIA_PLAY_PAUSE which already has keycode 172
debug: found alternate keycode 218 for OBS_KEY_PRINT which already has keycode 107
debug: found alternate keycode 231 for OBS_KEY_CANCEL which already has keycode 136
info: Qt Version: 6.8.0 (runtime), 6.7.2 (compiled)
info: Portable mode: false
info: OBS 30.2.1-1 (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
        samples per sec: 48000
        speakers:        2
        max buffering:   960 milliseconds
        buffering type:  dynamically increasing
info: ---------------------------------
info: Initializing OpenGL...
debug: Created EGLDisplay 0x64b8b776c100
info: Loading up OpenGL on adapter AMD AMD Radeon RX 6800 (radeonsi, navi21, LLVM 18.1.8, DRM 3.54, 6.6.56-1-lts)
info: OpenGL loaded successfully, version 4.6 (Core Profile) Mesa 24.2.5-arch1.1, shading language 4.60
info: ---------------------------------
info: video settings reset:
        base resolution:   2560x1440
        output resolution: 1920x1080
        downscale filter:  Bilinear
        fps:               60/1
        format:            NV12
        YUV mode:          sRGB/Full
info: NV12 texture support enabled
info: P010 texture support not available
info: Audio monitoring device:
        name: Default
        id: default
info: ---------------------------------
debug: ---------------------------------
debug: Loading module: decklink-captions.so
warning: Failed to load 'en-US' text for module: 'decklink-captions.so'
debug: ---------------------------------
debug: Loading module: decklink-output-ui.so
warning: Failed to load 'en-US' text for module: 'decklink-output-ui.so'
debug: ---------------------------------
debug: Loading module: decklink.so
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
warning: Failed to initialize module 'decklink.so'
debug: ---------------------------------
debug: Loading module: frontend-tools.so
debug: ---------------------------------
debug: Loading module: image-source.so
debug: ---------------------------------
debug: Loading module: linux-alsa.so
debug: ---------------------------------
debug: Loading module: linux-capture.so
debug: ---------------------------------
debug: Loading module: linux-jack.so
debug: ---------------------------------
debug: Loading module: linux-pipewire.so
info: [pipewire] Available capture sources:
info: [pipewire]     - Monitor source
info: [pipewire]     - Window source
debug: ---------------------------------
debug: Loading module: linux-pulseaudio.so
debug: ---------------------------------
debug: Loading module: linux-v4l2.so
warning: v4l2loopback not installed, virtual camera not registered
debug: ---------------------------------
debug: Loading module: obs-ffmpeg.so
warning: LIBVA_DRIVER_NAME variable is set, this could prevent FFmpeg VAAPI from working correctly
debug: VAAPI: Initializing display in vaapi_device_h264_supported
debug: Libva: VA-API version 1.22.0
debug: Libva: User environment variable requested driver 'radeonsi'
debug: Libva: Trying to open /usr/lib/dri/radeonsi_drv_video.so
debug: Libva: Found init function __vaDriverInit_1_22
debug: Libva: va_openDriver() returns 0
debug: VAAPI: Display initialized
info: VAAPI: API version 1.22
debug: VAAPI: 'Mesa Gallium driver 24.2.5-arch1.1 for AMD Radeon RX 6800 (radeonsi, navi21, LLVM 18.1.8, DRM 3.54, 6.6.56-1-lts)' in use for device '/dev/dri/renderD128'
debug: '/dev/dri/renderD128' support encoding with VAProfileH264ConstrainedBaseline
debug: '/dev/dri/renderD128' support encoding with VAProfileH264Main
debug: '/dev/dri/renderD128' support encoding with VAProfileH264High
info: FFmpeg VAAPI H264 encoding supported
debug: VAAPI: Initializing display in vaapi_device_av1_supported
debug: Libva: VA-API version 1.22.0
debug: Libva: User environment variable requested driver 'radeonsi'
debug: Libva: Trying to open /usr/lib/dri/radeonsi_drv_video.so
debug: Libva: Found init function __vaDriverInit_1_22
debug: Libva: va_openDriver() returns 0
debug: VAAPI: Display initialized
debug: VAAPI: 'Mesa Gallium driver 24.2.5-arch1.1 for AMD Radeon RX 6800 (radeonsi, navi21, LLVM 18.1.8, DRM 3.54, 6.6.56-1-lts)' in use for device '/dev/dri/renderD128'
debug: VAAPI: Initializing display in vaapi_device_av1_supported
debug: Libva: VA-API version 1.22.0
debug: Libva: User environment variable requested driver 'radeonsi'
debug: Libva: Trying to open /usr/lib/dri/radeonsi_drv_video.so
debug: Libva: Found init function __vaDriverInit_1_22
debug: Libva: va_openDriver() returns 0
debug: VAAPI: Display initialized
debug: VAAPI: 'Mesa Gallium driver 24.2.5-arch1.1 for Mesa Intel(R) HD Graphics 530 (SKL GT2)' in use for device '/dev/dri/renderD129'
fish: Job 1, 'obs --verbose' terminated by signal SIGSEGV (Address boundary error)
 

T3cube

New Member
Here is additional stuff i was able to get from journald
Code:
Oct 20 10:02:39 Valicity kernel: obs[187750]: segfault at 0 ip 0000000000000000 sp 00007ffce644a2a8 error 14 in obs[58b920264000+52000] likely on CPU 1 (core 1, socket 0)
Oct 20 10:02:39 Valicity kernel: Code: Unable to access opcode bytes at 0xffffffffffffffd6.
Oct 20 10:02:39 Valicity systemd-coredump[187811]: Process 187750 (obs) of user 1000 terminated abnormally with signal 11/SEGV, processing...
Oct 20 10:02:39 Valicity systemd[1]: Started Process Core Dump (PID 187811/UID 0).
Oct 20 10:02:40 Valicity systemd-coredump[187812]: [] Process 187750 (obs) of user 1000 dumped core.
                                                  
                                                   Stack trace of thread 187750:
                                                   #0  0x0000000000000000 n/a (n/a + 0x0)
                                                   #1  0x000074a13d83260a n/a (libgallium-24.2.5-arch1.1.so + 0x3260a)
                                                   #2  0x000074a15e51b30c vaGetConfigAttributes (libva.so.2 + 0x930c)
                                                   #3  0x000074a108030bb0 n/a (obs-ffmpeg.so + 0x16bb0)
                                                   #4  0x000074a108031b26 vaapi_display_av1_supported (obs-ffmpeg.so + 0x17b26)
                                                   #5  0x000074a108031c08 vaapi_device_av1_supported (obs-ffmpeg.so + 0x17c08)
                                                   #6  0x000074a108031cc9 vaapi_get_av1_default_device (obs-ffmpeg.so + 0x17cc9)
                                                   #7  0x000074a10802e193 obs_module_load (obs-ffmpeg.so + 0x14193)
                                                   #8  0x000074a161d51cde obs_init_module (libobs.so.0 + 0x52cde)
                                                   #9  0x000074a161d52257 n/a (libobs.so.0 + 0x53257)
                                                   #10 0x000074a161d52750 obs_find_modules2 (libobs.so.0 + 0x53750)
                                                   #11 0x000074a161d52e3f obs_load_all_modules2 (libobs.so.0 + 0x53e3f)
                                                   #12 0x000058b9203934df n/a (obs + 0x12f4df)
                                                   #13 0x000058b9202f3fb5 main (obs + 0x8ffb5)
                                                   #14 0x000074a15f234e08 n/a (libc.so.6 + 0x25e08)
                                                   #15 0x000074a15f234ecc __libc_start_main (libc.so.6 + 0x25ecc)
                                                   #16 0x000058b9202f7275 n/a (obs + 0x93275)
                                                  
                                                   Stack trace of thread 187770:
                                                   #0  0x000074a15f29fa19 n/a (libc.so.6 + 0x90a19)
                                                   #1  0x000074a15f2ab858 n/a (libc.so.6 + 0x9c858)
                                                   #2  0x000074a161dc0e79 n/a (libobs.so.0 + 0xc1e79)
                                                   #3  0x000074a15f2a339d n/a (libc.so.6 + 0x9439d)
                                                   #4  0x000074a15f32849c n/a (libc.so.6 + 0x11949c)
                                                  
                                                   Stack trace of thread 187769:
                                                   #0  0x000074a15f29fa19 n/a (libc.so.6 + 0x90a19)
                                                   #1  0x000074a15f2a27e2 pthread_cond_timedwait (libc.so.6 + 0x937e2)
                                                   #2  0x000074a161dba0aa os_event_timedwait (libobs.so.0 + 0xbb0aa)
                                                   #3  0x000074a161d44e35 obs_hotkey_thread (libobs.so.0 + 0x45e35)
                                                   #4  0x000074a15f2a339d n/a (libc.so.6 + 0x9439d)
                                                   #5  0x000074a15f32849c n/a (libc.so.6 + 0x11949c)
                                                  
                                                   Stack trace of thread 187774:
                                                   #0  0x000074a15f29fa19 n/a (libc.so.6 + 0x90a19)
                                                   #1  0x000074a15f2a2479 pthread_cond_wait (libc.so.6 + 0x93479)
                                                   #2  0x000074a13d8ced6e n/a (libgallium-24.2.5-arch1.1.so + 0xced6e)
                                                   #3  0x000074a13d8ab77c n/a (libgallium-24.2.5-arch1.1.so + 0xab77c)
                                                   #4  0x000074a13d8cec9d n/a (libgallium-24.2.5-arch1.1.so + 0xcec9d)
                                                   #5  0x000074a15f2a339d n/a (libc.so.6 + 0x9439d)
                                                   #6  0x000074a15f32849c n/a (libc.so.6 + 0x11949c)
                                                  
                                                   Stack trace of thread 187809:
                                                   #0  0x000074a15f32848d n/a (libc.so.6 + 0x11948d)
                                                   #1  0x000074a0beffe000 n/a (n/a + 0x0)
                                                   ELF object binary architecture: AMD x86-64
 

T3cube

New Member
Incase anyone has a similar issue to me, uninstall all libva-*-driver packages AND make sure that LIBVA_DRIVER and LIBVA_DRIVER_NAME environment variables are unset in your system. After doing this obs was able to launch both the flatpak version and the arch repo version.
 
Top