Bug Report Crash after "Failed to Initialize Audio"

mangopuncher

New Member
So I already filed a bug for this on Mantis, but I need some help getting this working. Here's the bug on Mantis. Essentially OBS has been working fine and then I upgraded via the 0.9.0 release on GitHub. Compiled fine, installed fine. However, now when I open OBS, I get this error:

VHxeMJM.png


Here's the log file:

Code:
07:39:52 PM: OBS 0.9.0 (linux)
07:39:52 PM: Processor: 4 logical cores
07:39:52 PM: Processor: Intel(R) Core(TM) i5-3450 CPU @ 3.10GHz
07:39:52 PM: Physical Memory: 7959MB Total
07:39:52 PM: Kernel Version: Linux 3.19.2-1-ARCH
07:39:52 PM: Distribution: Antergos Unknown
07:39:52 PM: audio settings reset:
    samples per sec: 1000
    speakers: 45640992
    buffering (ms): 4506551

07:39:52 PM: Invalid audio parameters specified
07:39:52 PM: Failed to initialize audio
07:43:25 PM: Number of memory leaks: 216


I have been doing some trouble shooting here and there, and I think I've reached my limitation on what I know about how audio works on linux. Anyone have any ideas?
 
Last edited:
Your audio parameters are quite crazy: usually it should be:
  • Samples/s: 44100
  • Speakers: 2
  • Buffering: 1000
Check your audio settings in OBS. Else, something may be messing up with OBS sound system or PulseAudio.
 

mangopuncher

New Member
Is that configurable from the .obs-studio directory? OBS closes immediately after reporting that error.

Edit: I changed the settings in obs on another computer I have laying around with this to see if I can change crazy samples/s with this in basic.ini:

Code:
[Audio]
SampleRate=44100

Which gave me this:

Code:
Attempted path: share/obs/obs-studio/locale/en-US.ini
Attempted path: /usr/local/share/obs/obs-studio/locale/en-US.ini
Attempted path: share/obs/obs-studio/locale.ini
Attempted path: /usr/local/share/obs/obs-studio/locale.ini
Attempted path: share/obs/obs-studio/license/gplv2.txt
Attempted path: /usr/local/share/obs/obs-studio/license/gplv2.txt
QObject::connect: invalid null parameter
info: OBS 0.0.1 (linux)
info: Processor: 4 logical cores
info: Processor: Intel(R) Core(TM) i5-3450 CPU @ 3.10GHz
info: Physical Memory: 7959MB Total
info: Kernel Version: Linux 3.19.2-1-ARCH
info: Distribution: Antergos Unknown
info: audio settings reset:
    samples per sec: 4754739
    speakers:        0
    buffering (ms):  44100

error: Invalid audio parameters specified
error: Failed to initialize audio
info: Number of memory leaks: 214
 
Last edited:
Strange that your OBS number on the last log is 0.0.1...anyway, have you tried to test with 0.9.1 ?
In last resort, you can erase ".obs-studio" directory to regenerate a new one at next startup.
 

mangopuncher

New Member
Strange that your OBS number on the last log is 0.0.1...anyway, have you tried to test with 0.9.1 ?
In last resort, you can erase ".obs-studio" directory to regenerate a new one at next startup.

I actually tried that to begin with. Anyway, tried removing the package, clearing the pacman caches and scrubbing any trace of OBS that I could find, and rebuilt 0.9.1 and it's now functioning properly! I'm just going to assume that I didn't configure the package correctly when I installed it from github early on. I'm pretty sure this must be something I did and not a bug with OBS.
 
Top