androidmedia: Android application crashes for build 1.9.90
urchikkamath at yahoo.com
urchikkamath at yahoo.com
Mon Nov 7 12:15:01 UTC 2016
Hello,
Our Android application running without any issues with previous build 1.4.5 and it has been tested for QA cycle including accessing hardware codecs for Video encoding and decoding. However we've updated cerbero build and NDK to support latest version of android i.e 6.0/7.0. I've successfully build the cerbero for version 1.9.90 and updated NDK for android-ndk-r12b. With these latest changes our Android application crashes while launching app. Debug logs points to androidmedia(gst_android_hardware_sensor_init) plugin is culprit.
W/GStreamer+amc(14205): 0:00:01.284946250 0x78f74a20 gstamc.c:3531:gst_amc_codec_info_to_caps Unsupported mimetype 'audio/ac3'
E/GStreamer+ahs(14205): 0:00:01.295211375 0x78f74a20 gst-android-hardware-sensor.c:598:_init_classes Failed to initialize Android classes: Failed to get static field ID TYPE_HEART_RATE (I): java.lang.NoSuchFieldError: no static field with name='TYPE_HEART_RATE' signature='I' in class Landroid/hardware/Sensor;
E/GStreamer+ahs(14205): java.lang.NoSuchFieldError: no static field with name='TYPE_HEART_RATE' signature='I' in class Landroid/hardware/Sensor;
E/GStreamer+ahs(14205): at org.freedesktop.gstreamer.GStreamer.nativeInit(Native Method)
E/GStreamer+ahs(14205): at org.freedesktop.gstreamer.GStreamer.init(GStreamer.java:16)
E/GStreamer+ahs(14205): at com.iVideo.videotrans.Video.init(iVideoTrans.java:135)
E/GStreamer+ahs(14205): at com.iVideo.GstVideoApp.iDemoApp.onCreate(iDemoApp.java:56)
E/GStreamer+ahs(14205): at android.app.Activity.performCreate(Activity.java:5426)
E/GStreamer+ahs(14205): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
E/GStreamer+ahs(14205): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2269)
E/GStreamer+ahs(14205): at android.app.ActivityThread.handleLaunchActivity(A
E/GLib+stderr(14205): **
E/GLib+stderr(14205): ERROR:gst-android-hardware-sensor.c:157:gst_ah_sensor_sensor_sizes_deinit: 'sensor_sizes' should not be NULL
(attached detail log)
Please note instead of hardware codecs if we use software based codecs i.e x264 and avdec_h264 Applications works perfectly fine.This issue has been observed on Qualcomm and Exynos based chipsets
It would be great if we get help/suggestions or pointers to resolve this issue at earliest.
Note: I've already filed this issue as Bug , I'm posting here in case someone faced similar issues and help me to resolve this issue.
Thanks in advance.
-Umashankar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-android/attachments/20161107/0878a438/attachment.html>
More information about the gstreamer-android
mailing list