With the latest release of Java 9 and IceLink 3.1.3, we are seeing access violations occurring in the libyuv JNI library when attempting to convert RGB image formats (and their endian, alpha variants) to i420. This conversion is required prior to encoding video frames. We are actively investigating this issue. An example of the crash and the corresponding stack trace is below for reference.
Stack: [0x000000410d100000,0x000000410d200000], sp=0x000000410d1fe560, free space=1017k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libyuvfmJNI.dll+0x38c7]
C [libyuvfmJNI.dll+0x465e]
C 0x00000209bcba921c
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j fm.icelink.yuv.Native.YuvFMConvertToi420(JIII[[B[I[I[II[IJ)[B+0
j fm.icelink.yuv.Native.convertToI420(Lfm/icelink/VideoBuffer;)Lfm/icelink/VideoBuffer;+137
j fm.icelink.yuv.ImageConverter.doConvertToI420(Lfm/icelink/VideoBuffer;)Lfm/icelink/VideoBuffer;+36
j fm.icelink.yuv.ImageConverter.doProcessFrame(Lfm/icelink/VideoFrame;Lfm/icelink/VideoBuffer;)V+67
j fm.icelink.yuv.ImageConverter.doProcessFrame(Lfm/icelink/MediaFrame;Lfm/icelink/MediaBuffer;)V+9
j fm.icelink.MediaPipe.processFrame(Lfm/icelink/MediaFrame;)Z+93
J 3512 c1 fm.icelink.MediaSource.raiseFrame(Lfm/icelink/MediaFrame;)V (277 bytes) @ 0x00000209bd7bd2d4 [0x00000209bd7bb6a0+0x0000000000001c34]
j fm.icelink.VideoSource.raiseFrame(Lfm/icelink/VideoFrame;)V+29
j fm.icelink.java.sarxos.VideoSource.captureLoop(Lfm/icelink/ManagedThread;)V+27
j fm.icelink.java.sarxos.VideoSource.access$400(Lfm/icelink/java/sarxos/VideoSource;Lfm/icelink/ManagedThread;)V+2
j fm.icelink.java.sarxos.VideoSource$1$1.invoke(Lfm/icelink/ManagedThread;)V+8
j fm.icelink.java.sarxos.VideoSource$1$1.invoke(Ljava/lang/Object;)V+5
j fm.icelink.ManagedThread$1.run()V+8
v ~StubRoutines::call_stub
There were also a couple binaries that needed to be updated in the 3.1.3 zip file. If you have experienced any build issues with UWP or with x86 .NET projects, these issue have been resolved in the latest 3.1.3 zip available on our downloads page.
Comments
0 comments
Please sign in to leave a comment.