[jitsi-dev] Problems running libjitsi examples - no audio/video


#1

Hi,

I am trying to run the AVTransmit AVReceive examples on a 64bit Ubuntu box
running within VirtualBox. The host OS is MacOs.

When I run the examples the following is written to the log. There is no
audio or video being transmitted. The green webcam light does not switch
on.\

I am using the source cloned from git.

Is the issue due to the code running in a virtual machine on a macos host.

Cheers,
Ian.

ianhudson@ianhudson-VirtualBox:~/Development/libjitsi$ ant run-example -
Drun.example.name=AVTransmit2
-Drun.example.arg.line="--remote-host=127.0.0.1 --remote-port-base=10000
--local-port-base=10001"
Buildfile: /home/ianhudson/Development/libjitsi/build.xml
[maven-artifact:dependencies] [WARNING] POM for
'org.osgi:org.osgi.core:pom:4.3.1:compile' is invalid.
[maven-artifact:dependencies]
[maven-artifact:dependencies] Its dependencies (if any) will NOT be
available to the current build.
[maven-artifact:dependencies] [WARNING] POM for
'org.osgi:org.osgi.core:pom:4.3.1:compile' is invalid.
[maven-artifact:dependencies]
[maven-artifact:dependencies] Its dependencies (if any) will NOT be
available to the current build.

compile:
    [javac] /home/ianhudson/Development/libjitsi/build.xml:64: warning:
'includeantruntime' was not set, defaulting to build.sysclasspath=last; set
to false for repeatable builds

run-example:
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: Failed to initialize LibJitsi backend
org.jitsi.impl.libjitsi.LibJitsiOSGiImpl. (Exception stack trace follows.)
Will try an alternative.
     [java] java.lang.IllegalStateException: FrameworkUtil.getBundle
     [java] at
org.jitsi.impl.libjitsi.LibJitsiOSGiImpl.<init>(LibJitsiOSGiImpl.java:46)
     [java] at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     [java] at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
     [java] at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
     [java] at
java.lang.reflect.Constructor.newInstance(Constructor.java:422)
     [java] at java.lang.Class.newInstance(Class.java:442)
     [java] at org.jitsi.service.libjitsi.LibJitsi.start(LibJitsi.java:247)
     [java] at org.jitsi.service.libjitsi.LibJitsi.start(LibJitsi.java:180)
     [java] at org.jitsi.examples.AVTransmit2.main(AVTransmit2.java:341)
     [java]
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: Successfully started LibJitsi using as implementation:
org.jitsi.impl.libjitsi.LibJitsiImpl
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: java.runtime.name=Java(TM) SE Runtime Environment
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO:
sun.boot.library.path=/home/ianhudson/Development/jdk1.8.0_73/jre/lib/amd64
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: java.vm.version=25.73-b02
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: java.vm.vendor=Oracle Corporation
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: java.vendor.url=http://java.oracle.com/
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: path.separator=:
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: java.vm.name=Java HotSpot(TM) 64-Bit Server VM
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: file.encoding.pkg=sun.io
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: user.country=GB
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: sun.java.launcher=SUN_STANDARD
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: sun.os.patch.level=unknown
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: java.vm.specification.name=Java Virtual Machine
Specification
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: user.dir=/home/ianhudson/Development/libjitsi
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: java.runtime.version=1.8.0_73-b02
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO:
java.endorsed.dirs=/home/ianhudson/Development/jdk1.8.0_73/jre/lib/endorsed
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: os.arch=amd64
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: java.io.tmpdir=/tmp
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: line.separator=
     [java]
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: net.sf.fmj.utility.JmfRegistry.disableLoad=true
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: java.vm.specification.vendor=Oracle Corporation
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: os.name=Linux
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: sun.jnu.encoding=UTF-8
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO:
java.library.path=/home/ianhudson/Development/libjitsi/lib/native/linux-x86-64:/home/ianhudson/Development/libjitsi/lib/native/linux-x86:/home/ianhudson/Development/libjitsi/lib/native/darwin:/home/ianhudson/Development/libjitsi/lib/native/win32-x86-64:/home/ianhudson/Development/libjitsi/lib/native/win32-x86
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: java.specification.name=Java Platform API Specification
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: java.class.version=52.0
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO:
org.jitsi.service.audionotifier.AudioNotifierService=org.jitsi.impl.neomedia.notify.AudioNotifierServiceImpl
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: sun.management.compiler=HotSpot 64-Bit Tiered Compilers
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: os.version=3.19.0-51-generic
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: user.home=/home/ianhudson
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: user.timezone=Europe/London
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: java.awt.printerjob=sun.print.PSPrinterJob
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: file.encoding=UTF-8
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: java.specification.version=1.8
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO:
java.class.path=/home/ianhudson/.m2/repository/ch/imvs/sdes4j/1.1.3/sdes4j-1.1.3.jar:/home/ianhudson/.m2/repository/commons-codec/commons-codec/1.6/commons-codec-1.6.jar:/home/ianhudson/.m2/repository/com/googlecode/json-simple/json-simple/1.1.1/json-simple-1.1.1.jar:/home/ianhudson/.m2/repository/javax/sdp/jain-sdp/1.0-jitsi-1-SNAPSHOT/jain-sdp-1.0-jitsi-1-SNAPSHOT.jar:/home/ianhudson/.m2/repository/net/java/dev/jna/jna/4.1.0/jna-4.1.0.jar:/home/ianhudson/.m2/repository/org/bouncycastle/bcpkix-jdk15on/1.51/bcpkix-jdk15on-1.51.jar:/home/ianhudson/.m2/repository/org/bouncycastle/bcprov-jdk15on/1.51/bcprov-jdk15on-1.51.jar:/home/ianhudson/.m2/repository/org/jitsi/bccontrib/1.0/bccontrib-1.0.jar:/home/ianhudson/.m2/repository/org/jitsi/fmj/1.0-SNAPSHOT/fmj-1.0-SNAPSHOT.jar:/home/ianhudson/.m2/repository/org/jitsi/ice4j/1.0-SNAPSHOT/ice4j-1.0-SNAPSHOT.jar:/home/ianhudson/.m2/repository/org/bitlet/weupnp/0.1.4/weupnp-0.1.4.jar:/home/ianhudson/.m2/repository/org/jitsi/jitsi-lgpl-dependencies/1.0-SNAPSHOT/jitsi-lgpl-dependencies-1.0-SNAPSHOT.jar:/home/ianhudson/.m2/repository/org/jitsi/zrtp4j-light/3.2.0-jitsi-1-SNAPSHOT/zrtp4j-light-3.2.0-jitsi-1-SNAPSHOT.jar:/home/ianhudson/.m2/repository/org/osgi/org.osgi.core/4.3.1/org.osgi.core-4.3.1.jar:/home/ianhudson/Development/libjitsi/classes
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: user.name=ianhudson
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: java.vm.specification.version=1.8
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: sun.java.command=org.jitsi.examples.AVTransmit2
--remote-host=127.0.0.1 --remote-port-base=10000 --local-port-base=10001
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: java.home=/home/ianhudson/Development/jdk1.8.0_73/jre
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: sun.arch.data.model=64
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: user.language=en
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: java.specification.vendor=Oracle Corporation
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: net.sf.fmj.utility.JmfRegistry.disableCommit=true
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: awt.toolkit=sun.awt.X11.XToolkit
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: java.vm.info=mixed mode
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: java.version=1.8.0_73
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO:
java.ext.dirs=/home/ianhudson/Development/jdk1.8.0_73/jre/lib/ext:/usr/java/packages/lib/ext
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO:
sun.boot.class.path=/home/ianhudson/Development/jdk1.8.0_73/jre/lib/resources.jar:/home/ianhudson/Development/jdk1.8.0_73/jre/lib/rt.jar:/home/ianhudson/Development/jdk1.8.0_73/jre/lib/sunrsasign.jar:/home/ianhudson/Development/jdk1.8.0_73/jre/lib/jsse.jar:/home/ianhudson/Development/jdk1.8.0_73/jre/lib/jce.jar:/home/ianhudson/Development/jdk1.8.0_73/jre/lib/charsets.jar:/home/ianhudson/Development/jdk1.8.0_73/jre/lib/jfr.jar:/home/ianhudson/Development/jdk1.8.0_73/jre/classes
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: java.vendor=Oracle Corporation
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: file.separator=/
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: java.vendor.url.bug=http://bugreport.sun.com/bugreport/
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: sun.io.unicode.encoding=UnicodeLittle
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: sun.cpu.endian=little
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: sun.desktop=gnome
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: sun.cpu.isalist=
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: Normal classloader
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: failed to find jitsi-defaults.properties with class
loader, will continue without it.
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: Normal classloader
     [java] Feb 24, 2016 10:01:35 AM org.jitsi.util.Logger info
     [java] INFO: failed to find jitsi-default-overrides.properties with
class loader, will continue without it.
     [java] Feb 24, 2016 10:01:36 AM org.jitsi.util.Logger info
     [java] INFO: Initializing audio devices
     [java] ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open
slave
     [java] ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM
cards.pcm.rear
     [java] ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM
cards.pcm.center_lfe
     [java] ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM
cards.pcm.side
     [java] bt_audio_service_open: connect() failed: Connection refused
(111)
     [java] bt_audio_service_open: connect() failed: Connection refused
(111)
     [java] bt_audio_service_open: connect() failed: Connection refused
(111)
     [java] bt_audio_service_open: connect() failed: Connection refused
(111)
     [java] ALSA lib pcm_dmix.c:961:(snd_pcm_dmix_open) The dmix plugin
supports only playback stream
     [java] ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open
slave
     [java] Feb 24, 2016 10:01:36 AM org.jitsi.util.Logger info
     [java] INFO: Initializing video devices
     [java] Feb 24, 2016 10:01:36 AM org.jitsi.util.Logger info
     [java] INFO: Webcam available resolution for VirtualBox Webcam -
FaceTime HD (/dev/video0):1280x720
     [java] Feb 24, 2016 10:01:36 AM org.jitsi.util.Logger info
     [java] INFO: Looking for configured audio devices.
     [java] Feb 24, 2016 10:01:36 AM org.jitsi.util.Logger info
     [java] INFO: Scanning for configured Video Devices.
     [java] Feb 24, 2016 10:01:36 AM org.jitsi.util.Logger info
     [java] INFO: Found VirtualBox Webcam - FaceTime HD (/dev/video0) as a
AVFRAME, class org.jitsi.impl.neomedia.codec.video.AVFrame video capture
device.
     [java] Exception in thread "main" java.lang.NullPointerException:
device
     [java] at
org.jitsi.impl.neomedia.MediaServiceImpl.createMediaStream(MediaServiceImpl.java:409)
     [java] at
org.jitsi.impl.neomedia.MediaServiceImpl.createMediaStream(MediaServiceImpl.java:364)
     [java] at
org.jitsi.impl.neomedia.MediaServiceImpl.createMediaStream(MediaServiceImpl.java:330)
     [java] at
org.jitsi.impl.neomedia.MediaServiceImpl.createMediaStream(MediaServiceImpl.java:298)
     [java] at org.jitsi.examples.AVTransmit2.start(AVTransmit2.java:120)
     [java] at org.jitsi.examples.AVTransmit2.main(AVTransmit2.java:351)
     [java] Feb 24, 2016 10:01:39 AM org.jitsi.util.Logger info
     [java] INFO: GatherEntropy got: 176400 bytes