[jitsi-dev] Jitsi frozen and PulseAudio


#1

Hi,
I have a problem running Jitsi: when starting, Jitsi gets frozen without GUI shown and without error messages shown on command line.
After a while trying to find the problem I found that enabling PulseAudio on my machine solves the problem and everything works as expected.
Regarding logs, without PulseAudio Jitsi gets frozen after this line
INFO: impl.neomedia.device.DeviceSystem.initializeDeviceSystems().96 Initializing audio devices
I'm using openSUSE 12.1 64bit
Tell me if you need more info.

Daniel


#2

Could you please provide a Java thread dump (created, for example,
using the jstack command-line utility) of the Jitsi process while it
is frozen?

···

2012/5/9 Daniel Zucchetto <dzmail90-voip@yahoo.it>:

Regarding logs, without PulseAudio Jitsi gets frozen after this line
INFO: impl.neomedia.device.DeviceSystem.initializeDeviceSystems().96
Initializing audio devices


#3

Here you are.
jstack prints out also an error, see the two attachments.
When Pulseaudio is enabled Jitsi shows this on the shell:

ALSA lib pcm_dsnoop.c:612:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave

Maybe it could be related to the problem.

Thanks for the reply,
Daniel

dump.txt.zip (2.7 KB)

dump_error.txt (3.12 KB)

···

Il 10/05/2012 00:02, Lyubomir Marinov ha scritto:

Could you please provide a Java thread dump (created, for example,
using the jstack command-line utility) of the Jitsi process while it
is frozen?


#4

Just as additional info:

On my system
OpenSuse 12.1, 64bit
Java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02, mixed mode)

PulseAudio works, no problems so far. I get the following messages
when I start Jitsi:

     [java] ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
     [java] ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
     [java] ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
     [java] ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream

Do you have a ~/.asoundrc that contains some entries which could prevent PulseAudio
from working correctly? I have no such file anymore since installing PulseAudio.

Regards,
Werner

···

Am 10.05.2012 11:35, schrieb Daniel Zucchetto:

Il 10/05/2012 00:02, Lyubomir Marinov ha scritto:

Could you please provide a Java thread dump (created, for example,
using the jstack command-line utility) of the Jitsi process while it
is frozen?

Here you are.
jstack prints out also an error, see the two attachments.
When Pulseaudio is enabled Jitsi shows this on the shell:

ALSA lib pcm_dsnoop.c:612:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave

Maybe it could be related to the problem.

Thanks for the reply,
Daniel


#5

Hi Werner,

Just as additional info:

On my system
OpenSuse 12.1, 64bit
Java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02, mixed mode)

I forgot to add my java version:

java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.1) (suse-3.1-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

PulseAudio works, no problems so far. I get the following messages
when I start Jitsi:

      [java] ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
      [java] ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
      [java] ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
      [java] ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream

Do you have a ~/.asoundrc that contains some entries which could prevent PulseAudio
from working correctly? I have no such file anymore since installing PulseAudio.

I haven't got the .asoundrc file.
Anyway, PulseAudio works for me. When it is enabled everything works, Jitsi included. The problem appears when PulseAudio is disabled: everything works except Jitsi.
Could you please try to test Jitsi with PulseAudio disabled in order to confirm that my problem it's not related on my specific configuration? (If you do this, beware that you need to disable PulseAudio in YaST and reboot, YaST says nothing about this last detail).

Thanks,
Daniel

···

Il 10/05/2012 15:37, Werner Dittmann ha scritto:


#6

Could you please try SVN revision 9587?

···

2012/5/11 Daniel Zucchetto <dzmail90-voip@yahoo.it>:

If you do this, beware that you need to disable PulseAudio in YaST


#7

Thanks, now it works!
But when I start Jitsi I get this error on the shell:

ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
17:48:44.169 GRAVE: impl.neomedia.device.DeviceConfiguration.registerCustomRenderers().763 Failed to register custom Renderer net.java.sip.communicator.impl.neomedia.jmfext.media.renderer.audio.PulseAudioRenderer with JMF.
java.lang.IllegalStateException: pulseAudioSystem
         at net.java.sip.communicator.impl.neomedia.jmfext.media.renderer.audio.PulseAudioRenderer.<init>(PulseAudioRenderer.java:85)
         at net.java.sip.communicator.impl.neomedia.jmfext.media.renderer.audio.PulseAudioRenderer.<init>(PulseAudioRenderer.java:78)
         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:532)
         at java.lang.Class.newInstance0(Class.java:372)
         at java.lang.Class.newInstance(Class.java:325)
         at net.java.sip.communicator.impl.neomedia.device.DeviceConfiguration.registerCustomRenderers(DeviceConfiguration.java:750)
         at net.java.sip.communicator.impl.neomedia.device.DeviceConfiguration.initialize(DeviceConfiguration.java:329)
         at net.java.sip.communicator.impl.neomedia.MediaServiceImpl.start(MediaServiceImpl.java:597)
         at net.java.sip.communicator.impl.neomedia.NeomediaActivator.start(NeomediaActivator.java:211)
         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:679)

This error doesn't prevent to make calls, but maybe can cause other malfunctioning.

Regards,
Daniel

···

Il 11/05/2012 14:33, Lyubomir Marinov ha scritto:

Could you please try SVN revision 9587?


#8

It is a handled exception explicitly printed for the purposes of
debugging. It alone will not cause malfunctioning.

···

2012/5/11 Daniel Zucchetto <dzmail90-voip@yahoo.it>:

17:48:44.169 GRAVE:
impl.neomedia.device.DeviceConfiguration.registerCustomRenderers().763
Failed to register custom Renderer
net.java.sip.communicator.impl.neomedia.jmfext.media.renderer.audio.PulseAudioRenderer
with JMF.
This error doesn't prevent to make calls, but maybe can cause other
malfunctioning.