[jitsi-users] Java Runtime Environment fatal error in both Jitsi application and Libjitsi library (AVTransmit2)


#1

I am trying to run your program "AVReceive2" without ant by manually
specifying the port number into the source code, and I am getting all
these errors:

WARNING: Codec org.jitsi.impl.neomedia.codec.audio.opus.JNIDecoder is
NOT successfully registered
java.lang.UnsatisfiedLinkError: no jnopus in java.library.path

In order to use opus and the rest of the codecs which depend on JNI
libraries you need to specify the directory with the library files. You
can do this by adding '-Djava.library.path=' to the java arguments.

Boris

I am having a very peculiar problem now. My java version is:
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

My Ubuntu version is:
Ubuntu 14.04 LTS

Before I included the native libraries, I was able to transmit sound, not
video, by including the following code in my AVTransmit2 example and
catching an IllegalArgumentException for video transmission device:

           MediaStream mediaStream =
mediaService.createMediaStream(device); // device direction is recvonly.
            try {
                mediaStream.setDirection(MediaDirection.SENDONLY); //
illegal argument exception for video.
            } catch (IllegalArgumentException e) {
                e.printStackTrace();
                Application.printerr("The specified direction is NOT in
accord with the direction of the MediaDevice of this (MediaStreamImpl)
instance.");
                mediaStream.setDirection(MediaDirection.INACTIVE);
            }

Now that native libraries are included, a red light next to my webcam turns
on, as it always does when an application is using my laptop's
built-in-webcam and no IllegalArgumentException is triggered on MediaDevice
direction (device direction is sendrecv, no IllegalArgumentException on "
mediaStream.setDirection(MediaDirection.SENDONLY)"). But then, when I run
AVReceive2 and then AVTransmit2, I get the following error from AVTransmit2
(full printout)

run:
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: Failed to initialize LibJitsi backend
org.jitsi.impl.libjitsi.LibJitsiOSGiImpl. (Exception stack trace follows.)
Will try an alternative.
java.lang.IllegalStateException: FrameworkUtil.getBundle
at org.jitsi.impl.libjitsi.LibJitsiOSGiImpl.<init>(LibJitsiOSGiImpl.java:37)
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:422)
at java.lang.Class.newInstance(Class.java:442)
at org.jitsi.service.libjitsi.LibJitsi.start(LibJitsi.java:238)
at org.jitsi.service.libjitsi.LibJitsi.start(LibJitsi.java:171)
at john.JohnTransmit.main(JohnTransmit.java:315)

May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: Successfully started LibJitsi using as implementation:
org.jitsi.impl.libjitsi.LibJitsiImpl
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: java.runtime.name=Java(TM) SE Runtime Environment
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: sun.boot.library.path=/usr/local/jdk1.8.0_45/jre/lib/amd64
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: java.vm.version=25.45-b02
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: java.vm.vendor=Oracle Corporation
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: java.vendor.url=http://java.oracle.com/
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: path.separator=:
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: java.vm.name=Java HotSpot(TM) 64-Bit Server VM
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: file.encoding.pkg=sun.io
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: user.country=US
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: sun.java.launcher=SUN_STANDARD
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: sun.os.patch.level=unknown
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: java.vm.specification.name=Java Virtual Machine Specification
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: user.dir=/home/johnmichaelreed/NetBeansProjects/SendRecieve2
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: java.runtime.version=1.8.0_45-b14
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: java.endorsed.dirs=/usr/local/jdk1.8.0_45/jre/lib/endorsed
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: os.arch=amd64
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: java.io.tmpdir=/tmp
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: line.separator=

May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: net.sf.fmj.utility.JmfRegistry.disableLoad=true
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: java.vm.specification.vendor=Oracle Corporation
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: os.name=Linux
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: sun.jnu.encoding=UTF-8
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO:
java.library.path=/home/johnmichaelreed/Desktop/Dropbox/Libjitsi_linux_64/lib/native/linux-64
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: java.specification.name=Java Platform API Specification
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: java.class.version=52.0
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO:
org.jitsi.service.audionotifier.AudioNotifierService=org.jitsi.impl.neomedia.notify.AudioNotifierServiceImpl
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: sun.management.compiler=HotSpot 64-Bit Tiered Compilers
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: os.version=3.13.0-52-generic
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: user.home=/home/johnmichaelreed
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: user.timezone=America/New_York
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: java.awt.printerjob=sun.print.PSPrinterJob
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: file.encoding=UTF-8
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: java.specification.version=1.8
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO:
java.class.path=/home/johnmichaelreed/Desktop/Dropbox/Libjitsi_linux_64/libjitsi.jar:/home/johnmichaelreed/Desktop/Dropbox/Libjitsi_linux_64/lib/bccontrib-1.0-SNAPSHOT.jar:/home/johnmichaelreed/Desktop/Dropbox/Libjitsi_linux_64/lib/bcpkix-jdk15on-151.jar:/home/johnmichaelreed/Desktop/Dropbox/Libjitsi_linux_64/lib/bcprov-jdk15on-151.jar:/home/johnmichaelreed/Desktop/Dropbox/Libjitsi_linux_64/lib/fmj.jar:/home/johnmichaelreed/Desktop/Dropbox/Libjitsi_linux_64/lib/ice4j.jar:/home/johnmichaelreed/Desktop/Dropbox/Libjitsi_linux_64/lib/jain-sdp.jar:/home/johnmichaelreed/Desktop/Dropbox/Libjitsi_linux_64/lib/jna.jar:/home/johnmichaelreed/Desktop/Dropbox/Libjitsi_linux_64/lib/json-simple-1.1.1.jar:/home/johnmichaelreed/Desktop/Dropbox/Libjitsi_linux_64/lib/jspeex.jar:/home/johnmichaelreed/Desktop/Dropbox/Libjitsi_linux_64/lib/osgi.core.jar:/home/johnmichaelreed/Desktop/Dropbox/Libjitsi_linux_64/lib/sdes4j.jar:/home/johnmichaelreed/Desktop/Dropbox/Libjitsi_linux_64/lib/zrtp4j-light.jar:/home/johnmichaelreed/NetBeansProjects/SendRecieve2/build/classes
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: user.name=johnmichaelreed2
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: java.vm.specification.version=1.8
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: sun.java.command=john.JohnTransmit
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: java.home=/usr/local/jdk1.8.0_45/jre
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: sun.arch.data.model=64
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: user.language=en
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: java.specification.vendor=Oracle Corporation
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: net.sf.fmj.utility.JmfRegistry.disableCommit=true
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: awt.toolkit=sun.awt.X11.XToolkit
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: java.vm.info=mixed mode
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: java.version=1.8.0_45
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO:
java.ext.dirs=/usr/local/jdk1.8.0_45/jre/lib/ext:/usr/java/packages/lib/ext
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO:
sun.boot.class.path=/usr/local/jdk1.8.0_45/jre/lib/resources.jar:/usr/local/jdk1.8.0_45/jre/lib/rt.jar:/usr/local/jdk1.8.0_45/jre/lib/sunrsasign.jar:/usr/local/jdk1.8.0_45/jre/lib/jsse.jar:/usr/local/jdk1.8.0_45/jre/lib/jce.jar:/usr/local/jdk1.8.0_45/jre/lib/charsets.jar:/usr/local/jdk1.8.0_45/jre/lib/jfr.jar:/usr/local/jdk1.8.0_45/jre/classes
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: java.vendor=Oracle Corporation
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: file.separator=/
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: java.vendor.url.bug=http://bugreport.sun.com/bugreport/
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: sun.io.unicode.encoding=UnicodeLittle
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: sun.cpu.endian=little
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: sun.desktop=gnome
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: sun.cpu.isalist=
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: Normal classloader
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: failed to find jitsi-defaults.properties with class loader, will
continue without it.
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: Normal classloader
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: failed to find jitsi-default-overrides.properties with class loader,
will continue without it.
May 15, 2015 10:44:00 AM org.jitsi.util.Logger info
INFO: Initializing audio devices
ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
ALSA lib pcm_dmix.c:961:(snd_pcm_dmix_open) The dmix plugin supports only
playback stream
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
May 15, 2015 10:44:01 AM org.jitsi.util.Logger info
INFO: Initializing video devices
May 15, 2015 10:44:01 AM org.jitsi.util.Logger info
INFO: Webcam available resolution for BisonCam, NB Pro (/dev/video0):640x480
May 15, 2015 10:44:01 AM org.jitsi.util.Logger info
INFO: Looking for configured audio devices.
May 15, 2015 10:44:01 AM org.jitsi.util.Logger info
INFO: Scanning for configured Video Devices.
May 15, 2015 10:44:01 AM org.jitsi.util.Logger info
INFO: Found BisonCam, NB Pro (/dev/video0) as a AVFRAME, class
org.jitsi.impl.neomedia.codec.video.AVFrame video capture device.

In thread main: john.JohnTransmit.start(JohnTransmit.java:148)
Media type: audio

In thread main: john.JohnTransmit.start(JohnTransmit.java:160)
sendrecv

In thread main: john.JohnTransmit.start(JohnTransmit.java:164)
sendrecv

In thread main: john.JohnTransmit.start(JohnTransmit.java:181)
sendrecv

In thread main: john.JohnTransmit.start(JohnTransmit.java:232)

  dynamicRTPPayloadType == -1 for media type: audio

In thread main: john.JohnTransmit.start(JohnTransmit.java:248)
sendrecv

In thread main: john.JohnTransmit.start(JohnTransmit.java:273)
sendrecv

In thread main: john.JohnTransmit.start(JohnTransmit.java:148)
Media type: video

In thread main: john.JohnTransmit.start(JohnTransmit.java:160)
sendrecv

In thread main: john.JohnTransmit.start(JohnTransmit.java:164)
sendrecv

In thread main: john.JohnTransmit.start(JohnTransmit.java:181)
sendrecv

In thread main: john.JohnTransmit.start(JohnTransmit.java:227)

  dynamicRTPPayloadType != -1 for media type: video

In thread main: john.JohnTransmit.start(JohnTransmit.java:248)
sendrecv

In thread main: john.JohnTransmit.start(JohnTransmit.java:273)
sendrecv
May 15, 2015 10:44:02 AM org.jitsi.util.Logger info
INFO: audio codec/freq: PCMU/8000 Hz
May 15, 2015 10:44:02 AM org.jitsi.util.Logger info
INFO: audio remote IP/port: 127.0.0.1/15000
May 15, 2015 10:44:02 AM org.jitsi.util.Logger info
INFO: video send FPS: default(no restriction)
May 15, 2015 10:44:02 AM org.jitsi.util.Logger info
INFO: video codec/freq: H264/90000 Hz
May 15, 2015 10:44:02 AM org.jitsi.util.Logger info
INFO: video remote IP/port: 127.0.0.1/15002
Start transmission for 60 seconds...
May 15, 2015 10:44:03 AM org.jitsi.util.Logger info
INFO: GatherEntropy got: 176400 bytes
May 15, 2015 10:45:02 AM org.jitsi.util.Logger info
INFO:
Receive stream stats: discarded RTP packets: 0
Receive stream stats: decoded with FEC: 0
May 15, 2015 10:45:02 AM org.jitsi.util.Logger info
INFO: rtpstat:call stats for outgoing audio stream SSRC: 1257972523
rtpstat:bytes sent: 481280
rtpstat:RTP sent: 3008
rtpstat:remote reported min interarrival jitter: 0.375ms
rtpstat:remote reported max interarrival jitter: 3.625ms
rtpstat:local collisions: 0
rtpstat:remote collisions: 0
rtpstat:RTCP sent: 13
rtpstat:transmit failed: 0
May 15, 2015 10:45:02 AM org.jitsi.util.Logger info
INFO: rtpstat:call stats for incoming rtpmap:0 PCMU/8000 stream SSRC: -1
rtpstat:packets received: 12
rtpstat:bytes received: 1104
rtpstat:packets lost: 0
rtpstat:min interarrival jitter: -1
rtpstat:max interarrival jitter: 0
rtpstat:RTCPs received: 12
rtpstat:bad RTCP packets: 0
rtpstat:bad RTP packets: 0
rtpstat:local collisions: 0
rtpstat:malformed BYEs: 0
rtpstat:malformed RRs: 0
rtpstat:malformed SDESs: 0
rtpstat:malformed SRs: 0
rtpstat:packets looped: 0
rtpstat:remote collisions: 0
rtpstat:SRs received: 0
rtpstat:transmit failed: 0
rtpstat:unknown types: 0

···

#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fbae50e09b6, pid=31033, tid=140439547229952
#
# JRE version: Java(TM) SE Runtime Environment (8.0_45-b14) (build
1.8.0_45-b14)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.45-b02 mixed mode
linux-amd64 compressed oops)
# Problematic frame:
# C [libjnffmpeg.so+0x1129b6] ff_mjpeg_decode_sos+0x19b6
#
# 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:
# /home/johnmichaelreed/NetBeansProjects/SendRecieve2/hs_err_pid31033.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Java Result: 134
BUILD SUCCESSFUL (total time: 1 minute 2 seconds)

Error report file with more information:
https://www.dropbox.com/s/nzyo19dm9f05ogl/hs_err_pid31033.log?dl=0

^ Note that I am getting this EXACT SAME "A fatal error has been detected
by the Java Runtime Environment:" when I try to use Jitsi
(jitsi_2.8.5426-1_amd64.deb) from my laptop. I made a post about this Jitsi
Java error as a bug report to the devs mailing list. When I try to run
Jitsi from the terminal, I get the following printout from the terminal:

johnmichaelreed2@JohnReedsGalago:~$ jitsi
ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
ALSA lib pcm_dmix.c:961:(snd_pcm_dmix_open) The dmix plugin supports only
playback stream
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f81c793f9b6, pid=31206, tid=140194257098496
#
# JRE version: Java(TM) SE Runtime Environment (8.0_45-b14) (build
1.8.0_45-b14)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.45-b02 mixed mode
linux-amd64 compressed oops)
# Problematic frame:
# C [libjnffmpeg.so+0x1129b6] ff_mjpeg_decode_sos+0x19b6
#
# 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:
# /tmp/hs_err_pid31206.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Aborted
johnmichaelreed2@JohnReedsGalago:~$

Error report file with more information:
https://www.dropbox.com/s/4uo6lpqh4m66lhd/hs_err_pid31206.log?dl=0

All I did was typed in "jitsi" and then went to the top bar and clicked:
Tools > Options > Video (I can see myself in the Devices webcam tab -
webcam recording light is on) > Encoding [*crash*]

As soon as I click on "Video > Encoding", "Video > More settings", or
"Security", Jitsi crashes in a manner similar to the way AVTransmit2
crashes on my computer.