[jitsi-users] Audio bugs, loads of xruns


#1

Hi there,
I am trying to use Jitsi and have severe problems with the audio part
of it, making it unusable. Text and Video seems to work fine.
The system is Arch Linux x86.
Jitsi 2.2 and a nightly build from 20130823, both with the same result.
I don't know why it's even trying pulseaudio, jitsi is configured to use
portaudio.
Only libpulse 4.0 is installed, not the full pulseaudio.
Portaudio is version 19_20111121.
Java is: jre7-openjdk 7.u40_2.4.1

What else do you need to know?
Regards,
Philipp

These are the errors that appear at start:

$ jitsi
i686
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 ALSA lib confmisc.c:1286:(snd_func_refer)
Unable to find definition
'cards.USB-Audio.pcm.hdmi.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2' ALSA
lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned
error: No such file or directory ALSA lib
conf.c:4727:(snd_config_expand) Evaluate error: No such file or
directory ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM hdmi
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition
'cards.USB-Audio.pcm.hdmi.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2' ALSA
lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned
error: No such file or directory ALSA lib
conf.c:4727:(snd_config_expand) Evaluate error: No such file or
directory ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM hdmi
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition
'cards.USB-Audio.pcm.modem.0:CARD=0' ALSA lib
conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned
error: No such file or directory ALSA lib
conf.c:4727:(snd_config_expand) Evaluate error: No such file or
directory ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM
cards.pcm.phoneline:CARD=0,DEV=0 ALSA lib
confmisc.c:1286:(snd_func_refer) Unable to find definition
'cards.USB-Audio.pcm.modem.0:CARD=0' ALSA lib
conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned
error: No such file or directory ALSA lib
conf.c:4727:(snd_config_expand) Evaluate error: No such file or
directory ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM
cards.pcm.phoneline:CARD=0,DEV=0 ALSA lib
confmisc.c:1286:(snd_func_refer) Unable to find definition
'cards.USB-Audio.pcm.modem.0:CARD=0' ALSA lib
conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned
error: No such file or directory ALSA lib
conf.c:4727:(snd_config_expand) Evaluate error: No such file or
directory ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM
phoneline ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find
definition 'cards.USB-Audio.pcm.modem.0:CARD=0' ALSA lib
conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned
error: No such file or directory ALSA lib
conf.c:4727:(snd_config_expand) Evaluate error: No such file or
directory ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM
phoneline ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to
connect: Connection refused

ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect:
Connection refused

ALSA lib pcm_dmix.c:961:(snd_pcm_dmix_open) The dmix plugin supports
only playback stream 21:00:54.356 SEVERE: [12]
org.jitsi.impl.neomedia.device.DeviceConfiguration.error() Failed to
register custom Renderer
org.jitsi.impl.neomedia.jmfext.media.renderer.audio.PulseAudioRenderer
with JMF. java.lang.IllegalStateException: audioSystem at
org.jitsi.impl.neomedia.jmfext.media.renderer.audio.PulseAudioRenderer.<init>(PulseAudioRenderer.java:105)
at
org.jitsi.impl.neomedia.jmfext.media.renderer.audio.PulseAudioRenderer.<init>(PulseAudioRenderer.java:85)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method) at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at
java.lang.Class.newInstance(Class.java:374) at
org.jitsi.impl.neomedia.device.DeviceConfiguration.registerCustomRenderers(DeviceConfiguration.java:1011)
at
org.jitsi.impl.neomedia.device.DeviceConfiguration.<init>(DeviceConfiguration.java:354)
at
org.jitsi.impl.neomedia.MediaServiceImpl.<init>(MediaServiceImpl.java:132)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method) at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at
java.lang.Class.newInstance(Class.java:374) at
org.jitsi.impl.libjitsi.LibJitsiImpl.getService(LibJitsiImpl.java:133)
at
org.jitsi.impl.libjitsi.LibJitsiOSGiImpl.getService(LibJitsiOSGiImpl.java:86)
at
org.jitsi.service.libjitsi.LibJitsi.invokeGetServiceOnImpl(LibJitsi.java:163)
at
org.jitsi.service.libjitsi.LibJitsi.getMediaService(LibJitsi.java:115)
at
net.java.sip.communicator.impl.neomedia.NeomediaActivator.start(NeomediaActivator.java:380)
at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:629)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:1904) at
org.apache.felix.framework.Felix.startBundle(Felix.java:1822) at
org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1192)
at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:266)
at java.lang.Thread.run(Thread.java:724)

And once I try to initialise a call I get horribly stuttering sound and
lots of those errors:

Expression 'PaAlsaStream_WaitForFrames( stream, &framesAvail, &xrun )'
failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4465 21:01:13.924
SEVERE: [124]
org.jitsi.impl.neomedia.jmfext.media.renderer.audio.PortAudioRenderer.error()
Failed to process Buffer.
org.jitsi.impl.neomedia.portaudio.PortAudioException: Internal
PortAudio error at
org.jitsi.impl.neomedia.portaudio.Pa.WriteStream(Native Method) at
org.jitsi.impl.neomedia.jmfext.media.renderer.audio.PortAudioRenderer.process(PortAudioRenderer.java:857)
at
org.jitsi.impl.neomedia.jmfext.media.renderer.audio.PortAudioRenderer.process(PortAudioRenderer.java:754)
at
net.sf.fmj.media.BasicRendererModule.processBuffer(BasicRendererModule.java:690)
at
net.sf.fmj.media.BasicRendererModule.scheduleBuffer(BasicRendererModule.java:861)
at
net.sf.fmj.media.BasicRendererModule.doProcess(BasicRendererModule.java:317)
at net.sf.fmj.media.RenderThread.process(BasicRendererModule.java:1153)
at net.sf.fmj.media.util.LoopThread.run(LoopThread.java:85) Expression
'PaAlsaStream_WaitForFrames( stream, &framesAvail, &xrun )' failed in
'src/hostapi/alsa/pa_linux_alsa.c', line: 4465