OBS 29.1.3 crashes on second launch

iggy12345

New Member
I just installed OBS on ubuntu 22.04, but for some reason it launches successfully the first time, then crashes from a seg fault every time after that.
Here's the log output:
Code:
debug: Found portal inhibitor
debug: Attempted path: share/obs/obs-studio/locale/en-US.ini
debug: Attempted path: /usr/share/obs/obs-studio/locale/en-US.ini
debug: Attempted path: share/obs/obs-studio/locale.ini
debug: Attempted path: /usr/share/obs/obs-studio/locale.ini
debug: Attempted path: share/obs/obs-studio/themes/Yami.qss
debug: Attempted path: /usr/share/obs/obs-studio/themes/Yami.qss
info: Using EGL/X11
info: CPU Name: AMD Ryzen 7 5800X 8-Core Processor
info: CPU Speed: 2200.000MHz
info: Physical Cores: 8, Logical Cores: 16
info: Physical Memory: 128718MB Total, 123738MB Free
info: Kernel Version: Linux 5.19.0-46-generic
info: Distribution: "Ubuntu" "22.04"
info: Desktop Environment: ubuntu:GNOME (ubuntu)
info: Session Type: x11
info: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.21.1
info: Qt Version: 6.2.4 (runtime), 6.2.4 (compiled)
info: Portable mode: false
info: OBS 29.1.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 RTX 3080/PCIe/SSE2
info: OpenGL loaded successfully, version 3.3.0 NVIDIA 525.125.06, shading language 3.30 NVIDIA via Cg compiler
info: ---------------------------------
info: video settings reset:
    base resolution:   1920x1080
    output resolution: 1280x720
    downscale filter:  Bicubic
    fps:               30/1
    format:            NV12
    YUV mode:          Rec. 709/Partial
info: NV12 texture support not available
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] Available captures:
info: [pipewire]     - Desktop capture
info: [pipewire]     - Window capture
info: [obs-browser]: Version 2.21.1
info: [obs-browser]: CEF Version 103.0.5060.134 (runtime), 103.0.0-5060-shared-textures_143.2591+g4204d54+chromium-103.0.5060.134 (compiled)
info: NVENC supported
error: VAAPI: Failed to initialize display in vaapi_device_h264_supported
info: FFmpeg VAAPI H264 encoding not supported
error: VAAPI: Failed to initialize display in vaapi_device_hevc_supported
info: FFmpeg VAAPI HEVC encoding not supported
info: [obs-websocket] [obs_module_load] you can haz websockets (Version: 5.2.3 | RPC Version: 1)
info: [obs-websocket] [obs_module_load] Qt version (compile-time): 6.2.4 | Qt version (run-time): 6.2.4
info: [obs-websocket] [obs_module_load] Linked ASIO Version: 101801
info: [obs-websocket] [obs_module_load] Module loaded.
info: [vlc-video]: VLC 3.0.16 Vetinari found, VLC video source enabled
info: ---------------------------------
info:   Loaded Modules:
info:     vlc-video.so
info:     text-freetype2.so
info:     rtmp-services.so
info:     obs-x264.so
info:     obs-websocket.so
info:     obs-vst.so
info:     obs-transitions.so
info:     obs-outputs.so
info:     obs-libfdk.so
info:     obs-filters.so
info:     obs-ffmpeg.so
info:     obs-browser.so
info:     linux-v4l2.so
info:     linux-pulseaudio.so
info:     linux-pipewire.so
info:     linux-jack.so
info:     linux-capture.so
info:     linux-alsa.so
info:     image-source.so
info:     frontend-tools.so
info:     decklink-output-ui.so
info:     decklink-captions.so
info: ---------------------------------
QWidget::setTabOrder: 'first' and 'second' must be in the same window
info: ==== Startup complete ===============================================
info: All scene data cleared
info: ------------------------------------------------
info: pulse-input: Server name: 'pulseaudio 15.99.1'
info: pulse-input: Audio format: s16le, 44100 Hz, 3 channels
info: pulse-input: Started recording from 'alsa_output.pci-0000_0d_00.4.analog-surround-21.monitor' (default)
info: [Loaded global audio device]: 'Desktop Audio'
info: pulse-input: Server name: 'pulseaudio 15.99.1'
info: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_input.usb-FDUCE_PRO_AUDIO_MADE_FDUCE_PRO_AUDIO_20180508-00.analog-stereo' (default)
info: [Loaded global audio device]: 'Mic/Aux'
info: Switched to scene 'Scene'
info: ------------------------------------------------
info: Loaded scenes:
info: - scene 'Scene':
info: ------------------------------------------------
Segmentation fault (core dumped)

and if I launch it with gdb I get this output:
Code:
(gdb) run
... (same as above)
Thread 1 "obs" received signal SIGSEGV, Segmentation fault.
0x00007ffff4c01cd4 in QScreen::geometry() const () from /usr/lib/x86_64-linux-gnu/libQt6Gui.so.6
(gdb) bt
#0  0x00007ffff4c01cd4 in QScreen::geometry() const () from /usr/lib/x86_64-linux-gnu/libQt6Gui.so.6
#1  0x00007ffff56e5bfa in ?? () from /usr/lib/x86_64-linux-gnu/libQt6Widgets.so.6
#2  0x00007ffff56ef820 in ?? () from /usr/lib/x86_64-linux-gnu/libQt6Widgets.so.6
#3  0x00007ffff56ef9d8 in ?? () from /usr/lib/x86_64-linux-gnu/libQt6Widgets.so.6
#4  0x00007ffff572bdb5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt6Widgets.so.6
#5  0x00007ffff572c00c in ?? () from /usr/lib/x86_64-linux-gnu/libQt6Widgets.so.6
#6  0x00007ffff571e5d9 in QMainWindow::restoreState(QByteArray const&, int) () from /usr/lib/x86_64-linux-gnu/libQt6Widgets.so.6
#7  0x00005555556b35b6 in ?? ()
#8  0x0000555555613497 in main ()
(gdb)

some more information:
I have not created any sources, but obs does work again once I remove ~/.config/obs-studio/, but then it starts crashing once I run it a second time. I have to keep deleting ~/.config/obs-studio/ to get the program to run. Again, this is with no sources, just an empty scene that's setup by the first-time wizard.
 

iggy12345

New Member
Update: switching to the flatpak installation method solved the issue. There appears to be yet another difference in the build between the ppa and flatpak
 
Top