Forums - Error and Impact Analysis: Initialization of fastrpc in QNN

5 posts / 0 new
Last post
Error and Impact Analysis: Initialization of fastrpc in QNN
jiangmingyuan
Join Date: 19 Oct 21
Posts: 4
Posted: Fri, 2023-06-30 02:21

We are currently using both fastcv and qnn in our engineering software. While fastcv initializes fastrpc successfully, we encountered an issue with qnn's `m_qnnFunctionPointers.qnnInterface.deviceCreate` function when trying to initialize fastrpc. The error message displayed is "Session already open on domain 3, Error 0xe: set_unsigned_pd_attribute failed for domain 3."

However, despite this error, the `deviceCreate` function returns a successful code, and the inference runs normally without any apparent issues. We are concerned about the impact or risks associated with this error. Attached below is the log of the detailed error message.

 

"""

Gen3 SOC detected, loading v68 libs
2023-06-09 10:34:59.977 3133-6666/com.xxxx.album.service D/fastcv_lib_log: Begin of domain_channel_open cdsp_domain_handle=0x6f4b786180  value of cdsp_domain_handle=0
2023-06-09 10:34:59.977 3133-6666/com.xxxx.album.service I/com.xxxx.album.service: vendor/qcom/proprietary/adsprpc/src/fastrpc_config.c:200: Reading configuration file: com.xxxx.album.service.debugconfig
2023-06-09 10:35:00.001 3133-6666/com.xxxx.album.service I/com.xxxx.album.service: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2843: Created user PD on domain 3 (attrs 0x8, debug_trace 0x0)
2023-06-09 10:35:00.006 3133-6666/com.xxxx.album.service I/com.xxxx.album.service: vendor/qcom/proprietary/adsprpc/src/fastrpc_perf.c:273: fastrpc_perf_init: enabled systrace 0x0 and RPC traces (kernel 0, dsp 0) with frequency 1000
2023-06-09 10:35:00.008 3133-8794/com.xxxx.album.service I/com.xxxx.album.service: vendor/qcom/proprietary/adsprpc/src/log_config.c:345: file_watcher_thread starting for domain 3
2023-06-09 10:35:00.008 3133-8794/com.xxxx.album.service E/com.xxxx.album.service: vendor/qcom/proprietary/adsprpc/src/log_config.c:268:Error 0x200: fopen failed for /vendor/lib/rfsa/dsp/sdk//com.xxxx.album.service.farf. (No such file or directory)
2023-06-09 10:35:00.008 3133-8794/com.xxxx.album.service E/com.xxxx.album.service: vendor/qcom/proprietary/adsprpc/src/log_config.c:268:Error 0x200: fopen failed for /vendor/lib/rfsa/adsp/com.xxxx.album.service.farf. (No such file or directory)
2023-06-09 10:35:00.008 3133-8794/com.xxxx.album.service E/com.xxxx.album.service: vendor/qcom/proprietary/adsprpc/src/log_config.c:268:Error 0x200: fopen failed for /vendor/lib/rfsa/dsp/com.xxxx.album.service.farf. (No such file or directory)
2023-06-09 10:35:00.008 3133-8794/com.xxxx.album.service E/com.xxxx.album.service: vendor/qcom/proprietary/adsprpc/src/log_config.c:268:Error 0x200: fopen failed for /vendor/dsp/com.xxxx.album.service.farf. (No such file or directory)
2023-06-09 10:35:00.008 3133-8793/com.xxxx.album.service I/com.xxxx.album.service: vendor/qcom/proprietary/adsprpc/src/listener_android.c:111: listener thread starting
2023-06-09 10:35:00.009 3133-8793/com.xxxx.album.service E/ion: ioctl c0044901 failed with code -1: Inappropriate ioctl for device
2023-06-09 10:35:00.010 3133-8793/com.xxxx.album.service I/com.xxxx.album.service: vendor/qcom/proprietary/adsprpc/src/mod_table.c:687: open_mod_table_open_from_static: reverse module apps_std opened with handle 0x485dc7e0 (idx 0)
2023-06-09 10:35:00.014 3133-8793/com.xxxx.album.service I/com.xxxx.album.service: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:879: Successfully opened file /vendor/lib/rfsa/adsp/libfastcvdsp_v68_skel.so
2023-06-09 10:35:00.015 3133-8793/com.xxxx.album.service I/com.xxxx.album.service: vendor/qcom/proprietary/adsprpc/src/mod_table.c:687: open_mod_table_open_from_static: reverse module apps_mem opened with handle 0x485dc8e0 (idx 1)
2023-06-09 10:35:00.040 3133-8793/com.xxxx.album.service I/com.xxxx.album.service: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:879: Successfully opened file /vendor/lib/rfsa/adsp/libfastcvadsp_v68.so
2023-06-09 10:35:00.076 3133-8793/com.xxxx.album.service I/com.xxxx.album.service: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:879: Successfully opened file /vendor/lib/rfsa/adsp/libdspCV_v68_skel.so
2023-06-09 10:35:00.110 3133-8793/com.xxxx.album.service I/com.xxxx.album.service: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:879: Successfully opened file /vendor/lib/rfsa/dsp/sdk//libworker_pool.so
2023-06-09 10:35:00.129 3133-6666/com.xxxx.album.service I/com.xxxx.album.service: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1401: remote_handle64_open: Successfully opened handle 0xfcc0dd50 for file:///libfastcvdsp_v68_skel.so?fastcvdsp_skel_handle_invoke&_modver=1.0&_dom=cdsp on domain 3
2023-06-09 10:35:00.129 3133-6666/com.xxxx.album.service D/fastcv_lib_log: Domain open is successful on CDSP. cdsp_domain_handle address=0x6f4b786180  cdsp_domain_handle value=12970367407808896336
2023-06-09 10:35:00.129 3133-6666/com.xxxx.album.service D/fastcv_lib_log: End of domain_channel_open for CDSP
2023-06-09 10:35:00.129 3133-6666/com.xxxx.album.service D/fastcv_lib_log: In fcvQ6SessionInit : attrib.value=2  
2023-06-09 10:35:00.129 3133-6666/com.xxxx.album.service E/fastcv_lib_log: Begin of fcvQ6SessionInit_internal dsp_handle=12970367407808896336 23079 vendor/qcom/proprietary/cv-noship/fastcv/src/qdsp_rpc/multi_domains/qcvaq6rpc_clnt_abstractionLayer.c
2023-06-09 10:35:00.134 3133-6666/com.xxxx.album.service E/fastcv_lib_log: Checking for fcvVersion  23086 vendor/qcom/proprietary/cv-noship/fastcv/src/qdsp_rpc/multi_domains/qcvaq6rpc_clnt_abstractionLayer.c
2023-06-09 10:35:00.134 3133-6666/com.xxxx.album.service D/fastcv_lib_log: Q6 initialized successfully. Q6 FastCV functions mode 2 are enabled.
2023-06-09 10:35:00.134 3133-6666/com.xxxx.album.service I/fastcv_lib_log: FIT:(FeatureName=>QCVAQ6, Initialized=>1)
2023-06-09 10:35:00.443 3133-6666/com.xxxx.album.service I/Adreno-GSL_RPC: <gsl_context_create:3044>: ctxt_id 227, sync_type 2
2023-06-09 10:35:00.474 3133-6666/com.xxxx.album.service E/: Error -30 on vendor/qcom/proprietary/cv-noship/fastcv/src/gpgpu/engine/qcvGpuInitialization.c:917: Failed to create program with Binary. Enum ID: 60
2023-06-09 10:35:00.475 3133-6666/com.xxxx.album.service D/: vendor/qcom/proprietary/cv-noship/fastcv/src/gpgpu/engine/qcvGpuInitialization.c:925: Return code -30 in creating kernel CopyRotated:
2023-06-09 10:35:00.475 3133-6666/com.xxxx.album.service D/: vendor/qcom/proprietary/cv-noship/fastcv/src/gpgpu/engine/qcvGpuInitialization.c:1283: Retry building programs ... OK
2023-06-09 10:35:00.521 3133-6666/com.xxxx.album.service D/: vendor/qcom/proprietary/cv-noship/fastcv/src/gpgpu/engine/qcvGpuInitialization.c:1299: Programs not created for device 0
2023-06-09 10:35:00.522 3133-6666/com.xxxx.album.service D/fastcv_lib_log: CDSP is available
2023-06-09 10:35:00.522 3133-6666/com.xxxx.album.service D/fastcv_lib_log: GPU is available
2023-06-09 10:35:00.534 3133-6666/com.xxxx.album.service D/com.xxxx.album.service: /prj/qct/webtech_hyd1/mlg_user_admin/projects/qnn_tools/QNNTools/Toolchain/Hexagon/hexagon-sdk-4.2.0/ipc/fastrpc/rpcmem/src/rpcmem_android.c:38:dummy call to rpcmem_init, rpcmem APIs will be used from libxdsprpc
2023-06-09 10:35:00.534 3133-6666/com.xxxx.album.service E/com.xxxx.album.service: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1917: set_unsigned_pd_attribute: Session already open on domain 3 ! Request unsigned offload before making any RPC calls
2023-06-09 10:35:00.534 3133-6666/com.xxxx.album.service E/com.xxxx.album.service: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1923: Error 0xe: set_unsigned_pd_attribute failed for domain 3
2023-06-09 10:35:00.534 3133-6666/com.xxxx.album.service E/com.xxxx.album.service: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2178: Error 0xe: remote_session_control failed for request ID 2 (errno Success)
2023-06-09 10:35:00.534 3133-6666/com.xxxx.album.service E/com.xxxx.album.service: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1937: store_domain_thread_params: Session already open on domain 3 ! Set thread params before making any RPC calls
2023-06-09 10:35:00.534 3133-6666/com.xxxx.album.service E/com.xxxx.album.service: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1964: Error 0xe: store_domain_thread_params failed for domain 3 for thread priority -1, stack size 17408
2023-06-09 10:35:00.534 3133-6666/com.xxxx.album.service E/com.xxxx.album.service: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2178: Error 0xe: remote_session_control failed for request ID 1 (errno Success)
2023-06-09 10:35:00.535 3133-8793/com.xxxx.album.service I/com.xxxx.album.service: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:879: Successfully opened file /vendor/lib/rfsa/adsp/libQnnHtpV68Skel.so
2023-06-09 10:35:00.585 3133-8793/com.xxxx.album.service I/com.xxxx.album.service: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:879: Successfully opened file /vendor/lib/rfsa/dsp/sdk//libc++.so.1
2023-06-09 10:35:00.607 3133-8793/com.xxxx.album.service I/com.xxxx.album.service: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:879: Successfully opened file /vendor/lib/rfsa/dsp/sdk//libc++abi.so.1
2023-06-09 10:35:00.687 3133-6666/com.xxxx.album.service I/com.xxxx.album.service: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1401: remote_handle64_open: Successfully opened handle 0xfcc1a0d0 for file:///libQnnHtpV68Skel.so?qnn_skel_handle_invoke&_modver=1.0&_dom=cdsp on domain 3
2023-06-09 10:35:00.725 3133-6666/com.xxxx.album.service D/fastcv_lib_log: Fastcv vendor library
2023-06-09 10:35:00.727 3133-6666/com.xxxx.album.service D/SENTY_QNN: Data masking Init Success !

"""

 

 

 

 

 

  • Up0
  • Down0
weihuan
Join Date: 12 Apr 20
Posts: 270
Posted: Fri, 2023-06-30 04:23

Dear developer,

What's usecase for your questions? QNN still can't suport on QDN yet.

BR.

Wei

  • Up0
  • Down0
jiangmingyuan
Join Date: 19 Oct 21
Posts: 4
Posted: Sun, 2023-07-02 18:49

Thanks for your attention, we are implementing a basic image desensitization pipeline. We use fastcv for image preprocessing and qnn for YOLO model inference. During execution, we encountered the aforementioned error log when calling qnn.

  • Up0
  • Down0
jiangmingyuan
Join Date: 19 Oct 21
Posts: 4
Posted: Wed, 2023-07-05 03:02

Because of the tight deadline for our project, could you please help us check this issue?
--------------------------------------------------------------------------------------------------------------
We are implementing a basic image desensitization pipeline. We use fastcv for image preprocessing and qnn for YOLO model inference. During execution, we encountered the aforementioned error log when calling qnn.

 

  • Up0
  • Down0
jiangmingyuan
Join Date: 19 Oct 21
Posts: 4
Posted: Thu, 2023-07-06 01:36

The log above is the error log from Android, and the log below is the error information generated when running demo app that directly calls qnn.

-----------------------------------------------------------------------------------------------------------------------------------------------------------------

87.5ms [  INFO ] Backend       build version: v2.5.0.221123101258_42157-auto
    87.5ms [  INFO ] Initializing logging in the backend. Callback: [0x7a07f76480], Log Level: [3]
     0.0ms [  INFO ]  <I> Qnn log initialized

    87.7ms [  INFO ] Initialize Backend Returned Status = 0
    87.8ms [  INFO ] ###################01.
     0.0ms [  INFO ]  <I> exit with 0

     0.0ms [  INFO ]  <I> exit with 0

     0.0ms [  INFO ]  <I> exit with 0

     0.0ms [  INFO ]  <I> exit with 0

     0.0ms [  INFO ]  <I> exits with 2, successfully initialized rpc memory

DspTransport.createUnsignedPD unsigned session flag already set
ERROR 0xe: remote_session_control failed to set thread params
     0.0ms [  INFO ]  <I> setSkelLogLevelInternal return 0

     0.0ms [  INFO ]  <I> Polling not supported in createDevicePollingContext

   205.7ms [  INFO ] ###################02.
     0.0ms [  INFO ]  <I> Context create from binary context 1

     0.0ms [  INFO ]  <I> Polling not supported in initializeGraphStats

     0.0ms [  INFO ]  <I> rpcMemoryAlloc 737464 isInit 1

     0.0ms [  INFO ]  <I> rpcMemoryAlloc 106304 isInit 1

     0.0ms [  INFO ]  <I> rpcMemoryAlloc 3504 isInit 1

 

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