Forums - snpe clang library DSP runtime crash

3 posts / 0 new
Last post
snpe clang library DSP runtime crash
aliqing0122
Join Date: 16 Nov 15
Posts: 2
Posted: Wed, 2019-02-27 03:11

Hi

I am running crash when running with clang libraries DSP runtime, GPU runtime is ok;

snpe version: 1.22

libraries: aarch64-android-clang5.0

clang: 5.0

error message:

--------- beginning of crash
06-10 19:58:52.665 24342 24412 F libc    : Fatal signal 6 (SIGABRT), code -6 in tid 24412 (ImageListener)
06-10 19:58:52.701 24428 24428 I crash_dump64: obtaining output fd from tombstoned
06-10 19:58:52.701  1155  1155 I /system/bin/tombstoned: received crash request for pid 24342
06-10 19:58:52.702 24428 24428 I crash_dump64: performing dump of process 24342 (target tid = 24412)
06-10 19:58:52.702 24428 24428 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
06-10 19:58:52.702 24428 24428 F DEBUG   : Build fingerprint: 'KDDI/LYV_jp_kdi/LYV:8.0.0/A8290/00.00.00:eng/test-keys'
06-10 19:58:52.703 24428 24428 F DEBUG   : Revision: '0'
06-10 19:58:52.703 24428 24428 F DEBUG   : ABI: 'arm64'
06-10 19:58:52.703 24428 24428 F DEBUG   : pid: 24342, tid: 24412, name: ImageListener  >>> com.li.ai.classifydemo <<<
06-10 19:58:52.703 24428 24428 F DEBUG   : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
06-10 19:58:52.704 24428 24428 F DEBUG   : Abort message: 'terminating with uncaught exception of type DlSystem::RuntimeException: Failed to execute network.  Error code: -6.'
06-10 19:58:52.704 24428 24428 F DEBUG   :     x0   0000000000000000  x1   0000000000005f5c  x2   0000000000000006  x3   0000000000000008
06-10 19:58:52.704 24428 24428 F DEBUG   :     x4   fefeff6fff2d352c  x5   fefeff6fff2d352c  x6   fefeff6fff2d352c  x7   7f7f7f7f7f7f7f7f
06-10 19:58:52.704 24428 24428 F DEBUG   :     x8   0000000000000083  x9   1dfc626cb524337b  x10  0000000000000000  x11  0000000000000001
06-10 19:58:52.704 24428 24428 F DEBUG   :     x12  ffffffffffffffff  x13  0000000000000001  x14  0026c5052e3c2d73  x15  0000e4b69e53de9c
06-10 19:58:52.704 24428 24428 F DEBUG   :     x16  0000007161f1d2e8  x17  0000007161ebf090  x18  1dfc626cb524337b  x19  0000000000005f16
06-10 19:58:52.704 24428 24428 F DEBUG   :     x20  0000000000005f5c  x21  00000071407789b8  x22  00000000ffffff80  x23  00000000ffffffc8
06-10 19:58:52.704 24428 24428 F DEBUG   :     x24  0000007140778a80  x25  0000007140778950  x26  0000007140778990  x27  0000000000000020
06-10 19:58:52.704 24428 24428 F DEBUG   :     x28  0000007145cae000  x29  00000071407788c0  x30  0000007161e731a4
06-10 19:58:52.704 24428 24428 F DEBUG   :     sp   0000007140778880  pc   0000007161ebf098  pstate 0000000060000000
06-10 19:58:52.706 24428 24428 F DEBUG   :
06-10 19:58:52.706 24428 24428 F DEBUG   : backtrace:
06-10 19:58:52.706 24428 24428 F DEBUG   :     #00 pc 000000000006a098  /system/lib64/libc.so (tgkill+8)
06-10 19:58:52.706 24428 24428 F DEBUG   :     #01 pc 000000000001e1a0  /system/lib64/libc.so (abort+88)
06-10 19:58:52.706 24428 24428 F DEBUG   :     #02 pc 00000000000a1ce4  /data/app/com.li.ai.classifydemo-dIupw5T-psbwLpkEtOzvYQ==/lib/arm64/libc++_shared.so
06-10 19:58:52.706 24428 24428 F DEBUG   :     #03 pc 00000000000a1ee0  /data/app/com.li.ai.classifydemo-dIupw5T-psbwLpkEtOzvYQ==/lib/arm64/libc++_shared.so
06-10 19:58:52.706 24428 24428 F DEBUG   :     #04 pc 00000000000c8960  /data/app/com.li.ai.classifydemo-dIupw5T-psbwLpkEtOzvYQ==/lib/arm64/libc++_shared.so
06-10 19:58:52.706 24428 24428 F DEBUG   :     #05 pc 00000000000c8028  /data/app/com.li.ai.classifydemo-dIupw5T-psbwLpkEtOzvYQ==/lib/arm64/libc++_shared.so (__cxa_throw+128)
06-10 19:58:52.706 24428 24428 F DEBUG   :     #06 pc 00000000001fda18  /data/app/com.li.ai.classifydemo-dIupw5T-psbwLpkEtOzvYQ==/lib/arm64/libSNPE.so
06-10 19:58:52.706 24428 24428 F DEBUG   :     #07 pc 00000000001e86d0  /data/app/com.li.ai.classifydemo-dIupw5T-psbwLpkEtOzvYQ==/lib/arm64/libSNPE.so
06-10 19:58:52.706 24428 24428 F DEBUG   :     #08 pc 00000000000fb778  /data/app/com.li.ai.classifydemo-dIupw5T-psbwLpkEtOzvYQ==/lib/arm64/libSNPE.so
06-10 19:58:52.706 24428 24428 F DEBUG   :     #09 pc 00000000000f79b8  /data/app/com.li.ai.classifydemo-dIupw5T-psbwLpkEtOzvYQ==/lib/arm64/libSNPE.so (_ZN10DnnRuntime10DnnRuntime7ExecuteERKNSt6__ndk13mapINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPKN3zdl8DlSystem7ITensorENS1_4lessIS8_EENS6_INS1_4pairIKS8_SD_EEEEEERNS2_IS8_NS1_10shared_ptrISB_EESF_NS6_INSG_ISH_SO_EEEEEERN7DiagLog11DiagMessageE+1944)
06-10 19:58:52.706 24428 24428 F DEBUG   :     #10 pc 00000000000bcacc  /data/app/com.li.ai.classifydemo-dIupw5T-psbwLpkEtOzvYQ==/lib/arm64/libSNPE.so (_ZN3zdl4SNPE11SnpeRuntime7ExecuteERKNS_8DlSystem9TensorMapERS3_+444)
06-10 19:58:52.706 24428 24428 F DEBUG   :     #11 pc 00000000000bafc0  /data/app/com.li.ai.classifydemo-dIupw5T-psbwLpkEtOzvYQ==/lib/arm64/libSNPE.so (_ZN3zdl4SNPE4SNPE7executeERKNS_8DlSystem9TensorMapERS3_+16)
06-10 19:58:52.763 10335 10364 E CamX    : [ERROR][STATS_AF] camxcafioutil.cpp:951 ReadSensorInput() LensFocusRange is NULL
06-10 19:58:52.769 10335 10363 I AE_CORE : cipAeCoreScene :0.065582 color:0 sceneKind:3
06-10 19:58:52.769 10335 10363 I AE_CORE : cipIsSpot 150 5.000000 200 bvthresh:2.000000 contrastRatiothresh:0.400000

how can i solve this problem?

Thanks!

  • Up0
  • Down0
KaiJ
Join Date: 4 Apr 18
Posts: 4
Posted: Wed, 2019-02-27 04:19

Hi.

How many output nodes do you have all together in ouput layers?

I'm asking this because I get that same error (Failed to execute network.  Error code: -6) if I have more than two output nodes. This happens only with DSP runtime. I'm running Mobilenet SSD and the output layer unfortunately has 3 nodes, so it does not work with DSP runtime, but it works if I change the output layers so that there are only two output nodes.

Is it possible for you to change the output layers just to test if it works with different ouput layers or numbers of output nodes? And if you can it would be interesting to hear your results.

  • Up0
  • Down0
aliqing0122
Join Date: 16 Nov 15
Posts: 2
Posted: Wed, 2019-02-27 17:36

Yes, there are 3 output nodes, does dsp not support the output of 3 nodes for mobile SSD?

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.