sound stops working / seg. fault on cpu load

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!

Benny, native ALSA support works like a charm! Stable irrespective of cpu load!!
Thank you very much for the hint!

However another sound problem remains. It's definitely not a pjsua problem but perhaps you know the answer...
pjsua 1.0.3 can share alsa soundcard with another application (rdesktop client) in my environment but 
pjsua 1.8 can NOT. And it does not depend on PortAudio being used or not.

Is it possible to tune something to force pjsua 1.8 to share alsa soundcard like 1.0.3 used to do?
If not then i guess i have to install PulseAudio or something like that...


-----Original Message-----
From: Benny Prijono <bennylp@xxxxxxxxx>
To: pjsip list <pjsip at lists.pjsip.org>
Date: Sat, 2 Oct 2010 05:47:01 +0700
Subject: Re: sound stops working / seg. fault on cpu load

> On Sat, Oct 2, 2010 at 12:10 AM, Igor Kravets <megaboots at mail.ru> wrote:
> >
> > Thank you for reply, Benny!
> >
> > Now i do these things:
> > 1. run pjsua from gdb debugger
> > 2. connect mic port to output in pjsua ("cc 0 0")
> > 3. give some load (using "stress -c 1" command) and hit a segfault
> > (but sometimes just the sound stops with no segfault)
> >
> > Here how it looks:
> >
> > (gdb) run
> > Starting program: /pjdebug/pjsua
> > warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
> > warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
> > warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
> > warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
> > warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
> > [New LWP 3369]
> >
> > Program received signal SIGSEGV, Segmentation fault.
> > [Switching to LWP 3369]
> > 0x08120cc0 in Copy_16_To_16 ()
> > (gdb) bt
> > #0  0x08120cc0 in Copy_16_To_16 ()
> > #1  0x0812252f in AdaptingProcess ()
> > #2  0x081229d5 in PaUtil_EndBufferProcessing ()
> > #3  0x0811c69c in CallbackThreadFunc ()
> > #4  0xb7f83fa5 in ?? () from /usr/lib/libpthread.so.0
> > #5  0xb7e3597e in clone () from /usr/lib/libc.so.6
> > (gdb)
> >
> 
> Hi,
> 
> It looks like it happens in PortAudio. I can't offer any fix for that,
> but perhaps you can try using our native ALSA implementation instead.
> Follow the instruction in https://trac.pjsip.org/repos/ticket/1016
> 
> >
> > BTW, when connecting ports using "cc 0 0" there are also strange warnings,
> > but still it connects ok and a hear myself:
> >
> >>>> cc 0 0
> >  00:59:30.575  pjsua_media.c  Opening sound device PCM at 16000/1/20ms
> > Expression 'SetApproximateSampleRate( pcm, hwParams, sr )' failed in 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1294
> > Expression 'PaAlsaStreamComponent_InitialConfigure( &self->capture, inParams, self->primeBuffers, hwParamsCapture, &realSr )' failed in 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1870
> > Expression 'PaAlsaStream_Configure( stream, inputParameters, outputParameters, sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode )' failed in 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1994
> > Expression 'SetApproximateSampleRate( pcm, hwParams, sr )' failed in 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1294
> > Expression 'PaAlsaStreamComponent_InitialConfigure( &self->capture, inParams, self->primeBuffers, hwParamsCapture, &realSr )' failed in 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1870
> > Expression 'PaAlsaStream_Configure( stream, inputParameters, outputParameters, sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode )' failed in 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1994
> >  00:59:30.577  pjsua_media.c  Opening sound device PCM at 44100/1/20ms
> >  00:59:30.602    ec0x81d8a78  AEC created, clock_rate=44100, channel=1, samples per frame=882, tail length=200 ms, latency=115 ms
> >  00:59:30.623   conference.c  Port 0 (HDA Intel: ALC662 rev1 Analog (hw:0,0) (44KHz)) transmitting to port 0 (HDA Intel: ALC662 rev1 Analog (hw:0,0) (44KHz))
> > Success
> >
> > Do i have to worry about there warnings?
> >
> 
> These are fine. By default we will open the sound device at 16Khz, and
> if this fails, we will try other clock rates, and whenever this fails,
> PortAudio will throw that warnings. But it looks like we're able to
> open it at 44.1KHz eventually.
> 
> Best regards,
>  Benny
> 
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
> 
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
> 



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux