Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expression 'stream->capture.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4375 #45

Open
maximilianmikus opened this issue Jul 28, 2015 · 5 comments

Comments

@maximilianmikus
Copy link

Hi, I am getting this error. My processAudio function is empty and only returns the inputBuffer.

ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
input :15
output :15
rate :44100
format :1
size :4
inputChannels :1
outputChannels :2
interleaved :0
uses input: 1
Expression 'stream->capture.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4375
Expression 'stream->capture.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4375
Expression 'stream->capture.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4375
Expression 'stream->capture.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4375
Expression 'stream->capture.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4375
Expression 'stream->capture.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4375
Expression 'stream->capture.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4375
Expression 'stream->capture.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4375
Expression 'stream->capture.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4375

The line

Expression 'stream->capture.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4375

is repeated infinetly and i can hear strange ticks from my speakers.

I had to fix portaudio (#33).

@ZECTBynmo
Copy link
Member

This looks related
http://ubuntuforums.org/showthread.php?t=1490237

@Vuurbaard
Copy link

I am having exactly the same issue on my raspberry pi, did you manage to find a solution yet?

However I don't seem to have bluetooth devices, this is what I get:

Expression 'stream->capture.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4307
Expression 'stream->capture.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4307
Expression 'stream->capture.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4307
Expression 'stream->capture.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4307
Expression 'savail' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4463
Expression 'err = GetStreamWriteAvailable( stream )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4406
Expression 'savail' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4463
Expression 'err = GetStreamWriteAvailable( stream )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4406

@Vuurbaard
Copy link

Seems to be that when you add { useMicrophone: false } to the options it gets rid of that Expression 'stream->capture.pcm' failed error line. My goal is not to capture from the microphone anyway. Might have something to do with installing jackd1 instead of jackd2 as I read that jackd2 isn't really stable on a raspberry pi? Don't quote me on that, though.

However it still leaves me with that strange ticking noise and this error:

Expression 'savail' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4463
Expression 'err = GetStreamWriteAvailable( stream )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4406

@maximilianmikus
Copy link
Author

I am using ubuntu with a desktop pc, so I doubt it is related to raspberry pi.

after setting { useMicrophone: false } I dont get any error output, but I still get the strange ticking noise.

in the aforementioned thread it was suggested to remove the "bluez-alsa" package, but that did not help me with this issue.

@nhtranngoc
Copy link

I'm running into the same problem as @maximilianmikus on Fedora 25:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants