Bug Report muxer segfaults in 15.10

kuvos

New Member
Upgraded Ubuntu to 15.10 yesterday. Thought everything went fine for once. Today I wanted to record a video, but OBS hung for a while and after a few tens of seconds just exited.

I've been recording before the upgrade without a problem.

Let me know if you need more info than below.

Syslog (same in dmesg):

Oct 24 10:59:43 fox kernel: [37285.407054] obs[17107]: segfault at 30 ip 00007f08c0e2319b sp 00007f089a0744d0 error 4 in libx264.so.146[7f08c0d99000+127000]

CLI output (same as "last log file", except the logfile doesn't have the muxer and segfault lines):

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
Attempted path: share/obs/obs-studio/license/gplv2.txt
Attempted path: /usr/share/obs/obs-studio/license/gplv2.txt
info: Processor: 8 logical cores
info: Processor: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
info: Physical Memory: 32106MB Total
info: Kernel Version: Linux 4.2.0-16-generic
info: Distribution: "Ubuntu" "15.10"
QObject::connect: invalid null parameter
info: OBS 0.12.0 (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
samples per sec: 44100
speakers: 2
buffering (ms): 1000
info: OpenGL version: 3.2.0 NVIDIA 352.41

info: ---------------------------------
info: video settings reset:
base resolution: 1920x1080
output resolution: 1920x1080
fps: 60/1
format: NV12
info: ---------------------------------
info: Loading module: image-source.so
info: ---------------------------------
info: Loading module: linux-capture.so
info: ---------------------------------
info: Loading module: linux-decklink.so
libDeckLinkAPI.so: cannot open shared object file: No such file or directory
info: No blackmagic support
info: Failed to start search for DeckLink devices
info: ---------------------------------
info: Loading module: linux-jack.so
info: ---------------------------------
info: Loading module: linux-pulseaudio.so
info: ---------------------------------
info: Loading module: linux-v4l2.so
info: ---------------------------------
info: Loading module: obs-ffmpeg.so
info: ---------------------------------
info: Loading module: obs-filters.so
info: ---------------------------------
info: Loading module: obs-libfdk.so
info: ---------------------------------
info: Loading module: obs-outputs.so
info: ---------------------------------
info: Loading module: obs-x264.so
info: ---------------------------------
info: Loading module: rtmp-services.so
info: ---------------------------------
info: Loading module: text-freetype2.so
info: =====================================================================
info: output 'adv_stream' (rtmp_output) created
info: output 'adv_file_output' (ffmpeg_muxer) created
info: encoder 'streaming_h264' (obs_x264) created
info: AAC encoder bitrate mapping:
32 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
64 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
96 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
128 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
160 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
192 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
224 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
256 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
288 kbit/s: 'FFmpeg Default AAC Encoder' (ffmpeg_aac)
320 kbit/s: 'FFmpeg Default AAC Encoder' (ffmpeg_aac)
info: encoder 'adv_aac0' (libfdk_aac) created
info: encoder 'adv_aac1' (libfdk_aac) created
info: encoder 'adv_aac2' (libfdk_aac) created
info: encoder 'adv_aac3' (libfdk_aac) created
error: Service '' not found
info: service 'default_service' (rtmp_common) created
info: All scene data cleared
info: ------------------------------------------------
info: pulse-input: Server name: 'pulseaudio 6.0'
info: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_output.pci-0000_00_1b.0.iec958-stereo.monitor'
info: source 'Desktop Audio' (pulse_output_capture) created
info: pulse-input: Server name: 'pulseaudio 6.0'
info: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_input.usb-audio-technica_AT2020USB_-00.analog-stereo'
info: source 'Mic/Aux' (pulse_input_capture) created
info: source 'Scene' (scene) created
error: xcompcap: XCompositeNameWindowPixmap failed: BadMatch (invalid parameter attributes)
info: source 'Window Capture (Xcomposite)' (xcomposite_input) created
info: xshm-input: Geometry 1920x1080 @ 1920,0
info: source 'Screen Capture (XSHM)' (xshm_input) created
info: == Profiler Results =============================
info: run_program_init: 498,679 ms
info: ┣OBSApp::AppInit: 0,83 ms
info: ┃ ┗OBSApp::InitLocale: 0,453 ms
info: ┗OBSApp::OBSInit: 167,082 ms
info: ┣obs_startup: 0,676 ms
info: ┗OBSBasic::OBSInit: 148,466 ms
info: ┣OBSBasic::InitBasicConfig: 0,316 ms
info: ┣OBSBasic::ResetAudio: 0,096 ms
info: ┣OBSBasic::ResetVideo: 65,52 ms
info: ┣OBSBasic::InitOBSCallbacks: 0,005 ms
info: ┣OBSBasic::InitHotkeys: 0,03 ms
info: ┣obs_load_all_modules: 10,388 ms
info: ┃ ┣obs_init_module(image-source.so): 0,002 ms
info: ┃ ┣obs_init_module(linux-capture.so): 0,426 ms
info: ┃ ┣obs_init_module(linux-decklink.so): 0,229 ms
info: ┃ ┣obs_init_module(linux-jack.so): 0,002 ms
info: ┃ ┣obs_init_module(linux-pulseaudio.so): 0,001 ms
info: ┃ ┣obs_init_module(linux-v4l2.so): 0,001 ms
info: ┃ ┣obs_init_module(obs-ffmpeg.so): 0,009 ms
info: ┃ ┣obs_init_module(obs-filters.so): 0,003 ms
info: ┃ ┣obs_init_module(obs-libfdk.so): 0,001 ms
info: ┃ ┣obs_init_module(obs-outputs.so): 0,001 ms
info: ┃ ┣obs_init_module(obs-x264.so): 0,002 ms
info: ┃ ┣obs_init_module(rtmp-services.so): 0,092 ms
info: ┃ ┗obs_init_module(text-freetype2.so): 0,015 ms
info: ┣OBSBasic::ResetOutputs: 0,49 ms
info: ┣OBSBasic::CreateHotkeys: 0,14 ms
info: ┣OBSBasic::InitService: 0,051 ms
info: ┣OBSBasic::InitPrimitives: 12,715 ms
info: ┗OBSBasic::Load: 44,889 ms
info: =================================================
info: Update check: last known remote version is 0.4.0
warning: rtmp-common.c: [initialize_output] Could not find service ''
warning: rtmp-common.c: [initialize_output] Could not find service ''
info: ---------------------------------
info: [x264 encoder: 'streaming_h264'] preset: veryfast
info: [x264 encoder: 'streaming_h264'] settings:
bitrate: 2500
buffer size: 0
crf: 20
fps_num: 60
fps_den: 1
width: 1920
height: 1080
keyint: 250
vfr: off
cbr: off
info: [x264 encoder: 'streaming_h264'] VBV maxrate specified, but no bufsize, ignored

info: libfdk_aac encoder created
info: libfdk_aac bitrate: 160, channels: 2
info: libfdk_aac encoder created
info: libfdk_aac bitrate: 160, channels: 2
info: libfdk_aac encoder created
info: libfdk_aac bitrate: 160, channels: 2
info: ==== Recording Start ===============================================
info: [ffmpeg muxer: 'adv_file_output'] Writing file '.../recording/2015-10-24 10-59-43.mkv'...
Couldn't initialize muxer
Segmentation fault (core dumped)
 

kuvos

New Member
Can somebody please confirm or deny that this is a bug? If I can fix it on my end I'd love to know how. I kinda need to get recordings done today.

I've tried changing some encoder settings, in hopes it's just some encoder screwing up. But that didn't get me any further.

Then I tried uninstalling and reinstalling it, but that turned out difficult through apt-get, probably due to https://obsproject.com/forum/thread...0-packages-48-hours-until-wily-release.38100/

Please don't make me build through source :)

---
~$ sudo apt-get update && sudo apt-get install obs-studio
<normal update stuff>
Fetched 160 kB in 2s (64,7 kB/s)
W: Failed to fetch http://ppa.launchpad.net/obsproject/obs-studio/ubuntu/dists/wily/main/binary-amd64/Packages 404 Not Found

W: Failed to fetch http://ppa.launchpad.net/obsproject/obs-studio/ubuntu/dists/wily/main/binary-i386/Packages 404 Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
~$ sudo apt-get install obs-studio
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package obs-studio is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'obs-studio' has no installation candidate
~$
 

SuperSluether

New Member
I have the exact same issue. I've tried purging and reinstalling, but no change.

To fix the PPA, just go into your software sources and change the distribution from "wily" to "vivid" and it'll work fine.

Another thing I noticed is that after purging OBS and FFmpeg, I had to manually install libx264-142. It's been replaced with libx264-146, but OBS doesn't use this newer version yet.
 
Top