Bug Report Segmentation fault when starting recording or starting Auto-Configuration Wizard

workoft

New Member
Hi,

OBS crasher with the following when starting a recording:

Code:
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: Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz
info: CPU Speed: 2841.522MHz
info: Physical Cores: 2, Logical Cores: 4
info: Physical Memory: 15901MB Total, 12102MB Free
info: Kernel Version: Linux 5.4.0-4-amd64
info: Distribution: "Debian GNU/Linux" Unknown
info: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.20.8
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_advAudioProps_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_advAudioProps_destroyed()
QMetaObject::connectSlotsByName: No matching signal for on_actionGridMode_triggered()
QMetaObject::connectSlotsByName: No matching signal for on_program_customContextMenuRequested(QPoint)
info: OBS 25.0.3+dfsg1-2 (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
        samples per sec: 44100
        speakers:        2
info: ---------------------------------
info: Initializing OpenGL...
info: Loading up OpenGL on adapter Intel Mesa Intel(R) HD Graphics 520 (SKL GT2)
info: OpenGL loaded successfully, version 4.6 (Core Profile) Mesa 20.0.2, shading language 4.60
info: ---------------------------------
info: video settings reset:
        base resolution:   1280x720
        output resolution: 1280x720
        downscale filter:  Bicubic
        fps:               30/1
        format:            NV12
        YUV mode:          601/Partial
info: NV12 texture support not available
info: Audio monitoring device:
        name: Default
        id: default
info: ---------------------------------
warning: Failed to load 'en-US' text for module: 'decklink-ouput-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
info: No blackmagic support
error: os_dlopen(libnvidia-encode.so.1->libnvidia-encode.so.1): libnvidia-encode.so.1: cannot open shared object file: No such file or directory

info: FFMPEG VAAPI supported
info: VLC 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-transitions.so
info:     obs-outputs.so
info:     obs-filters.so
info:     obs-ffmpeg.so
info:     linux-v4l2.so
info:     linux-pulseaudio.so
info:     linux-jack.so
info:     linux-decklink.so
info:     linux-capture.so
info:     linux-alsa.so
info:     image-source.so
info:     frontend-tools.so
info:     decklink-ouput-ui.so
info: ---------------------------------
info: ==== Startup complete ===============================================
info: All scene data cleared
info: ------------------------------------------------
info: pulse-input: Server name: 'pulseaudio 13.0'
info: pulse-input: Audio format: s16le, 48000 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_output.pci-0000_00_1f.3.analog-stereo.monitor'
info: pulse-input: Server name: 'pulseaudio 13.0'
info: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_input.pci-0000_00_1f.3.analog-stereo'
info: Switched to scene 'xournalpp'
info: ------------------------------------------------
info: Loaded scenes:
info: - scene 'xournalpp':
info:     - source: 'Window Capture (Xcomposite)' (xcomposite_input)
info: ------------------------------------------------
Attempted path: share/obs/obs-studio/images/overflow.png
Attempted path: /usr/share/obs/obs-studio/images/overflow.png
info: adding 46 milliseconds of audio buffering, total audio buffering is now 46 milliseconds (source: Desktop Audio)

info: ---------------------------------
info: [x264 encoder: 'recording_h264'] preset: medium
info: [x264 encoder: 'recording_h264'] settings:
        rate_control: CBR
        bitrate:      2500
        buffer size:  2500
        crf:          0
        fps_num:      30
        fps_den:      1
        width:        1280
        height:       720
        keyint:       250

info: [x264 encoder: 'recording_h264'] subme=0 + direct=temporal is not supported

Segmentation fault

The lines "info: ------" and following is what appears upon crash, the previous lines appear during and shortly after startup, I included them in case any relevant information is there.

I'm on Debian sid running KDE 5. My OBS Version is 25.0.3.

Regards,
Malte
 

gkr

New Member
Hi Malte,
installing libnvidia-encode1 via apt resolved a similar problem for me, see also the error message you have quite on top in your log.
I hope this helps,
regards,
George
 

Tuna

Member
This seems to me like an indication of a mismatch of libx264 being installed and OBS was compiled with.
 

gkr

New Member
I don't know about Malte's system, but on mine, libx264 was already installed and the problem still occurred. That is, a crash of obs-studio version 22.0.3 (Debian Buster) with the last message reading "Segmentation Fault" after either starting the recording with pressing "Start Recording" or the autoconfig-wizzard via "Tools" -> "Autoconfiguration Wizzard". Some lines above the Segmentation Fault message there was the following message (similar to what Malte experienced):
Code:
libDeckLinkAPI.so: cannot open shared object file: No such file or directory
info: No blackmagic support
error: os_dlopen(libnvidia-encode.so.1->libnvidia-encode.so.1): libnvidia-encode.so.1: cannot open shared object file: No such file or directory
After installing libnvidia-encode1, it works.

Currently, in Debian Buster obs-studio does neither require nor recommend libnvidia-encode1.
The requirements might depend on the video card, but could libnvidia-encode be stated at least as recommended package?
 
Top