vlc android crashes on android 4.4.4
On android 4.4.4 (samsung note 4), the vlc.apk built from the latest master git lauches into black screen, then show "vlc has stopped working", the logcat outputs:
11-22 05:16:46.519: I/dalvikvm(16543): Could not find method android.view.Window.setStatusBarColor, referenced from method org.videolan.vlc.gui.MainActivity.onCreate
11-22 05:16:46.519: W/dalvikvm(16543): VFY: unable to resolve virtual method 11856: Landroid/view/Window;.setStatusBarColor (I)V
11-22 05:16:46.519: D/dalvikvm(16543): VFY: replacing opcode 0x6e at 0x0096
11-22 05:16:46.549: I/VLC/LibVLC/Util(16543): machine = arm, 32bits
11-22 05:16:46.549: I/VLC/LibVLC/Util(16543): arch = v7
11-22 05:16:46.549: I/VLC/LibVLC/Util(16543): fpu = true
11-22 05:16:46.559: D/dalvikvm(16543): Trying to load lib /data/app-lib/org.videolan.vlc-1/libanw.18.so 0x43464da0
11-22 05:16:46.559: D/dalvikvm(16543): Added shared lib /data/app-lib/org.videolan.vlc-1/libanw.18.so 0x43464da0
11-22 05:16:46.559: D/dalvikvm(16543): No JNI_OnLoad found in /data/app-lib/org.videolan.vlc-1/libanw.18.so 0x43464da0, skipping init
11-22 05:16:46.559: D/dalvikvm(16543): Trying to load lib /data/app-lib/org.videolan.vlc-1/libvlcjni.so 0x43464da0
11-22 05:16:46.569: W/linker(16543): libvlcjni.so has text relocations. This is wasting memory and is a security risk. Please fix.
11-22 05:16:46.619: D/dalvikvm(16543): Added shared lib /data/app-lib/org.videolan.vlc-1/libvlcjni.so 0x43464da0
11-22 05:16:46.629: D/VLC/LibVLC(16543): HWDec enabled: device working with: mediacodec,iomx,all
11-22 05:16:46.629: V/VLC/LibVLC(16543): Initializing LibVLC
11-22 05:16:46.639: A/libc(16543): Fatal signal 6 (SIGABRT) at 0x0000409f (code=-6), thread 16543 (rg.videolan.vlc)
I debugged into LibVLC.nativeinit() -> Java_org_videolan_libvlc_LibVLC_nativeInit() in libvlcjni.c, then crash on the line libvlc_new().
I built the version 0.9.10, it runs well. Comparing libvlcjni.c in version 0.9.10 and up-to-date master git, I have noticed that the arguments of libvlc_new() are different, mainly related to new added VOUT_ANDROID_WINDOW option, but i'm not sure whether VOUT_ANDROID_WINDOW is the reason causing the crash.