Forums - meet "Error from rpc for backend" when use snpe(dsp)

2 posts / 0 new
Last post
meet "Error from rpc for backend" when use snpe(dsp)
1968323029
Join Date: 10 Aug 22
Posts: 2
Posted: Fri, 2023-11-03 00:02

When i use snpebuilder->build(), I got error "USER_ERROR:DNN_RUNTIME: Error from rpc for backend initialization, exits with 4000, fail to initialize". and returned nullptr.

device: vivo iqoo neo5 

cpu: 870

snpe version: 2.10.0.4541

console log:

SNPE-DebugLog                                        I  15:00:39.970704 [USER_INFO:SNPE] Logging initialized
SNPE-DebugLog                                        I  15:00:39.971642 [USER_INFO:SNPE] SNPE isRuntimeAvailable runtime - 2, option - 2
SNPE-DebugLog                                        I  15:00:39.976281 [USER_INFO:DNN_RUNTIME]  <I> Qnn log initialized
SNPE-DebugLog                                        I  15:00:39.976432 [USER_INFO:DNN_RUNTIME]  <I> QnnBackend_getApiVersion exits with 0
SNPE-DebugLog                                        I  15:00:39.976562 [USER_INFO:DNN_RUNTIME]  <I> BackendLifecycle: Add client, clientCnt = 1, callCnt = 0
SNPE-DebugLog                                        I  15:00:39.976622 [USER_INFO:DNN_RUNTIME]  <I> exits with 0
SNPE-DebugLog                                        I  15:00:39.976656 [USER_INFO:DNN_RUNTIME]  <I> exits with 0
SNPE-DebugLog                                        I  15:00:39.976690 [USER_INFO:DNN_RUNTIME]  <I> exits with 0
SNPE-DebugLog                                        I  15:00:39.977126 [USER_INFO:DNN_RUNTIME]  <I> exits with 0
SNPE-DebugLog                                        I  15:00:39.977167 [USER_INFO:DNN_RUNTIME]  <I> exit with 0
SNPE-DebugLog                                        I  15:00:39.977197 [USER_INFO:DNN_RUNTIME]  <I> exit with 0
SNPE-DebugLog                                        I  15:00:39.977225 [USER_INFO:DNN_RUNTIME]  <I> exit with 0
SNPE-DebugLog                                        I  15:00:39.977252 [USER_INFO:DNN_RUNTIME]  <I> exit with 0
SNPE-DebugLog                                        I  15:00:39.977279 [USER_INFO:DNN_RUNTIME]  <I> exit with 0
SNPE-DebugLog                                        I  15:00:39.977307 [USER_INFO:DNN_RUNTIME]  <I> exits with 0
SNPE-DebugLog                                        I  15:00:39.977362 [USER_INFO:DNN_RUNTIME]  <I> exits with 0
SNPE-DebugLog                                        I  15:00:39.977397 [USER_INFO:DNN_RUNTIME]  <I> exit with 0
com.at...PETest                                      D  /prj/qct/webtech_hyd/pcgbait/projects/zsnpe_waipio/avante-tools/prebuilt/dsp/hexagon-sdk-4.1.0/ipc/fastrpc/rpcmem/src/rpcmem_android.c:38:dummy call to rpcmem_init, rpcmem APIs will be used from libxdsprpc
SNPE-DebugLog                                        I  15:00:39.977455 [USER_INFO:DNN_RUNTIME]  <I> exits with 2, successfully initialized rpc memory
SNPE-DebugLog                                        I  15:00:39.977491 [USER_INFO:DNN_RUNTIME]  <I> exits with 0
DefaultDispatch                                      W  type=1400 audit(0.0:10070): avc: denied { read } for name="adsprpc-smd-secure" dev="tmpfs" ino=14696 scontext=u:r:untrusted_app:s0:c176,c256,c512,c768 tcontext=u:object_r:vendor_xdsp_device:s0 tclass=chr_file permissive=0 app=com.xxx.SNPETest
SNPE-DebugLog                                        I  15:00:39.980132 [USER_INFO:DNN_RUNTIME]  <I> exits with 0
SNPE-DebugLog                                        E  15:00:39.980202 [USER_ERROR:DNN_RUNTIME]  <E> Error from rpc for backend initialization
SNPE-DebugLog                                        I  15:00:39.980239 [USER_INFO:DNN_RUNTIME]  <I> qnnBackendInit exits with 4000
SNPE-DebugLog                                        E  15:00:39.980269 [USER_ERROR:DNN_RUNTIME]  <E> exits with 4000, fail to initialize
SNPE-DebugLog                                        I  15:00:39.980301 [USER_INFO:DNN_RUNTIME]  <I> exits with 0
SNPE-DebugLog                                        I  15:00:39.980331 [USER_INFO:DNN_RUNTIME]  <I> exits with 0
SNPE-DebugLog                                        I  15:00:39.980366 [USER_INFO:DNN_RUNTIME]  <I> Qnn log set default level
SNPE-DebugLog                                        I  15:00:39.980397 [USER_INFO:DNN_RUNTIME]  <I> exits with 0
DefaultDispatch                                      W  type=1400 audit(0.0:10071): avc: denied { read } for name="adsprpc-smd-secure" dev="tmpfs" ino=14696 scontext=u:r:untrusted_app:s0:c176,c256,c512,c768 tcontext=u:object_r:vendor_xdsp_device:s0 tclass=chr_file permissive=0 app=com.xxx.SNPETest
SNPE-DebugLog                                        I  15:00:39.981409 [USER_INFO:DNN_RUNTIME]  <I> exits with 0
SNPE-DebugLog                                        E  15:00:39.981477 [USER_ERROR:DNN_RUNTIME]  <E> Error from rpc transport
SNPE-DebugLog                                        E  15:00:39.981514 [USER_ERROR:DNN_RUNTIME]  <E> Qnn log level setting failed
SNPE-DebugLog                                        I  15:00:39.981550 [USER_INFO:DNN_RUNTIME]  <I> backendInitializeInternal exits with 4000
SNPE-DebugLog                                        I  15:00:39.981582 [USER_INFO:DNN_RUNTIME]  <I> exits with 0

 

  • Up0
  • Down0
weihuan
Join Date: 12 Apr 20
Posts: 270
Posted: Sun, 2023-11-05 00:09

Dear developer,

You mean your target platform was 870? Can you use some latest Qualcomm device like as 8Gen2 to check it on SNPE/QNN again?

BR.
Wei

  • 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.