[jitsi-dev] Some problems with FMJ


#1

Hi all,

after I updated my Jitsi stuff on my computer I'm rying to setup a call ro
another test client. This update (source update from repository) was the first
after the switch to FMJ. To get the sound working I had to switch off/on
Portaudio to re-anable it. Works now. However, when selecting another output
device (not sysdefault), for exampe "dmix", I get some messages (below) from Jitsi
and Jitsi hangs: it cannot be stopped, I had to perform a kill -9 to really
kill it, even after Jitsi told me that if will perform a forced exit.

In particular Linix Alsa / Portaudio could have some settings that could trigger
similar problems in other systems, thus it would be nice if Jitsi would just
report this and not lock itself in the system. IMHO some checks are necessary to
prevent this behaviour would be nice :slight_smile: .

Best regards and a happy new year to all the Jitsi addicts :slight_smile:

Werner

     [java] warning: The VAD has been replaced by a hack pending a complete rewrite
     [java] 10:06:25.236 SCHWERWIEGEND: impl.protocol.sip.OperationSetBasicTelephonySipImpl.processResponse().585 Received error: 408 Request Timeout
     [java] Unable to handle format: LINEAR, 44100.0 Hz, 16-bit, Mono, LittleEndian, Signed
     [java] Failed to prefetch: net.sf.fmj.media.ProcessEngine@5ef72499
     [java] Error: Unable to prefetch net.sf.fmj.media.ProcessEngine@5ef72499
     [java]
     [java] warning: The VAD has been replaced by a hack pending a complete rewrite
     [java] Unable to handle format: LINEAR, 44100.0 Hz, 16-bit, Mono, LittleEndian, Signed
     [java] Failed to prefetch: net.sf.fmj.media.ProcessEngine@571d4e75
     [java] Error: Unable to prefetch net.sf.fmj.media.ProcessEngine@571d4e75
     [java]
     [java] 10:08:38.765 SCHWERWIEGEND: impl.protocol.sip.CallPeerSipImpl.hangup().988 Error while trying to hangup, trying to handle!
     [java] java.lang.NullPointerException
     [java] at net.sf.fmj.media.renderer.audio.JavaSoundRenderer.close(Unknown Source)
     [java] at net.sf.fmj.media.BasicRendererModule.doClose(Unknown Source)
     [java] at net.sf.fmj.media.PlaybackEngine.doClose(Unknown Source)
     [java] at net.sf.fmj.media.BasicController.close(Unknown Source)
     [java] at net.sf.fmj.media.BasicPlayer.doClose(Unknown Source)
     [java] at net.sf.fmj.media.BasicController.close(Unknown Source)
     [java] at net.java.sip.communicator.impl.neomedia.device.MediaDeviceSession.disposePlayer(MediaDeviceSession.java:635)
     [java] at net.java.sip.communicator.impl.neomedia.device.MediaDeviceSession.disposePlayer(MediaDeviceSession.java:615)
     [java] at net.java.sip.communicator.impl.neomedia.device.MediaDeviceSession.close(MediaDeviceSession.java:342)
     [java] at
net.java.sip.communicator.impl.neomedia.device.AudioMixerMediaDevice$AudioMixerMediaDeviceSession.removeMediaStreamMediaDeviceSession(AudioMixerMediaDevice.java:716)
     [java] at net.java.sip.communicator.impl.neomedia.device.AudioMixerMediaDevice$MediaStreamMediaDeviceSession.close(AudioMixerMediaDevice.java:860)
     [java] at net.java.sip.communicator.impl.neomedia.MediaStreamImpl.close(MediaStreamImpl.java:556)
     [java] at net.java.sip.communicator.impl.neomedia.AudioMediaStreamImpl.close(AudioMediaStreamImpl.java:419)
     [java] at net.java.sip.communicator.service.protocol.media.CallPeerMediaHandler.setAudioStream(CallPeerMediaHandler.java:789)
     [java] at net.java.sip.communicator.service.protocol.media.CallPeerMediaHandler.closeStream(CallPeerMediaHandler.java:418)
     [java] at net.java.sip.communicator.service.protocol.media.CallPeerMediaHandler.close(CallPeerMediaHandler.java:403)
     [java] at net.java.sip.communicator.service.protocol.media.MediaAwareCallPeer.setState(MediaAwareCallPeer.java:485)
     [java] at net.java.sip.communicator.service.protocol.AbstractCallPeer.setState(AbstractCallPeer.java:435)
     [java] at net.java.sip.communicator.impl.protocol.sip.CallPeerSipImpl.setDisconnectedState(CallPeerSipImpl.java:1616)
     [java] at net.java.sip.communicator.impl.protocol.sip.CallPeerSipImpl.hangup(CallPeerSipImpl.java:983)
     [java] at net.java.sip.communicator.impl.protocol.sip.OperationSetBasicTelephonySipImpl.hangupCallPeer(OperationSetBasicTelephonySipImpl.java:1674)
     [java] at net.java.sip.communicator.impl.protocol.sip.OperationSetBasicTelephonySipImpl.hangupCallPeer(OperationSetBasicTelephonySipImpl.java:1651)
     [java] at net.java.sip.communicator.impl.gui.main.call.CallManager$HangupCallThread.run(CallManager.java:1511)
     [java] 10:10:07.400 SCHWERWIEGEND: impl.shutdowntimeout.ShutdownTimeout.run().80 Failed to gently shutdown. Forcing exit.


#2

Hi Werner,
Its strange :slight_smile: what is your os and your alsa version? We will update
portaudio soon and we must test this situation.

Regards
damencho

···

On Dec 31, 2011 1:27 PM, "Werner Dittmann" <Werner.Dittmann@t-online.de> wrote:

Hi all,

after I updated my Jitsi stuff on my computer I'm rying to setup a call ro
another test client. This update (source update from repository) was the
first
after the switch to FMJ. To get the sound working I had to switch off/on
Portaudio to re-anable it. Works now. However, when selecting another
output
device (not sysdefault), for exampe "dmix", I get some messages (below)
from Jitsi
and Jitsi hangs: it cannot be stopped, I had to perform a kill -9 to really
kill it, even after Jitsi told me that if will perform a forced exit.

In particular Linix Alsa / Portaudio could have some settings that could
trigger
similar problems in other systems, thus it would be nice if Jitsi would
just
report this and not lock itself in the system. IMHO some checks are
necessary to
prevent this behaviour would be nice :slight_smile: .

Best regards and a happy new year to all the Jitsi addicts :slight_smile:

Werner

    [java] warning: The VAD has been replaced by a hack pending a complete
rewrite
    [java] 10:06:25.236 SCHWERWIEGEND:
impl.protocol.sip.OperationSetBasicTelephonySipImpl.processResponse().585
Received error: 408 Request Timeout
    [java] Unable to handle format: LINEAR, 44100.0 Hz, 16-bit, Mono,
LittleEndian, Signed
    [java] Failed to prefetch: net.sf.fmj.media.ProcessEngine@5ef72499
    [java] Error: Unable to prefetch
net.sf.fmj.media.ProcessEngine@5ef72499
    [java]
    [java] warning: The VAD has been replaced by a hack pending a complete
rewrite
    [java] Unable to handle format: LINEAR, 44100.0 Hz, 16-bit, Mono,
LittleEndian, Signed
    [java] Failed to prefetch: net.sf.fmj.media.ProcessEngine@571d4e75
    [java] Error: Unable to prefetch
net.sf.fmj.media.ProcessEngine@571d4e75
    [java]
    [java] 10:08:38.765 SCHWERWIEGEND:
impl.protocol.sip.CallPeerSipImpl.hangup().988 Error while trying to
hangup, trying to handle!
    [java] java.lang.NullPointerException
    [java] at
net.sf.fmj.media.renderer.audio.JavaSoundRenderer.close(Unknown Source)
    [java] at net.sf.fmj.media.BasicRendererModule.doClose(Unknown
Source)
    [java] at net.sf.fmj.media.PlaybackEngine.doClose(Unknown Source)
    [java] at net.sf.fmj.media.BasicController.close(Unknown Source)
    [java] at net.sf.fmj.media.BasicPlayer.doClose(Unknown Source)
    [java] at net.sf.fmj.media.BasicController.close(Unknown Source)
    [java] at
net.java.sip.communicator.impl.neomedia.device.MediaDeviceSession.disposePlayer(MediaDeviceSession.java:635)
    [java] at
net.java.sip.communicator.impl.neomedia.device.MediaDeviceSession.disposePlayer(MediaDeviceSession.java:615)
    [java] at
net.java.sip.communicator.impl.neomedia.device.MediaDeviceSession.close(MediaDeviceSession.java:342)
    [java] at

net.java.sip.communicator.impl.neomedia.device.AudioMixerMediaDevice$AudioMixerMediaDeviceSession.removeMediaStreamMediaDeviceSession(AudioMixerMediaDevice.java:716)
    [java] at
net.java.sip.communicator.impl.neomedia.device.AudioMixerMediaDevice$MediaStreamMediaDeviceSession.close(AudioMixerMediaDevice.java:860)
    [java] at
net.java.sip.communicator.impl.neomedia.MediaStreamImpl.close(MediaStreamImpl.java:556)
    [java] at
net.java.sip.communicator.impl.neomedia.AudioMediaStreamImpl.close(AudioMediaStreamImpl.java:419)
    [java] at
net.java.sip.communicator.service.protocol.media.CallPeerMediaHandler.setAudioStream(CallPeerMediaHandler.java:789)
    [java] at
net.java.sip.communicator.service.protocol.media.CallPeerMediaHandler.closeStream(CallPeerMediaHandler.java:418)
    [java] at
net.java.sip.communicator.service.protocol.media.CallPeerMediaHandler.close(CallPeerMediaHandler.java:403)
    [java] at
net.java.sip.communicator.service.protocol.media.MediaAwareCallPeer.setState(MediaAwareCallPeer.java:485)
    [java] at
net.java.sip.communicator.service.protocol.AbstractCallPeer.setState(AbstractCallPeer.java:435)
    [java] at
net.java.sip.communicator.impl.protocol.sip.CallPeerSipImpl.setDisconnectedState(CallPeerSipImpl.java:1616)
    [java] at
net.java.sip.communicator.impl.protocol.sip.CallPeerSipImpl.hangup(CallPeerSipImpl.java:983)
    [java] at
net.java.sip.communicator.impl.protocol.sip.OperationSetBasicTelephonySipImpl.hangupCallPeer(OperationSetBasicTelephonySipImpl.java:1674)
    [java] at
net.java.sip.communicator.impl.protocol.sip.OperationSetBasicTelephonySipImpl.hangupCallPeer(OperationSetBasicTelephonySipImpl.java:1651)
    [java] at
net.java.sip.communicator.impl.gui.main.call.CallManager$HangupCallThread.run(CallManager.java:1511)
    [java] 10:10:07.400 SCHWERWIEGEND:
impl.shutdowntimeout.ShutdownTimeout.run().80 Failed to gently shutdown.
Forcing exit.


#3

Hi damencho,

sure: I'm currently using openSuse 12.1 with the current Alsa version.
RPM packet version is: alsa-1.0.24.1-23.1.2.x86_64, which is Alsa 1.0.24,
so a current version.

Actuall it's not something like a show-stopper. IT just occured because
I had the wrong settings at first (dmix) and then I switched to default.
So I discoverd it just by chance :slight_smile: .

Updateing portaudio is a good idea, I believe you also followed the recent
discussions on the portaudio list and the proposals and tests to make it
more robust .

Best regards,
Werner

···

Am 31.12.2011 13:26, schrieb Damian Minkov:

Hi Werner,
Its strange :slight_smile: what is your os and your alsa version? We will update
portaudio soon and we must test this situation.

Regards
damencho
On Dec 31, 2011 1:27 PM, "Werner Dittmann" <Werner.Dittmann@t-online.de> > wrote:

Hi all,

after I updated my Jitsi stuff on my computer I'm rying to setup a call ro
another test client. This update (source update from repository) was the
first
after the switch to FMJ. To get the sound working I had to switch off/on
Portaudio to re-anable it. Works now. However, when selecting another
output
device (not sysdefault), for exampe "dmix", I get some messages (below)
from Jitsi
and Jitsi hangs: it cannot be stopped, I had to perform a kill -9 to really
kill it, even after Jitsi told me that if will perform a forced exit.

In particular Linix Alsa / Portaudio could have some settings that could
trigger
similar problems in other systems, thus it would be nice if Jitsi would
just
report this and not lock itself in the system. IMHO some checks are
necessary to
prevent this behaviour would be nice :slight_smile: .

Best regards and a happy new year to all the Jitsi addicts :slight_smile:

Werner

    [java] warning: The VAD has been replaced by a hack pending a complete
rewrite
    [java] 10:06:25.236 SCHWERWIEGEND:
impl.protocol.sip.OperationSetBasicTelephonySipImpl.processResponse().585
Received error: 408 Request Timeout
    [java] Unable to handle format: LINEAR, 44100.0 Hz, 16-bit, Mono,
LittleEndian, Signed
    [java] Failed to prefetch: net.sf.fmj.media.ProcessEngine@5ef72499
    [java] Error: Unable to prefetch
net.sf.fmj.media.ProcessEngine@5ef72499
    [java]
    [java] warning: The VAD has been replaced by a hack pending a complete
rewrite
    [java] Unable to handle format: LINEAR, 44100.0 Hz, 16-bit, Mono,
LittleEndian, Signed
    [java] Failed to prefetch: net.sf.fmj.media.ProcessEngine@571d4e75
    [java] Error: Unable to prefetch
net.sf.fmj.media.ProcessEngine@571d4e75
    [java]
    [java] 10:08:38.765 SCHWERWIEGEND:
impl.protocol.sip.CallPeerSipImpl.hangup().988 Error while trying to
hangup, trying to handle!
    [java] java.lang.NullPointerException
    [java] at
net.sf.fmj.media.renderer.audio.JavaSoundRenderer.close(Unknown Source)
    [java] at net.sf.fmj.media.BasicRendererModule.doClose(Unknown
Source)
    [java] at net.sf.fmj.media.PlaybackEngine.doClose(Unknown Source)
    [java] at net.sf.fmj.media.BasicController.close(Unknown Source)
    [java] at net.sf.fmj.media.BasicPlayer.doClose(Unknown Source)
    [java] at net.sf.fmj.media.BasicController.close(Unknown Source)
    [java] at
net.java.sip.communicator.impl.neomedia.device.MediaDeviceSession.disposePlayer(MediaDeviceSession.java:635)
    [java] at
net.java.sip.communicator.impl.neomedia.device.MediaDeviceSession.disposePlayer(MediaDeviceSession.java:615)
    [java] at
net.java.sip.communicator.impl.neomedia.device.MediaDeviceSession.close(MediaDeviceSession.java:342)
    [java] at

net.java.sip.communicator.impl.neomedia.device.AudioMixerMediaDevice$AudioMixerMediaDeviceSession.removeMediaStreamMediaDeviceSession(AudioMixerMediaDevice.java:716)
    [java] at
net.java.sip.communicator.impl.neomedia.device.AudioMixerMediaDevice$MediaStreamMediaDeviceSession.close(AudioMixerMediaDevice.java:860)
    [java] at
net.java.sip.communicator.impl.neomedia.MediaStreamImpl.close(MediaStreamImpl.java:556)
    [java] at
net.java.sip.communicator.impl.neomedia.AudioMediaStreamImpl.close(AudioMediaStreamImpl.java:419)
    [java] at
net.java.sip.communicator.service.protocol.media.CallPeerMediaHandler.setAudioStream(CallPeerMediaHandler.java:789)
    [java] at
net.java.sip.communicator.service.protocol.media.CallPeerMediaHandler.closeStream(CallPeerMediaHandler.java:418)
    [java] at
net.java.sip.communicator.service.protocol.media.CallPeerMediaHandler.close(CallPeerMediaHandler.java:403)
    [java] at
net.java.sip.communicator.service.protocol.media.MediaAwareCallPeer.setState(MediaAwareCallPeer.java:485)
    [java] at
net.java.sip.communicator.service.protocol.AbstractCallPeer.setState(AbstractCallPeer.java:435)
    [java] at
net.java.sip.communicator.impl.protocol.sip.CallPeerSipImpl.setDisconnectedState(CallPeerSipImpl.java:1616)
    [java] at
net.java.sip.communicator.impl.protocol.sip.CallPeerSipImpl.hangup(CallPeerSipImpl.java:983)
    [java] at
net.java.sip.communicator.impl.protocol.sip.OperationSetBasicTelephonySipImpl.hangupCallPeer(OperationSetBasicTelephonySipImpl.java:1674)
    [java] at
net.java.sip.communicator.impl.protocol.sip.OperationSetBasicTelephonySipImpl.hangupCallPeer(OperationSetBasicTelephonySipImpl.java:1651)
    [java] at
net.java.sip.communicator.impl.gui.main.call.CallManager$HangupCallThread.run(CallManager.java:1511)
    [java] 10:10:07.400 SCHWERWIEGEND:
impl.shutdowntimeout.ShutdownTimeout.run().80 Failed to gently shutdown.
Forcing exit.