Skip to content

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

Open

Description

@maximilianmikus

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).

Activity

  1. ZECTBynmo commented on Jul 28, 2015

    @ZECTBynmo
    Member
  2. Vuurbaard commented on Aug 1, 2015

    @Vuurbaard

    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

  3. Vuurbaard commented on Aug 2, 2015

    @Vuurbaard

    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

  4. maximilianmikus commented on Aug 3, 2015

    @maximilianmikus
    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.

  5. nhtranngoc commented on Feb 27, 2017

    @nhtranngoc

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions