Ubuntu 22.04 Crashes when starting stream or recording

jdteevee

New Member
Just updated to 22.04.3, whenever I start my stream, OBS immediately crashes. I have tried running it sudo, and it does not work either. I'm fairly new to Linux and I'm sure I've done something wrong here. Here is what is displayed in the terminal:
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/Rachni.qss
debug: Attempted path: /usr/share/obs/obs-studio/themes/Rachni.qss
info: Using EGL/X11
info: CPU Name: Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz
info: CPU Speed: 3100.000MHz
info: Physical Cores: 2, Logical Cores: 4
info: Physical Memory: 7818MB Total, 1683MB Free
info: Kernel Version: Linux 5.15.0-79-generic
info: Distribution: "Ubuntu" "22.04"
info: Desktop Environment: ubuntu:GNOME (ubuntu-xorg)
info: Session Type: x11
info: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.21.1
info: Qt Version: 5.15.3 (runtime), 5.12.8 (compiled)
info: Portable mode: false
QMetaObject::connectSlotsByName: Connecting slot on_transitionDuration_valueChanged() with the first of the following compatible signals: ("valueChanged(int)", "valueChanged(QString)")
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 Intel Mesa Intel(R) HD Graphics 4600 (HSW GT2)
info: OpenGL loaded successfully, version 4.6 (Core Profile) Mesa 23.0.4-0ubuntu1~22.04.1, shading language 4.60
info: ---------------------------------
info: video settings reset:
    base resolution:   1600x900
    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: [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: VAAPI: API version 1.14
info: FFmpeg VAAPI H264 encoding 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): 5.12.8 | Qt version (run-time): 5.15.3
info: [obs-websocket] [obs_module_load] Linked ASIO Version: 101202
info: [obs-websocket] [obs_module_load] Module loaded.
error: os_dlopen(libvlc.so.5->libvlc.so.5): libvlc.so.5: cannot open shared object file: No such file or directory

info: [vlc-video]: Couldn't find VLC installation, VLC video source disabled
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-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: ------------------------------------------------
error: Source ID 'wasapi_output_capture' not found
error: Failed to create source 'Desktop Audio'!
info: [Loaded global audio device]: 'Desktop Audio'
error: Source ID 'wasapi_input_capture' not found
error: Failed to create source 'Mic/Aux'!
info: [Loaded global audio device]: 'Mic/Aux'
info: pulse-input: Server name: 'pulseaudio 15.99.1'
error: pulse-input: An error occurred while getting the source info!
info: pulse-input: Server name: 'pulseaudio 15.99.1'
error: pulse-input: An error occurred while getting the source info!
error: Source ID 'monitor_capture' not found
error: Failed to create source 'Display Capture'!
[swscaler @ 0x559c68628f00] deprecated pixel format used, make sure you did set range correctly
info: [Media Source 'Media Source 2']: settings:
    input:                   
    input_format:            (null)
    speed:                   100
    is_looping:              yes
    is_linear_alpha:         no
    is_hw_decoding:          no
    is_clear_on_media_end:   yes
    restart_on_activate:     no
    close_when_inactive:     no
    full_decode:             no
    ffmpeg_options:         
info: v4l2-input: Start capture from
error: v4l2-input: Unable to open device
error: v4l2-input: Initialization failed, errno: No such file or directory
info: [window-capture: 'Window Capture'] update settings:
    title: @!0,0;BDHF
    class: gjs

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_output.pci-0000_00_1b.0.analog-stereo.monitor'
warning: init_animated_gif: Couldn't decode frame 6 of '/home/jdtv/Videos/JDTV/gifs/peepeetime.gif'
warning: init_animated_gif: Couldn't decode frame 14 of '/home/jdtv/Videos/JDTV/gifs/emailme.gif'
info: xshm-input: Geometry 1600x900 @ 0,0
info: Switched to scene 'jdtv'
info: ------------------------------------------------
info: Loaded scenes:
info: - scene 'stay toons':
info:     - source: 'Display Capture' (monitor_capture)
info:         - filter: 'Crop/Pad' (crop_filter)
info:     - source: 'Audio Output Capture' (pulse_output_capture)
info:     - source: 'Audio Input Capture' (pulse_input_capture)
info:         - filter: 'Limiter' (limiter_filter)
info:     - source: 'Window Capture' (xcomposite_input)
info:     - source: 'Image 2' (image_source)
info:     - source: 'Image 3' (image_source)
info:     - source: 'Image 4' (image_source)
info:     - source: 'Video Capture Device' (v4l2_input)
info:         - filter: 'Crop/Pad' (crop_filter)
info:         - filter: 'Color Key' (color_key_filter)
info:         - filter: 'Color Key 2' (color_key_filter)
info:     - source: ''' (text_ft2_source_v2)
info:     - source: 'Image' (image_source)
info: - scene 'jdtv':
info:     - source: 'Screen Capture (XSHM)' (xshm_input)
info:     - source: 'logo' (image_source)
info:         - filter: 'Chroma Key' (chroma_key_filter_v2)
info:     - source: 'Audio Output Capture (PulseAudio)' (pulse_output_capture)
info:     - source: 'alerts' (browser_source)
info: - scene 'Scene 2':
info:     - source: 'Media Source 2' (ffmpeg_source)
info:     - source: 'Image 5' (image_source)
info:     - source: 'Text (GDI+) 4' (text_ft2_source_v2)
info:     - source: 'Image 6' (image_source)
info: ------------------------------------------------
warning: [obs-browser: 'alerts'] Error: [GraphQL] One or more GraphQL errors were detected on request 01H8NM9W89SB0BM99RSDTB1M84. AlertsFeatureLaunchFlags: unauthenticated, ActivityListContextV2Query: unauthenticated [object Object],[object Object] (https://static.twitchcdn.net/assets/sunlight-overlay-990fc182a03519642b14.js:1)
info: ---------------------------------
info: [x264 encoder: 'simple_video_stream'] preset: veryfast
free(): invalid pointer
info: [x264 encoder: 'simple_video_stream'] settings:
    rate_control: CBR
    bitrate:      2500
    buffer size:  2500
    crf:          0
    fps_num:      30
    fps_den:      1
    width:        1280
    height:       720
    keyint:       60
Aborted (core dumped)
 

Tuna

Member
This looks to be a mismatch between libx264 which OBS compiled with compared to what it run against with.
 

Mvube

New Member
Just figured it out! I simply needed to change the codec to FFmpeg under Advanced.
Thanks, Mate, that worked for me too. I changed the Audio Encoder to FFmpeg AAC, and the Video Encoder to NVIDIA NVENC H.264 (FFmpeg) at 1920x1080 under Output Mode Advanced - Streaming. I was tearing my hair out with frustration. Your solution works well. Awesome. Cheers mate.
 
Top