question

Prethibha avatar image
Prethibha asked ·

AVS Device SDK SampleApp runtime issue in Android

Hi,

I'm trying to bring up AVS SDK in Android.

NDK Version used:16b

Android Platform:26

By reffering the informations available from https://github.com/alexa/avs-device-sdk/issues/305,

I've successfully cross-compiled the sample application with all the dependencies(sqlite,curl,portaudio,mbedtls,googletest,gstreamer) for x86_64 architecture.

Gstreamer binaries were available from https://gstreamer.freedesktop.org/pkg/android/1.8.2/.

Now when trying to run the application in emulator am getting segmentation fault.

The tombstone output is as follows:

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

Build fingerprint: 'Android/sdk_gphone_x86_64/generic_x86_64:8.0.0/OSR1.180418.003/4741120:userdebug/dev-keys' Revision: '0' ABI: 'x86_64' pid: 5378, tid: 5378, name: SampleApp >>> ./SampleApp <<< signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x7ffec6025f08 rax 00007336099a60b0 rbx 0000000000000090 rcx d6797bc98cb39434 rdx 00007336099a9600 rsi 000073360996aea0 rdi 000073360993bee0 r8 0000733609c25048 r9 0000000000000000 r10 fffffffffffff386 r11 0000000000000000 r12 00007ffec60264c8 r13 000073360a306de8 r14 0000000000000000 r15 00007ffec60263e8 cs 0000000000000033 ss 000000000000002b rip 000073360993beea rbp 0000000000000000 rsp 00007ffec6025f10 eflags 0000000000010202 backtrace: #00 pc 00000000000a6eea /data/data/com.example.teltvm2548.myapplication/files/lib/libc++_shared.so #01 pc 00000000000d60f2 /data/data/com.example.teltvm2548.myapplication/files/lib/libc++_shared.so #02 pc 00000000000d6174 /data/data/com.example.teltvm2548.myapplication/files/lib/libc++_shared.so #03 pc 00000000000d57a2 /data/data/com.example.teltvm2548.myapplication/files/lib/libc++_shared.so #04 pc 00000000000a6e1a /data/data/com.example.teltvm2548.myapplication/files/lib/libc++_shared.so #05 pc 0000000000000000 <unknown> stack: ........ ........ ........ ........ #01 00007ffec6026350 0000000000000090 00007ffec6026358 000073360996b175 /data/data/com.example.teltvm2548.myapplication/files/lib/libc++_shared.so #02 00007ffec6026360 0000000000000000 00007ffec6026368 000073360996a7a3 /data/data/com.example.teltvm2548.myapplication/files/lib/libc++_shared.so #03 00007ffec6026370 0000000000000000 00007ffec6026378 0000733608ca713c [anon:.bss] 00007ffec6026380 0000733609973a77 /data/data/com.example.teltvm2548.myapplication/files/lib/libc++_shared.so 00007ffec6026388 000073360993be1b /data/data/com.example.teltvm2548.myapplication/files/lib/libc++_shared.so #04 00007ffec6026390 0000733608ca713c [anon:.bss] 00007ffec6026398 0000000000000000 #05 00007ffec60263a0 0000000000000000 00007ffec60263a8 0000003000000008 00007ffec60263b0 00007ffec60264c8 00007ffec60263b8 00007ffec60263e8 00007ffec60263c0 0000000000000000 00007ffec60263c8 0000003000000008 00007ffec60263d0 00007ffec60264c8 00007ffec60263d8 00007ffec60263e8 00007ffec60263e0 0000000000000000 00007ffec60263e8 0000000000000000 00007ffec60263f0 000073360996aea0 /data/data/com.example.teltvm2548.myapplication/files/lib/libc++_shared.so 00007ffec60263f8 00007336099a9600 [anon:.bss] 00007ffec6026400 d6797bc98cb39434 00007ffec6026408 0000733609c25048 [anon:linker_alloc_vector] 00007ffec6026410 0000000000000000 00007ffec6026418 0000000000000000

Please help with this issue.

alexa voice serviceandroid
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

newuser-ce201a44-2626-423f-b986-714b1038dd6a avatar image
newuser-ce201a44-2626-423f-b986-714b1038dd6a answered ·

Hey Prethiba - We discussed this offline, and I have shared the Android set up guide with you again. Please check and let me know if you still face any issues.

1 comment
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hi @NewUser-ce201a44-2626-423f-b986-714b1038dd6a: which guide did you provide?
Hi @Prethibha: Did you have any luck with the setup guide?

I would appreciate if you could tell me to send Android set up guide.

Thanks.

0 Likes 0 ·
Celina avatar image
Celina answered ·

Hi @NewUser-ce201a44-2626-423f-b986-714b1038dd6a: which guide did you provide?
Hi @Prethibha: Did you have any luck with the setup guide?

10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

newuser-548ad3ad-6b53-4380-acd7-004ff8ace0d4 avatar image
newuser-548ad3ad-6b53-4380-acd7-004ff8ace0d4 answered ·

Hi @NewUser-ce201a44-2626-423f-b986-714b1038dd6a: which guide did you provide?
Hi @Prethibha: Did you have any luck with the setup guide?

I would appreciate if you could tell me to send Android set up guide.

Thanks.

10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Prethibha avatar image
Prethibha answered ·

Hi @NewUser-ce201a44-2626-423f-b986-714b1038dd6a

Yes,it was indeed helpful.

I successfully compiled and run the tests in emulator(for armv7a) [ I have runtime issues for arm64-v8]

So i though I'll first try to bring up in armv7a first.

I have added the mediaplayer and portaudio modules to the SDK.Compilation and build went successfully.But at run time it's failing with the following issue.Could you please check it out?

2018-07-31 06:52:49.847 [ 1] 9 MediaPlayer:createCalled 2018-07-31 06:52:50.186 [ 1] E MediaPlayer:setupPipelineFailed:reason=createConverterElementFailed 2018-07-31 06:52:50.192 [ 1] E MediaPlayer:initPlayerFailed:reason=setupPipelineFailed 2018-07-31 06:52:50.194 [ 1] 9 MediaPlayer:~MediaPlayerCalled (SampleApp:4613): GStreamer-CRITICAL **: gst_object_unref: assertion 'object != NULL' failed 2018-07-31 06:52:50.211 [ 1] 9 MediaPlayer:resetPipeline (SampleApp:4613): GLib-CRITICAL **: g_source_remove: assertion 'tag > 0' failed 2018-07-31 06:52:50.216 [ 1] E RequiresShutdown:~RequiresShutdownFailed:reason=notShutdown,name=SpeakMediaPlayer 2018-07-31 06:52:50.223 [ 1] C SampleApplication:Failed to create media player for speech! 2018-07-31 06:52:50.229 [ 1] C SampleApplication:Failed to initialize SampleApplication Failed to create to SampleApplication!

Note: Gstreamer binary is taken from https://gstreamer.freedesktop.org/pkg/android/

I have tried the 1.10.2 as well as 1.8.0 gstreamer binary version and for both the error is same.

1 comment
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

The GStreamer binary you have is missing the "audioconvert" plugin:
https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-audioconvert.html

You should find a proper binary or build GStreamer from sources.

Please let me know if it helps.

1 Like 1 ·
Prethibha avatar image
Prethibha answered ·

@Andrey@Amazon

@NewUser-ce201a44-2626-423f-b986-714b1038dd6a

I had to format my Linux machine and now when I run in the emulator getting the below error. I don't remember what I did last time. Could you please look into this?

CANNOT LINK EXECUTABLE: cannot locate symbol "__emutls_get_address" referenced by "/data/tmp/android-23/armeabi-v7a/install/lib/libAVSCommon.so"...
page record for 0xb6e6004c was not found (block_size=64)

Regards,

Prethibha

10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Prethibha avatar image
Prethibha answered ·

Hi

@Andrey@Amazon

I tried to build the Gstreamer from source using cerbero and copied and merged to our install folder.

Compilation and build succeeded but at runtime same issue.

Detailed log is as below(Please check the bold portion at bottom):

2018-08-14 12:44:15.276 [ 1] I sdkVersion: 1.8.1
[==========] Running 39 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 39 tests from MediaPlayerTest
[ RUN ] MediaPlayerTest.testStartPlayWaitForEnd
0:00:00.016895056 10282 0xb630be00 INFO GST_INIT gst.c:586:init_pre: Initializing GStreamer Core Library version 1.15.0.1
0:00:00.024689040 10282 0xb630be00 INFO GST_INIT gst.c:587:init_pre: Using library installed in /home/teltvm1954x/cerbero/build/dist/android_armv7/lib
0:00:00.030223152 10282 0xb630be00 INFO GST_INIT gst.c:607:init_pre: Linux localhost 3.10.0+ #1 SMP PREEMPT Wed Feb 22 08:54:46 PST 2017 armv7l
0:00:00.034152336 10282 0xb630be00 DEBUG GST_MEMORY gstallocator.c:589:_priv_gst_allocator_initialize: memory alignment: 7
0:00:00.712777072 10282 0xb630be00 TRACE GST_REFCOUNTING gstobject.c:207:gst_object_init:<GstObject@0xb6304418> 0xb6304418 new
0:00:00.723650240 10282 0xb630be00 DEBUG GST_MEMORY gstallocator.c:565:gst_allocator_sysmem_init: init allocator 0xb6304418
0:00:01.016837312 10282 0xb630be00 TRACE GST_REFCOUNTING gstobject.c:293:gst_object_ref_sink:<allocatorsysmem0> 0xb6304418 ref_sink 1->2
0:00:01.024277104 10282 0xb630be00 TRACE GST_REFCOUNTING gstobject.c:237:gst_object_ref:<allocatorsysmem0> 0xb6304418 ref 1->2
0:00:01.030636784 10282 0xb630be00 DEBUG GST_MEMORY gstallocator.c:207:gst_allocator_register: registering allocator 0xb6304418 with name "SystemMemory"
0:00:01.034208928 10282 0xb630be00 TRACE GST_REFCOUNTING gstobject.c:237:gst_object_ref:<allocatorsysmem0> 0xb6304418 ref 2->3
0:00:01.092809536 10282 0xb630be00 TRACE GST_CAPS gstcaps.c:263:gst_caps_new_empty: created caps 0xb630ca00
0:00:01.108493024 10282 0xb630be00 TRACE GST_CAPS gstcaps.c:263:gst_caps_new_empty: created caps 0xb630ca28
0:00:01.113526736 10282 0xb630be00 TRACE caps-features gstcapsfeatures.c:184:gst_caps_features_new_empty: created caps features 0xb62951a0
0:00:01.117139536 10282 0xb630be00 TRACE caps-features gstcapsfeatures.c:184:gst_caps_features_new_empty: created caps features 0xb62952a0
0:00:01.120000160 10282 0xb630be00 INFO GST_INIT gstmessage.c:127:_priv_gst_message_initialize: init messages
0:00:01.129743344 10282 0xb630be00 TRACE structure gststructure.c:154:gst_structure_new_id_empty_with_size: created structure 0xb62c2200
0:00:01.134945088 10282 0xb630be00 DEBUG GST_ELEMENT_PADS gstelement.c:302:gst_element_base_class_init: type GstElement : factory 0x0
0:00:01.140424672 10282 0xb630be00 DEBUG default gstelement.c:195:gst_element_setup_thread_pool: creating element thread pool
0:00:01.150775232 10282 0xb630be00 TRACE structure gststructure.c:154:gst_structure_new_id_empty_with_size: created structure 0xb62c2270
0:00:01.155720960 10282 0xb630be00 TRACE GST_PERFORMANCE gststructure.c:359:gst_structure_copy: doing copy 0xb62c2200 -> 0xb62c2270
0:00:01.161042208 10282 0xb630be00 DEBUG GST_ELEMENT_PADS gstelement.c:302:gst_element_base_class_init: type GstBin : factory 0x0
0:00:01.171712608 10282 0xb630be00 TRACE GST_REFCOUNTING gstobject.c:207:gst_object_init:<GstObject@0xb6303c68> 0xb6303c68 new
0:00:01.177794800 10282 0xb630be00 TRACE GST_REFCOUNTING gstobject.c:293:gst_object_ref_sink:<taskpool0> 0xb6303c68 ref_sink 1->2
0:00:01.204706112 10282 0xb630be00 INFO GST_INIT gstcontext.c:84:_priv_gst_context_initialize: init contexts
0:00:01.340365648 10282 0xb630be00 INFO GST_PLUGIN_LOADING gstplugin.c:314:_priv_gst_plugin_initialize: registering 0 static plugins
0:00:01.347823328 10282 0xb630be00 LOG GST_PLUGIN_LOADING gstplugin.c:219:gst_plugin_register_static: attempting to load static plugin "staticelements" now...
0:00:01.352623056 10282 0xb630be00 TRACE GST_REFCOUNTING gstobject.c:207:gst_object_init:<GstObject@0xb630f008> 0xb630f008 new
0:00:01.359144640 10282 0xb630be00 LOG GST_PLUGIN_LOADING gstplugin.c:503:gst_plugin_register_func: plugin "(NULL)" looks good
0:00:01.364297312 10282 0xb630be00 TRACE GST_REFCOUNTING gstobject.c:207:gst_object_init:<GstObject@0xb630e050> 0xb630e050 new
0:00:01.373001840 10282 0xb630be00 TRACE GST_REFCOUNTING gstobject.c:293:gst_object_ref_sink:<registry0> 0xb630e050 ref_sink 1->2
0:00:01.377340720 10282 0xb630be00 TRACE GST_REFCOUNTING gstobject.c:207:gst_object_init:<GstObject@0xb630e800> 0xb630e800 new
0:00:01.382717792 10282 0xb630be00 LOG GST_ELEMENT_FACTORY gstelementfactory.c:236:gst_element_register:<bin> Created new elementfactory for type GstBin
0:00:01.386735488 10282 0xb630be00 TRACE structure gststructure.c:154:gst_structure_new_id_empty_with_size: created structure 0xb62c2100
0:00:01.390328224 10282 0xb630be00 TRACE GST_PERFORMANCE gststructure.c:359:gst_structure_copy: doing copy 0xb62c2270 -> 0xb62c2100
0:00:01.393773680 10282 0xb630be00 DEBUG GST_REGISTRY gstregistry.c:578:gst_registry_add_feature:<registry0> adding feature 0xb630e800 (bin)
0:00:01.398677440 10282 0xb630be00 DEBUG GST_REFCOUNTING gstobject.c:675:gst_object_set_parent:<bin> set parent (ref and sink)
0:00:01.401564208 10282 0xb630be00 TRACE GST_REFCOUNTING gstobject.c:293:gst_object_ref_sink:<bin> 0xb630e800 ref_sink 1->2
0:00:01.556924992 10282 0xb630be00 LOG GST_REGISTRY gstregistry.c:596:gst_registry_add_feature:<registry0> emitting feature-added for bin
0:00:01.568016688 10282 0xb630be00 TRACE GST_REFCOUNTING gstobject.c:207:gst_object_init:<GstObject@0xb630e890> 0xb630e890 new
0:00:01.574947840 10282 0xb630be00 LOG GST_ELEMENT_FACTORY gstelementfactory.c:236:gst_element_register:<pipeline> Created new elementfactory for type GstPipeline
0:00:01.579274304 10282 0xb630be00 TRACE structure gststructure.c:154:gst_structure_new_id_empty_with_size: created structure 0xb62c21c0
0:00:01.582274304 10282 0xb630be00 TRACE GST_PERFORMANCE gststructure.c:359:gst_structure_copy: doing copy 0xb62c2270 -> 0xb62c21c0
0:00:01.585106368 10282 0xb630be00 DEBUG GST_ELEMENT_PADS gstelement.c:302:gst_element_base_class_init: type GstPipeline : factory 0xb630e890
0:00:01.589293088 10282 0xb630be00 TRACE structure gststructure.c:154:gst_structure_new_id_empty_with_size: created structure 0xb6295420
0:00:01.592881488 10282 0xb630be00 TRACE GST_PERFORMANCE gststructure.c:359:gst_structure_copy: doing copy 0xb62c21c0 -> 0xb6295420
0:00:01.595974336 10282 0xb630be00 DEBUG GST_REGISTRY gstregistry.c:578:gst_registry_add_feature:<registry0> adding feature 0xb630e890 (pipeline)
0:00:01.598832416 10282 0xb630be00 DEBUG GST_REFCOUNTING gstobject.c:675:gst_object_set_parent:<pipeline> set parent (ref and sink)
0:00:01.601307408 10282 0xb630be00 TRACE GST_REFCOUNTING gstobject.c:293:gst_object_ref_sink:<pipeline> 0xb630e890 ref_sink 1->2
0:00:01.604157024 10282 0xb630be00 LOG GST_REGISTRY gstregistry.c:596:gst_registry_add_feature:<registry0> emitting feature-added for pipeline
0:00:01.607135168 10282 0xb630be00 LOG GST_PLUGIN_LOADING gstplugin.c:530:gst_plugin_register_func: plugin "(NULL)" initialised
0:00:01.609887616 10282 0xb630be00 INFO GST_PLUGIN_LOADING gstplugin.c:222:gst_plugin_register_static: registered static plugin "staticelements"
0:00:01.612398720 10282 0xb630be00 DEBUG GST_REGISTRY gstregistry.c:462:gst_registry_add_plugin:<registry0> adding plugin 0xb630f008 for filename "(NULL)"
0:00:01.614777888 10282 0xb630be00 TRACE GST_REFCOUNTING gstobject.c:293:gst_object_ref_sink:<plugin0> 0xb630f008 ref_sink 1->2
0:00:01.615865440 10282 0xb630be00 LOG GST_REGISTRY gstregistry.c:475:gst_registry_add_plugin:<registry0> emitting plugin-added for filename "(NULL)"
0:00:01.618135520 10282 0xb630be00 INFO GST_PLUGIN_LOADING gstplugin.c:224:gst_plugin_register_static: added static plugin "staticelements", result: 1
0:00:01.621564112 10282 0xb630be00 INFO GST_REGISTRY gstregistry.c:1723:ensure_current_registry: reading registry cache: /data/.cache/gstreamer-1.0/registry.arm.bin
0:00:01.632835200 10282 0xb630be00 INFO GST_REGISTRY gstregistrybinary.c:539:priv_gst_registry_binary_read_cache: Unable to mmap file /data/.cache/gstreamer-1.0/registry.arm.bin : Failed to open file “/data/.cache/gstreamer-1.0/registry.arm.bin”: open() failed: No such file or directory
0:00:01.638698560 10282 0xb630be00 INFO GST_REGISTRY gstregistrybinary.c:549:priv_gst_registry_binary_read_cache: Unable to read file /data/.cache/gstreamer-1.0/registry.arm.bin : Failed to open file “/data/.cache/gstreamer-1.0/registry.arm.bin”: No such file or directory
0:00:01.644475728 10282 0xb630be00 DEBUG GST_REGISTRY gstregistry.c:1751:ensure_current_registry: Updating registry cache
0:00:01.651185152 10282 0xb630be00 INFO GST_REGISTRY gstregistry.c:1579:scan_and_update_registry: Validating plugins from registry cache: /data/.cache/gstreamer-1.0/registry.arm.bin
0:00:01.653991968 10282 0xb630be00 DEBUG GST_REGISTRY gstregistry.c:1589:scan_and_update_registry: scanning paths added via --gst-plugin-path
0:00:01.657194208 10282 0xb630be00 DEBUG GST_REGISTRY gstregistry.c:1612:scan_and_update_registry: GST_PLUGIN_PATH not set
0:00:01.660006400 10282 0xb630be00 DEBUG GST_REGISTRY gstregistry.c:1624:scan_and_update_registry: GST_PLUGIN_SYSTEM_PATH not set
0:00:01.663173712 10282 0xb630be00 DEBUG GST_REGISTRY gstregistry.c:1631:scan_and_update_registry: scanning home plugins /data/.local/share/gstreamer-1.0/plugins
0:00:01.666046208 10282 0xb630be00 DEBUG GST_REGISTRY gstregistry.c:1363:gst_registry_scan_path_internal:<registry0> scanning path /data/.local/share/gstreamer-1.0/plugins
0:00:01.667908688 10282 0xb630be00 DEBUG GST_REGISTRY gstregistry.c:1367:gst_registry_scan_path_internal:<registry0> registry changed in path /data/.local/share/gstreamer-1.0/plugins: 0
0:00:01.670900944 10282 0xb630be00 DEBUG GST_REGISTRY gstregistry.c:1659:scan_and_update_registry: scanning main plugins /home/teltvm1954x/cerbero/build/dist/android_armv7/lib/gstreamer-1.0
0:00:01.673204880 10282 0xb630be00 DEBUG GST_REGISTRY gstregistry.c:1363:gst_registry_scan_path_internal:<registry0> scanning path /home/teltvm1954x/cerbero/build/dist/android_armv7/lib/gstreamer-1.0
0:00:01.676268448 10282 0xb630be00 DEBUG GST_REGISTRY gstregistry.c:1367:gst_registry_scan_path_internal:<registry0> registry changed in path /home/teltvm1954x/cerbero/build/dist/android_armv7/lib/gstreamer-1.0: 0
0:00:01.681103248 10282 0xb630be00 DEBUG GST_REGISTRY gstregistry.c:1526:gst_registry_remove_cache_plugins:<registry0> removing cached plugins
0:00:01.683366144 10282 0xb630be00 INFO GST_REGISTRY gstregistry.c:1681:scan_and_update_registry: Registry cache has not changed
0:00:01.685581872 10282 0xb630be00 INFO GST_REGISTRY gstregistry.c:1758:ensure_current_registry: registry reading and updating done, result = 1
0:00:01.688255216 10282 0xb630be00 LOG GST_REGISTRY gstregistry.c:1834:gst_update_registry: registry update succeeded
0:00:01.689033584 10282 0xb630be00 INFO GST_INIT gst.c:807:init_post: GLib runtime version: 2.56.1
0:00:01.691781184 10282 0xb630be00 INFO GST_INIT gst.c:809:init_post: GLib headers version: 2.56.1
0:00:01.694119920 10282 0xb630be00 INFO GST_INIT gst.c:810:init_post: initialized GStreamer successfully
0:00:01.696066208 10282 0xb630be00 DEBUG default gsttracerutils.c:79:_priv_gst_tracing_init: Initializing GstTracer
0:00:01.801560208 10282 0xb630be00 LOG GST_ELEMENT_FACTORY gstelementfactory.c:438:gst_element_factory_make: gstelementfactory: make "audioconvert" "converter"
0:00:01.807143120 10282 0xb630be00 LOG GST_ELEMENT_FACTORY gstelementfactory.c:142:gst_element_factory_find: no such element factory "audioconvert"
0:00:01.811242784 10282 0xb630be00 WARN GST_ELEMENT_FACTORY gstelementfactory.c:456:gst_element_factory_make: no such element factory "audioconvert"!

2018-08-14 12:44:18.041 [ 1] E MediaPlayer:setupPipelineFailed:reason=createConverterElementFailed
2018-08-14 12:44:18.047 [ 1] E MediaPlayer:initPlayerFailed:reason=setupPipelineFailed
(MediaPlayerTest:10282): GStreamer-CRITICAL **: 18:14:18.189: gst_object_unref: assertion 'object != NULL' failed
(MediaPlayerTest:10282): GLib-CRITICAL **: 18:14:18.317: g_main_context_find_source_by_id: assertion 'source_id > 0' failed
2018-08-14 12:44:18.530 [ 1] E RequiresShutdown:~RequiresShutdownFailed:reason=notShutdown,name=
/home/teltvm1954x/android_workplace/Libraries/AVSDeviceSDK/MediaPlayer/test/MediaPlayerTest.cpp:635: Failure
Value of: m_mediaPlayer
Actual: false
Expected: true
[1] + Stopped (signal) GST_DEBUG=7 ./MediaPlayer/test/MediaPlayerTest /data/tmp/AudioData/med_system_alerts_melodic_02.mp3

10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Prethibha avatar image
Prethibha answered ·

Hi,

@Andrey@Amazon

@NewUser-ce201a44-2626-423f-b986-714b1038dd6a

The eroor related to audioconvert solved when I set the env variable

export GST_PLUGIN_PATH=/data/test/install/lib/gstreamer-1.0

But now getting the below error.Could you please check this?

[ RUN ] MediaPlayerTest.testStartPlayWaitForEnd
0:00:00.127801376 19097 0xb638be00 INFO GST_INIT gst.c:586:init_pre: Initializing GStreamer Core Library version 1.15.0.1
0:00:00.187908832 19097 0xb638be00 INFO GST_INIT gst.c:587:init_pre: Using library installed in /home/teltvm1954x/cerbero/build/dist/android_armv7/lib
0:00:00.201129536 19097 0xb638be00 INFO GST_INIT gst.c:607:init_pre: Linux localhost 3.10.0+ #1 SMP PREEMPT Wed Feb 22 08:54:46 PST 2017 armv7l
0:00:00.457501312 19097 0xb638be00 INFO GST_INIT gstmessage.c:127:_priv_gst_message_initialize: init messages
0:00:01.177363120 19097 0xb638be00 INFO GST_INIT gstcontext.c:84:_priv_gst_context_initialize: init contexts
0:00:01.375713312 19097 0xb638be00 INFO GST_PLUGIN_LOADING gstplugin.c:314:_priv_gst_plugin_initialize: registering 0 static plugins
0:00:01.498962048 19097 0xb638be00 INFO GST_PLUGIN_LOADING gstplugin.c:222:gst_plugin_register_static: registered static plugin "staticelements"
0:00:01.512036160 19097 0xb638be00 INFO GST_PLUGIN_LOADING gstplugin.c:224:gst_plugin_register_static: added static plugin "staticelements", result: 1
0:00:01.531832240 19097 0xb638be00 INFO GST_REGISTRY gstregistry.c:1723:ensure_current_registry: reading registry cache: /data/.cache/gstreamer-1.0/registry.arm.bin
0:00:02.685734880 19097 0xb638be00 INFO GST_REGISTRY gstregistrybinary.c:621:priv_gst_registry_binary_read_cache: loaded /data/.cache/gstreamer-1.0/registry.arm.bin in 1.070625 seconds
0:00:02.699620624 19097 0xb638be00 INFO GST_REGISTRY gstregistry.c:1579:scan_and_update_registry: Validating plugins from registry cache: /data/.cache/gstreamer-1.0/registry.arm.bin
0:00:02.996383488 19097 0xb638be00 INFO GST_PLUGIN_LOADING gstpluginloader.c:499:gst_plugin_loader_spawn: No gst-plugin-scanner available, or not working

(MediaPlayerTest:19097): GStreamer-WARNING **: 16:43:41.909: External plugin loader failed. This most likely means that the plugin loader helper binary was not found or could not be run. You might need to set the GST_PLUGIN_SCANNER environment variable if your setup is unusual. This should normally not be required though.
0:00:03.521720080 19097 0xb638be00 WARN GST_PLUGIN_LOADING gstplugin.c:524:gst_plugin_register_func: plugin "/data/test/install/lib/gstreamer-1.0/validate/libgstvalidatessim.so" failed to initialise
0:00:03.606110832 19097 0xb638be00 INFO GST_PLUGIN_LOADING gstpluginloader.c:499:gst_plugin_loader_spawn: No gst-plugin-scanner available, or not working

(MediaPlayerTest:19097): GStreamer-WARNING **: 16:43:42.474: External plugin loader failed. This most likely means that the plugin loader helper binary was not found or could not be run. You might need to set the GST_PLUGIN_SCANNER environment variable if your setup is unusual. This should normally not be required though.
0:00:04.042180384 19097 0xb638be00 ERROR default gstjniutils.c:564:load_java_module: Could not find 'JNI_CreateJavaVM' in '(NULL)': 'JNI_CreateJavaVM': undefined symbol: JNI_CreateJavaVM
0:00:04.054599280 19097 0xb638be00 ERROR default gstjniutils.c:583:load_java_module: Failed to locate required JNI symbols in '(NULL)': 'JNI_GetCreatedJavaVMs': undefined symbol: JNI_GetCreatedJavaVMs
0:00:04.086881280 19097 0xb638be00 ERROR default gstjniutils.c:577:load_java_module: Failed to load Java module 'libdvm': dlopen failed: library "libdvm.so" not found
0:00:04.093062752 19097 0xb638be00 WARN GST_PLUGIN_LOADING gstplugin.c:524:gst_plugin_register_func: plugin "/data/test/install/lib/gstreamer-1.0/libgstandroidmedia.so" failed to initialise
0:00:04.120340480 19097 0xb638be00 INFO GST_PLUGIN_LOADING gstpluginloader.c:499:gst_plugin_loader_spawn: No gst-plugin-scanner available, or not working

(MediaPlayerTest:19097): GStreamer-WARNING **: 16:43:42.987: External plugin loader failed. This most likely means that the plugin loader helper binary was not found or could not be run. You might need to set the GST_PLUGIN_SCANNER environment variable if your setup is unusual. This should normally not be required though.
0:00:04.149045152 19097 0xb638be00 WARN GST_PLUGIN_LOADING gstplugin.c:789:_priv_gst_plugin_load_file_for_registry: module_open failed: dlopen failed: library "libgnustl_shared.so" not found

........

.....

Regards,

Prethibha

10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.