Closed ninioperdido closed 10 years ago
Hey @Haerezis , we have a fake device in the jigasi server, so maybe you can reuse that here if you need to.
@ninioperdido I don't think it's a problem with jitsi-hammer but more like a libjitsi problem. It's weird, because I've tried jitsi-hammer in my own server (a dedibox from online.net) that doesn't have a sound card (at least I think) and jitsi-hammer worked. You've put "..." in your message, can you send me the full output you get ? By the way, do you have a sound driver installed in your computer? like ALSA?
@emcho I've tried to look for that device in the jigasi github but I didn't found it, can you give a link? All I found about a device is this part of code:
defaults.put(
DeviceConfiguration.PROP_AUDIO_SYSTEM,
AudioSystem.LOCATOR_PROTOCOL_AUDIOSILENCE);
which, if I understand correctly, set the audiodevice as default audio device, but I already use the audiodevice in jitsi-hammer.
Of course @Haerezis, this is the full log:
root@jitsi-hammer:~/jitsi-hammer# ./jitsi-hammer.sh -audiortpdump ./ressources/rtp_opus.rtpdump -videortpdump ./ressources/rtp_vp8.rtpdump -users 5 -room TestHammer -MUCdomain conference.jitsi.gnuardo.com -XMPPdomain jitsi.gnuardo.com -XMPPhost jitsi.gnuardo.com
19:23:43.372 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:141)
at org.jitsi.impl.neomedia.device.PulseAudioSystem.getContext(PulseAudioSystem.java:427)
at org.jitsi.impl.neomedia.device.PulseAudioSystem.doInitialize(PulseAudioSystem.java:290)
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:76)
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.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: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: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:73)
at org.jitsi.hammer.CmdLineArguments.getMediaDeviceChooser(CmdLineArguments.java:210)
at org.jitsi.hammer.Main.main(Main.java:277)
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4241:(_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:4241:(_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:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM sysdefault
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4241:(_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:4241:(_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:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM sysdefault
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4241:(_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:4241:(_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:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4241:(_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:4241:(_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:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4241:(_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:4241:(_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:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM dmix
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4241:(_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:4241:(_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:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM dmix
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f57c59ac0f8, pid=21931, tid=140015233021696
#
# JRE version: OpenJDK Runtime Environment (7.0_65-b32) (build 1.7.0_65-b32)
# Java VM: OpenJDK 64-Bit Server VM (24.65-b04 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libjnportaudio.so+0xd0f8] Pa_GetDeviceInfo+0x58
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /root/jitsi-hammer/hs_err_pid21931.log
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
# http://icedtea.classpath.org/bugzilla
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
./jitsi-hammer.sh: line 38: 21931 Aborted java -Djava.library.path=$libs -Djava.util.logging.config.file=$logging_config -cp $classpath $mainClass $@
The server is a plain Debian Wheezy Image from RackSpace. You're right if I install alsa-core and with the alsa service previously started, everything seems to work:
root@jitsi-hammer:~/jitsi-hammer# /etc/init.d/alsa-utils start
[ ok ] Setting up ALSA...done.
root@jitsi-hammer:~/jitsi-hammer# ./jitsi-hammer.sh -audiortpdump ./ressources/rtp_opus.rtpdump -videortpdump ./ressources/rtp_vp8.rtpdump -users 5 -room TestHammer -MUCdomain conference.jitsi.gnuardo.com -XMPPdomain jitsi.gnuardo.com -XMPPhost jitsi.gnuardo.com
19:31:04.910 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:141)
at org.jitsi.impl.neomedia.device.PulseAudioSystem.getContext(PulseAudioSystem.java:427)
at org.jitsi.impl.neomedia.device.PulseAudioSystem.doInitialize(PulseAudioSystem.java:290)
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:76)
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.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: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: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:73)
at org.jitsi.hammer.CmdLineArguments.getMediaDeviceChooser(CmdLineArguments.java:210)
at org.jitsi.hammer.Main.main(Main.java:277)
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4241:(_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:4241:(_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:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM sysdefault
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4241:(_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:4241:(_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:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM sysdefault
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2217:(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:4241:(_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:4241:(_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:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4241:(_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:4241:(_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:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4241:(_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:4241:(_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:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM dmix
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4241:(_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:4241:(_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:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM dmix
19:31:04.999 SEVERE: [1] 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:112)
at org.jitsi.impl.neomedia.jmfext.media.renderer.audio.PulseAudioRenderer.<init>(PulseAudioRenderer.java:92)
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:1034)
at org.jitsi.impl.neomedia.device.DeviceConfiguration.<init>(DeviceConfiguration.java:355)
at org.jitsi.impl.neomedia.MediaServiceImpl.<init>(MediaServiceImpl.java:150)
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: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:73)
at org.jitsi.hammer.CmdLineArguments.getMediaDeviceChooser(CmdLineArguments.java:210)
at org.jitsi.hammer.Main.main(Main.java:277)
19:31:05.021 SEVERE: [1] org.jitsi.impl.neomedia.device.DeviceConfiguration.error() Failed to register custom Renderer org.jitsi.impl.neomedia.jmfext.media.renderer.video.JAWTRenderer with JMF.
java.lang.UnsatisfiedLinkError: /root/jitsi-hammer/lib/native/linux-64/libjnawtrenderer.so: /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/../lib/amd64/libjawt.so: symbol awt_Unlock, version SUNWprivate_1.1 not defined in file libmawt.so with link time reference
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1880)
at java.lang.Runtime.loadLibrary0(Runtime.java:849)
at java.lang.System.loadLibrary(System.java:1088)
at org.jitsi.impl.neomedia.jmfext.media.renderer.video.JAWTRenderer.<clinit>(JAWTRenderer.java:90)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at org.jitsi.impl.neomedia.device.DeviceConfiguration.registerCustomRenderers(DeviceConfiguration.java:1034)
at org.jitsi.impl.neomedia.device.DeviceConfiguration.<init>(DeviceConfiguration.java:355)
at org.jitsi.impl.neomedia.MediaServiceImpl.<init>(MediaServiceImpl.java:150)
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: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:73)
at org.jitsi.hammer.CmdLineArguments.getMediaDeviceChooser(CmdLineArguments.java:210)
at org.jitsi.hammer.Main.main(Main.java:277)
Exception in thread "Thread-1" java.lang.NullPointerException
at org.jitsi.impl.neomedia.transform.zrtp.ZrtpFortunaEntropyGatherer$GatherAudio.run(ZrtpFortunaEntropyGatherer.java:267)
Exception in thread "FMJ Thread: net.sf.fmj.media.ProcessEngine@55f74e28[ net.sf.fmj.media.ProcessEngine@55f74e28 ] ( realizeThread)" java.lang.UnsatisfiedLinkError: /root/jitsi-hammer/lib/native/linux-64/libjnvpx.so: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /root/jitsi-hammer/lib/native/linux-64/libjnvpx.so)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1880)
at java.lang.Runtime.loadLibrary0(Runtime.java:849)
at java.lang.System.loadLibrary(System.java:1088)
at org.jitsi.impl.neomedia.codec.video.VPX.<clinit>(VPX.java:956)
at org.jitsi.impl.neomedia.codec.video.vp8.VPXDecoder.doOpen(VPXDecoder.java:125)
at org.jitsi.impl.neomedia.codec.AbstractCodec2.open(AbstractCodec2.java:330)
at net.sf.fmj.media.BasicFilterModule.doRealize(Unknown Source)
at net.sf.fmj.media.PlaybackEngine.buildTrackFromGraph(Unknown Source)
at net.sf.fmj.media.ProcessEngine$ProcGraphBuilder.buildTrackFromGraph(Unknown Source)
at net.sf.fmj.media.ProcessEngine$ProcGraphBuilder.buildCustomGraph(Unknown Source)
at net.sf.fmj.media.ProcessEngine$ProcGraphBuilder.buildGraph(Unknown Source)
at net.sf.fmj.media.ProcessEngine$ProcTControl.buildTrack(Unknown Source)
at net.sf.fmj.media.PlaybackEngine.doRealize1(Unknown Source)
at net.sf.fmj.media.ProcessEngine.doRealize(Unknown Source)
at net.sf.fmj.media.RealizeWorkThread.process(Unknown Source)
at net.sf.fmj.media.StateTransitionWorkThread.run(Unknown Source)
Exception in thread "FMJ Thread: net.sf.fmj.media.ProcessEngine@687303b6[ net.sf.fmj.media.ProcessEngine@687303b6 ] ( realizeThread)" java.lang.NoClassDefFoundError: Could not initialize class org.jitsi.impl.neomedia.codec.video.VPX
at org.jitsi.impl.neomedia.codec.video.vp8.VPXDecoder.doOpen(VPXDecoder.java:125)
at org.jitsi.impl.neomedia.codec.AbstractCodec2.open(AbstractCodec2.java:330)
at net.sf.fmj.media.BasicFilterModule.doRealize(Unknown Source)
at net.sf.fmj.media.PlaybackEngine.buildTrackFromGraph(Unknown Source)
at net.sf.fmj.media.ProcessEngine$ProcGraphBuilder.buildTrackFromGraph(Unknown Source)
at net.sf.fmj.media.ProcessEngine$ProcGraphBuilder.buildCustomGraph(Unknown Source)
at net.sf.fmj.media.ProcessEngine$ProcGraphBuilder.buildGraph(Unknown Source)
at net.sf.fmj.media.ProcessEngine$ProcTControl.buildTrack(Unknown Source)
at net.sf.fmj.media.PlaybackEngine.doRealize1(Unknown Source)
at net.sf.fmj.media.ProcessEngine.doRealize(Unknown Source)
at net.sf.fmj.media.RealizeWorkThread.process(Unknown Source)
at net.sf.fmj.media.StateTransitionWorkThread.run(Unknown Source)
19:31:18.684 WARNING: [403] org.jitsi.impl.neomedia.rtp.translator.PushSourceStreamImpl.warn() Discarded an RTP packet because the read queue is full.
19:31:18.686 WARNING: [403] org.jitsi.impl.neomedia.rtp.translator.PushSourceStreamImpl.warn() Discarded an RTP packet because the read queue is full.
19:31:18.688 WARNING: [403] org.jitsi.impl.neomedia.rtp.translator.PushSourceStreamImpl.warn() Discarded an RTP packet because the read queue is full.
19:31:18.688 WARNING: [403] org.jitsi.impl.neomedia.rtp.translator.PushSourceStreamImpl.warn() Discarded an RTP packet because the read queue is full.
19:31:18.688 WARNING: [403] org.jitsi.impl.neomedia.rtp.translator.PushSourceStreamImpl.warn() Discarded an RTP packet because the read queue is full.
19:31:18.689 WARNING: [403] org.jitsi.impl.neomedia.rtp.translator.PushSourceStreamImpl.warn() Discarded an RTP packet because the read queue is full.
19:31:18.689 WARNING: [403] org.jitsi.impl.neomedia.rtp.translator.PushSourceStreamImpl.warn() Discarded an RTP packet because the read queue is full.
19:31:18.689 WARNING: [403] org.jitsi.impl.neomedia.rtp.translator.PushSourceStreamImpl.warn() Discarded an RTP packet because the read queue is full.
19:31:18.690 WARNING: [403] org.jitsi.impl.neomedia.rtp.translator.PushSourceStreamImpl.warn() Discarded an RTP packet because the read queue is full.
19:31:18.695 WARNING: [403] org.jitsi.impl.neomedia.rtp.translator.PushSourceStreamImpl.warn() Discarded an RTP packet because the read queue is full.
19:31:18.700 WARNING: [403] org.jitsi.impl.neomedia.rtp.translator.PushSourceStreamImpl.warn() Discarded an RTP packet because the read queue is full.
19:31:18.701 WARNING: [403] org.jitsi.impl.neomedia.rtp.translator.PushSourceStreamImpl.warn() Discarded an RTP packet because the read queue is full.
19:31:18.704 WARNING: [403] org.jitsi.impl.neomedia.rtp.translator.PushSourceStreamImpl.warn() Discarded an RTP packet because the read queue is full.
19:31:18.704 WARNING: [403] org.jitsi.impl.neomedia.rtp.translator.PushSourceStreamImpl.warn() Discarded an RTP packet because the read queue is full.
Exception in thread "FMJ Thread: net.sf.fmj.media.ProcessEngine@1bc1f9f9[ net.sf.fmj.media.ProcessEngine@1bc1f9f9 ] ( realizeThread)" java.lang.NoClassDefFoundError: Could not initialize class org.jitsi.impl.neomedia.codec.video.VPX
at org.jitsi.impl.neomedia.codec.video.vp8.VPXDecoder.doOpen(VPXDecoder.java:125)
at org.jitsi.impl.neomedia.codec.AbstractCodec2.open(AbstractCodec2.java:330)
at net.sf.fmj.media.BasicFilterModule.doRealize(Unknown Source)
at net.sf.fmj.media.PlaybackEngine.buildTrackFromGraph(Unknown Source)
at net.sf.fmj.media.ProcessEngine$ProcGraphBuilder.buildTrackFromGraph(Unknown Source)
at net.sf.fmj.media.ProcessEngine$ProcGraphBuilder.buildCustomGraph(Unknown Source)
at net.sf.fmj.media.ProcessEngine$ProcGraphBuilder.buildGraph(Unknown Source)
at net.sf.fmj.media.ProcessEngine$ProcTControl.buildTrack(Unknown Source)
at net.sf.fmj.media.PlaybackEngine.doRealize1(Unknown Source)
at net.sf.fmj.media.ProcessEngine.doRealize(Unknown Source)
at net.sf.fmj.media.RealizeWorkThread.process(Unknown Source)
at net.sf.fmj.media.StateTransitionWorkThread.run(Unknown Source)
If we are using rtpaudiodump (at least in theory) we are not generating silence, and because that, we shouldn't need the sound card or alsa for anything, I don't know if I'm right :). Anyway I'm totally fine using alsa as a dependency for jitsi-hammer :)
Thanks for such a quick reply!!!
You're normally right, because jitsi-hammer either generate silence or read rtpdump file, it shouldn't need ALSA or any other audio driver. But my guess is that libjitsi need an audio driver to check if an sound card is available or not, and other initialization shenanigans.
Even when jitsi-hammer generate silence, it doesn't use a sound card (just merely returning an array full of 0, not reading or using a sound card).
If I understand correctly, the problem is solved by installing alsa-core, so can I close the issue? Let me know and have a nice day !
Yes of course you can close it. If you want (and for the sake of other people trying to do the same) :) Will be ok if we modify the README.md to include a note about that dependency on alsa.
BTW, works very well also inside a LXC/Docker container.
OK I'll include a note in the readme. Thanks for the suggestion.
I can't seem to get the hammer running in a Docker container because of the lack of a sound device. I've installed alsa-base and alsa-utils and started the alsa-utils service before running the hammer.
I see the same stacktrace as the first one in ninioperdido's post above. Any ideas? How did you run your Docker container? 22:09:15.641 WARNING: [1] org.jitsi.impl.neomedia.device.DeviceSystem.warn() Failed to initialize org.jitsi.impl.neomedia.device.PulseAudioSystem java.lang.IllegalStateException: context.state
Hi Everybody! Are there any configuration option in order to allow jitsi-hammer to run without a hardware sound card?
Using audiortpdump and videortpdump doesn't seems to help:
Thanks for all!