[jitsi-dev] Issue while installing Jitsi Hammer


#1

Hello All,

We are trying to install "Jitsi Hammer" traffic generator for JItsi video
bridge.

We are currently using detach code:
98300d9df8d07907b5d7d666867861851966c855 on ubuntu 16.04 virtual machine
(On KVM) and facing the below errors. *Could you please guide us further ?*

è We have explicitly copied the below libraries from the master branch to
the working branch (tag : 98300d9df8d07907b5d7d666867861851966c855 ) as the
compilation was looking for the corresponding libraries.

Location : /root/git-hammer/jitsi-hammer/lib/native/linux-64/

-> libjnawtrenderer.so

-> libjnportaudio.so.1

-> libjnpulseaudio.so

*è Current Error :*

root@jitsi-hammer-volume:~/git-hammer/jitsi-hammer# ./jitsi-hammer.sh
-BOSHuri http://jitsi.example.com:5280

/root/git-hammer/jitsi-hammer/jitsi-hammer.jar:/root/git-hammer/jitsi-hammer/lib/args4j-2.0.21.jar:/root/git-hammer/jitsi-hammer/lib/bccontrib-1.0-SNAPSHOT.jar:/root/git-hammer/jitsi-hammer/lib/bcpkix-jdk15on-151.jar:/root/git-hammer/jitsi-hammer/lib/bcprov-jdk15on-151.jar:/root/git-hammer/jitsi-hammer/lib/commons-logging-1.1.1.jar:/root/git-hammer/jitsi-hammer/lib/commons-math3-3.3.jar:/root/git-hammer/jitsi-hammer/lib/felix.jar:/root/git-hammer/jitsi-hammer/lib/fmj.jar:/root/git-hammer/jitsi-hammer/lib/httpclient-4.3.3.jar:/root/git-hammer/jitsi-hammer/lib/httpcore-4.3.2.jar:/root/git-hammer/jitsi-hammer/lib/ice4j.jar:/root/git-hammer/jitsi-hammer/lib/jain-sdp.jar:/root/git-hammer/jitsi-hammer/lib/jbosh-0.8.0.jar:/root/git-hammer/jitsi-hammer/lib/jitsi-android-osgi.jar:/root/git-hammer/jitsi-hammer/lib/jitsi-lgpl-dependencies.jar:/root/git-hammer/jitsi-hammer/lib/jna.jar:/root/git-hammer/jitsi-hammer/lib/json-simple-1.1.1.jar:/root/git-hammer/jitsi-hammer/lib/jspeex.jar:/root/git-hammer/jitsi-hammer/lib/kxml2-2.3.0.jar:/root/git-hammer/jitsi-hammer/lib/libjitsi.jar:/root/git-hammer/jitsi-hammer/lib/OrangeExtensions.jar:/root/git-hammer/jitsi-hammer/lib/protocol-jabber.jar:/root/git-hammer/jitsi-hammer/lib/protocol.jar:/root/git-hammer/jitsi-hammer/lib/protocol-media.jar:/root/git-hammer/jitsi-hammer/lib/sc-launcher.jar:/root/git-hammer/jitsi-hammer/lib/sdes4j-1.1.1.jar:/root/git-hammer/jitsi-hammer/lib/smack-bosh-4.0.7.jar:/root/git-hammer/jitsi-hammer/lib/smack-core-4.0.7.jar:/root/git-hammer/jitsi-hammer/lib/smack-debug-4.0.7.jar:/root/git-hammer/jitsi-hammer/lib/smack-extensions-4.0.7.jar:/root/git-hammer/jitsi-hammer/lib/util.jar:/root/git-hammer/jitsi-hammer/lib/xlightweb-2.5.jar:/root/git-hammer/jitsi-hammer/lib/xpp3-1.1.4c.jar:/root/git-hammer/jitsi-hammer/lib/zrtp4j-light.jar

/root/git-hammer/jitsi-hammer/lib/native/linux-64

14:55:30.463 WARNING: [1]
org.jitsi.impl.neomedia.device.DeviceSystem.warn() Failed to initialize
org.jitsi.impl.neomedia.device.PulseAudioSystem

java.lang.IllegalStateException: context.state

        at
org.jitsi.impl.neomedia.device.PulseAudioSystem.createContext(PulseAudioSystem.java:193)

        at
org.jitsi.impl.neomedia.device.PulseAudioSystem.getContext(PulseAudioSystem.java:500)

        at
org.jitsi.impl.neomedia.device.PulseAudioSystem.doInitialize(PulseAudioSystem.java:364)

        at
org.jitsi.impl.neomedia.device.DeviceSystem.initialize(DeviceSystem.java:629)

        at
org.jitsi.impl.neomedia.device.DeviceSystem.invokeDeviceSystemInitialize(DeviceSystem.java:432)

        at
org.jitsi.impl.neomedia.device.DeviceSystem.invokeDeviceSystemInitialize(DeviceSystem.java:335)

        at
org.jitsi.impl.neomedia.device.DeviceSystem.<init>(DeviceSystem.java:480)

        at
org.jitsi.impl.neomedia.device.AudioSystem.<init>(AudioSystem.java:195)

        at
org.jitsi.impl.neomedia.device.PulseAudioSystem.<init>(PulseAudioSystem.java:119)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)

        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

        at java.lang.Class.newInstance(Class.java:442)

        at
org.jitsi.impl.neomedia.device.DeviceSystem.initializeDeviceSystems(DeviceSystem.java:275)

        at
org.jitsi.impl.neomedia.device.DeviceSystem.initializeDeviceSystems(DeviceSystem.java:221)

        at
org.jitsi.impl.neomedia.device.DeviceSystem.initializeDeviceSystems(DeviceSystem.java:151)

        at
org.jitsi.impl.neomedia.device.DeviceConfiguration.<init>(DeviceConfiguration.java:337)

        at
org.jitsi.impl.neomedia.MediaServiceImpl.<init>(MediaServiceImpl.java:150)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)

        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

       at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

        at java.lang.Class.newInstance(Class.java:442)

        at
org.jitsi.impl.libjitsi.LibJitsiImpl.getService(LibJitsiImpl.java:142)

        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
org.jitsi.hammer.utils.MediaDeviceChooser.<init>(MediaDeviceChooser.java:84)

        at
org.jitsi.hammer.utils.CmdLineArguments.getMediaDeviceChooser(CmdLineArguments.java:357)

        at org.jitsi.hammer.Main.main(Main.java:271)

ALSA lib confmisc.c:768:(parse_card) cannot find card '0'

ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_card_driver
returned error: No such file or directory

ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings

ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_concat
returned error: No such file or directory

ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name

ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer
returned error: No such file or directory

ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: No such file or
directory

ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM sysdefault

ALSA lib confmisc.c:768:(parse_card) cannot find card '0'

ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_card_driver
returned error: No such file or directory

ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings

ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_concat
returned error: No such file or directory

ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name

ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer
returned error: No such file or directory

ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: No such file or
directory

ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM sysdefault

ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front

ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear

ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe

ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side

ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21

ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21

ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40

ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41

ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50

ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51

ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71

ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958

ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958

ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958

ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi

ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi

ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem

ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem

ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline

ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.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 confmisc.c:768:(parse_card) cannot find card '0'

ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_card_driver
returned error: No such file or directory

ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings

ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_concat
returned error: No such file or directory

ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name

ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer
returned error: No such file or directory

ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: No such file or
directory

ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM default

ALSA lib confmisc.c:768:(parse_card) cannot find card '0'

ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_card_driver
returned error: No such file or directory

ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings

ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_concat
returned error: No such file or directory

ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name

ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer
returned error: No such file or directory

ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: No such file or
directory

ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM default

ALSA lib confmisc.c:768:(parse_card) cannot find card '0'

ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_card_driver
returned error: No such file or directory

ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings

ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_concat
returned error: No such file or directory

ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name

ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer
returned error: No such file or directory

ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: No such file or
directory

ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM dmix

ALSA lib confmisc.c:768:(parse_card) cannot find card '0'

ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_card_driver
returned error: No such file or directory

ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings

ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_concat
returned error: No such file or directory

ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name

ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer
returned error: No such file or directory

ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: No such file or
directory

ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM dmix

java: src/common/pa_front.c:204: InitializeHostApis: Assertion
`hostApi->info.defaultInputDevice < hostApi->info.deviceCount' failed.

./jitsi-hammer.sh: line 48: 15869 Aborted (core dumped)
LD_LIBRARY_PATH=$libs java -Djava.library.path=$libs
-Djava.util.logging.config.file=$logging_config
-Dnet.java.sip.communicator.SC_HOME_DIR_LOCATION=$SCRIPT_DIR
-Dnet.java.sip.communicator.SC_HOME_DIR_NAME=.jitsi-hammer -cp $classpath
$mainClass $@

root@jitsi-hammer-volume:~/git-hammer/jitsi-hammer# pwd

/root/git-hammer/jitsi-hammer

root@jitsi-hammer-volume:~/git-hammer/jitsi-hammer# aplay -l

aplay: device_list:268: *no soundcards found...*

Compilation Command : ./jitsi-hammer.sh -BOSHuri
http://jitsi.example.com:5280

<http://jitsi.example.com:5280>

*Appreciate a quick reply* <http://jitsi.example.com:5280>

<http://jitsi.example.com:5280>

*Regards,* <http://jitsi.example.com:5280>

*Ravi C*
<http://jitsi.example.com:5280>