(snd_pcm_recover) underrun occurred / PJMedia crashes

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

 



Hi there,

I am still having several problems to get a solid audioconnection. First 
some details about my system:
System:  Ubuntu 12 / PulseAudio 1.1 / PJSIP 2.3 (SVN Head) / Headset 
Jabra Link 280 USB / using PJSUA2 for Python (swig)
configured:
     ./configure --disable-oss --disable-video --disable-speex-aec 
--disable-l16-codec --disable-speex-codec --disable-v4l2 
--with-external-pa --with-external-srtp

installed PA is:  ii  libportaudio2    /   19+svn20111121-1  /  Portable 
audio I/O - shared library

the problem:
   In regular intervals the following error occurs in the logfile, which 
comes along with a short "cracking" in the audiostream:
      *[5] media> RTP status: badpt=-1, badssrc=-1, dup=0, outorder=0, 
probation=0, restart=0
      *[4] media> Bad RTP pt 0 (expecting 8)
      *[4] media> Changed RTP peer SSRC 665309863 (previously 665309863)
   and:
      *[5] portaudio> Jitter buffer empty (prefetch=24), plc invoked
      *[5] portaudio> Jitter buffer is bufferring (prefetch=24), plc 
invoked
      *[5] portaudio> Jitter buffer starts returning normal frames (after 
7 empty/lost)
      *[5] thr0x7f00b398a700> Timeout timer event
      *[5] thr0x7f00b398a700> State changed from Completed to Terminated, 
event=TIMER
      *[5] thr0x7f00b398a700> Timeout timer event
      *[5] thr0x7f00b398a700> State changed from Terminated to Destroyed, 
event=TIMER
      *[5] thr0x7f00b398a700> Destroying txdata Response msg 
200/NOTIFY/cseq=102 (tdta0x7f00a40d1310)
      *[5] thr0x7f00b398a700> Transaction destroyed!


   and after some more thime these errors get heaping:
      ALSA lib pcm.c:7339:(snd_pcm_recover) underrun occurred
   ...coming up more and more until this one:
      ALSA lib pcm.c:7339:(snd_pcm_recover) underrun occurred
      2015-02-26 13:36:02,847 - softphone - DEBUG - playback application 
'python2.7' was removed!
      Expression 'err' failed in 'src/hostapi/alsa/pa_linux_alsa.c', 
line: 3286
      Expression 'ContinuePoll( self, StreamDirection_In, &pollTimeout, 
&pollCapture )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3813
      Expression 'PaAlsaStream_WaitForFrames( stream, &framesAvail, &xrun 
)' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4185

Hint: the line '- softphone - DEBUG - playback application 'python2.7' 
was removed!' is done by my code - it tells, that PulseAudio told my 
program via DBus, that the program stopped the audiostream.

The call itself (RTP-stream) still consists, but there is no more audio 
playable / recordable at all. PJSUA-Endpoint must get restarted over 
all.

I already tried to increase / decrease jitter buffer and sound latency - 
no success.

Any ideas?



[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