Hi,
my mobilephone: mi 9 with Snapdragon 855 and Android 11 version.
SNPE sdk aar version: 1.55.0 , download in Qualcomm.com
Android sdk: version 29
When I set runtimeorder to DSP in android project, meet errors, did SNPE support 855 DSP ?
"builder.setRuntimeOrder(Runtime.DSP)"
"""
vendor/qcom/proprietary/commonsys-intf/adsprpc/src/fastrpc_apps_user.c:2736: fastrpc_apps_user_init done
E/com.example.srdemo: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/fastrpc_apps_user.c:2339: Error 0xd: open_shell failed for domain 3 search paths used are /dsp/, /vendor/dsp/, /vendor/dsp/xdsp/
I/com.example.srdemo: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/fastrpc_config.c:133: Reading configuration file: com.example.srdemo.debugconfig
E/com.example.srdemo: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/apps_std_imp.c:922:Error 0x2: fileExists failed for path /data/app/~~CZEPVjKDLRK33Lyqa7Zz0g==/com.example.srdemo-BZVGT9iSO-SvczRyy6pErA==/lib/arm64/com.example.srdemo.debugconfig
vendor/qcom/proprietary/commonsys-intf/adsprpc/src/fastrpc_config.c:57::error: 2: AEE_SUCCESS == (nErr = apps_std_fileExists(path, &fileExists))
I/com.example.srdemo: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/fastrpc_config.c:105: Error 2: failed for /data/app/~~CZEPVjKDLRK33Lyqa7Zz0g==/com.example.srdemo-BZVGT9iSO-SvczRyy6pErA==/lib/arm64/com.example.srdemo.debugconfig with errno(No such file or directory)
E/com.example.srdemo: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/apps_std_imp.c:922:Error 0x2: fileExists failed for path /system/vendor/lib/rfsa/adsp/com.example.srdemo.debugconfig
vendor/qcom/proprietary/commonsys-intf/adsprpc/src/fastrpc_config.c:57::error: 2: AEE_SUCCESS == (nErr = apps_std_fileExists(path, &fileExists))
I/com.example.srdemo: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/fastrpc_config.c:105: Error 2: failed for /system/vendor/lib/rfsa/adsp/com.example.srdemo.debugconfig with errno(No such file or directory)
E/com.example.srdemo: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/apps_std_imp.c:922:Error 0x2: fileExists failed for path /vendor/lib/rfsa/adsp/com.example.srdemo.debugconfig
vendor/qcom/proprietary/commonsys-intf/adsprpc/src/fastrpc_config.c:57::error: 2: AEE_SUCCESS == (nErr = apps_std_fileExists(path, &fileExists))
I/com.example.srdemo: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/fastrpc_config.c:105: Error 2: failed for /vendor/lib/rfsa/adsp/com.example.srdemo.debugconfig with errno(No such file or directory)
W/.example.srdemo: type=1400 audit(0.0:161791): avc: denied { read } for name="adsprpc-smd-secure" dev="tmpfs" ino=23418 scontext=u:r:untrusted_app_29:s0:c82,c258,c512,c768 tcontext=u:object_r:vendor_xdsp_device:s0 tclass=chr_file permissive=0 app=com.example.srdemo
W/.example.srdemo: type=1400 audit(0.0:161792): avc: denied { search } for name="/" dev="sde48" ino=2 scontext=u:r:untrusted_app_29:s0:c82,c258,c512,c768 tcontext=u:object_r:adsprpcd_file:s0 tclass=dir permissive=0 app=com.example.srdemo
I/com.example.srdemo: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/fastrpc_apps_user.c:2510: Successfully created user PD on domain 3 (attrs 0x0, debug_trace 0x0)
I/com.example.srdemo: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/listener_android.c:119: listener thread starting
I/com.example.srdemo: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/fastrpc_perf.c:239: fastrpc_perf_init: enabled RPC traces (kernel 0, dsp 0) with frequency 1000
I/com.example.srdemo: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/log_config.c:339: file_watcher_thread starting for domain 3
E/com.example.srdemo: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/apps_std_imp.c:922:Error 0x2: fileExists failed for path /data/app/~~CZEPVjKDLRK33Lyqa7Zz0g==/com.example.srdemo-BZVGT9iSO-SvczRyy6pErA==/lib/arm64/com.example.srdemo.farf
vendor/qcom/proprietary/commonsys-intf/adsprpc/src/log_config.c:168::error: 2: AEE_SUCCESS == (nErr = apps_std_fileExists(path,&fileExists))
vendor/qcom/proprietary/commonsys-intf/adsprpc/src/log_config.c:262:Error 2: fopen failed for /data/app/~~CZEPVjKDLRK33Lyqa7Zz0g==/com.example.srdemo-BZVGT9iSO-SvczRyy6pErA==/lib/arm64/com.example.srdemo.farf. (No such file or directory)
vendor/qcom/proprietary/commonsys-intf/adsprpc/src/apps_std_imp.c:922:Error 0x2: fileExists failed for path /system/vendor/lib/rfsa/adsp/com.example.srdemo.farf
vendor/qcom/proprietary/commonsys-intf/adsprpc/src/log_config.c:168::error: 2: AEE_SUCCESS == (nErr = apps_std_fileExists(path,&fileExists))
vendor/qcom/proprietary/commonsys-intf/adsprpc/src/log_config.c:262:Error 2: fopen failed for /system/vendor/lib/rfsa/adsp/com.example.srdemo.farf. (No such file or directory)
vendor/qcom/proprietary/commonsys-intf/adsprpc/src/apps_std_imp.c:922:Error 0x2: fileExists failed for path /vendor/lib/rfsa/adsp/com.example.srdemo.farf
vendor/qcom/proprietary/commonsys-intf/adsprpc/src/log_config.c:168::error: 2: AEE_SUCCESS == (nErr = apps_std_fileExists(path,&fileExists))
vendor/qcom/proprietary/commonsys-intf/adsprpc/src/log_config.c:262:Error 2: fopen failed for /vendor/lib/rfsa/adsp/com.example.srdemo.farf. (No such file or directory)
I/com.example.srdemo: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/mod_table.c:680: open_mod_table_open_from_static: reverse module apps_std opened with handle 0xcd1688f0 (idx 0)
vendor/qcom/proprietary/commonsys-intf/adsprpc/src/mod_table.c:490: open_mod_table_open_dynamic: dynamic reverse module apps_std already found with handle 0xcd1688f0 (idx 0)
I/com.example.srdemo: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/mod_table.c:569: open_mod_table_open_dynamic: dynamic reverse module apps_std opened with handle 0xcd1688f0 (idx 1)
W/com.example.srdemo: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/apps_std_imp.c:805: Warning: apps_std_fopen_with_env failed with 0xd for oemconfig.so (Permission denied)
E/com.example.srdemo: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/listener_android.c:64::error: 512: AEE_SUCCESS == (nErr = mod_table_close(handle, errStr, errStrLen, dlErr))
I/com.example.srdemo: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/apps_std_imp.c:796: Successfully opened file /system/vendor/lib/rfsa/adsp/libsnpe_dsp_v66_domains_v2_skel.so
W/com.example.srdemo: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/apps_std_imp.c:805: Warning: apps_std_fopen_with_env failed with 0xd for testsig-0xa454e1ab.so (Permission denied)
W/com.example.srdemo: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/apps_std_imp.c:805: Warning: apps_std_fopen_with_env failed with 0xd for testsig.so (Permission denied)
I/com.example.srdemo: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/mod_table.c:680: open_mod_table_open_from_static: reverse module apps_mem opened with handle 0xcd1689f0 (idx 1)
W/com.example.srdemo: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/apps_std_imp.c:805: Warning: apps_std_fopen_with_env failed with 0xd for libhta_dsp_debug.so (Permission denied)
I/com.example.srdemo: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/fastrpc_apps_user.c:1204: remote_handle64_open: Successfully opened handle 0x62686c00 for file:///libsnpe_dsp_v66_domains_v2_skel.so?snpe_dsp_domains_v2_skel_handle_invoke&_modver=1.0&_dom=cdsp on domain 3
D/AndroidRuntime: Shutting down VM
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.srdemo, PID: 19061
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.srdemo/com.example.srdemo.MainActivity}: com.qualcomm.qti.snpe.SnpeError$IllegalArgsOrStateException: error_code : 73 error_message: None of the selected runtime targets are supported.
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3540)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3700)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2136)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:236)
at android.app.ActivityThread.main(ActivityThread.java:8061)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)
Caused by: com.qualcomm.qti.snpe.SnpeError$IllegalArgsOrStateException: error_code : 73 error_message: None of the selected runtime targets are supported.
at com.qualcomm.qti.snpe.SnpeError.getIllegalError(SnpeError.java:51)
at com.qualcomm.qti.snpe.SNPE$NeuralNetworkBuilder.selectRuntime(SNPE.java:438)
at com.qualcomm.qti.snpe.SNPE$NeuralNetworkBuilder.build(SNPE.java:409)
at com.example.srdemo.render.JniLib.buildNetwork(JniLib.java:99)
at com.example.srdemo.render.JniLib.InitWithByteBufferFromJNI(JniLib.java:112)
at com.example.srdemo.render.JniLib.Init(JniLib.java:251)
at com.example.srdemo.MainActivity.onCreate(MainActivity.java:65)
at android.app.Activity.performCreate(Activity.java:8143)
at android.app.Activity.performCreate(Activity.java:8114)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1310)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3513)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3700)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2136)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:236)
at android.app.ActivityThread.main(ActivityThread.java:8061)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)
"""
Dear customer,
The answer is yes. 855 DSP is supported.
Regarding your exact issue, this maybe related Mi9 has some limitation on DSP access.
So could you please try to use Unsigned PD to access the DSP?
If unsigned PD not working, you have to use other mobile phone to do a cross test.
Thanks.
Hi yahuuu,
You can refer to hwo to use DSP unsigned PD.
https://zhuanlan.zhihu.com/p/405729517
(3)unsigned PD
I am using the java API. Do you hava any link refecerence?
Hi, zhiguol .Hi, zwenhao.
I am using the java API. Do you hava any link refecerence?
We have Java sample application inside SNPE SDK.
And this maybe related with the specific hardware like Mi9 maybe have some limitation on the DSP assess.
Could you please try other 855 devices, like OPPO or VIVO?
Thanks.
I added some code about unsigned PD in my Android project.
But still got errors about DSP:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.srdemo/com.example.srdemo.MainActivity}: com.qualcomm.qti.snpe.SnpeError$IllegalArgsOrStateException: error_code : 73 error_message: None of the selected runtime targets are supported.
Dear customer,
As I said, can you please try the device from other vendor. like VIVO or OPPO?
Thanks.
yahuu,
Were you ever able to get to the bottom of this? I have run into a similar problem, based on my observation, you may be able to get it to work if you target SDK 28 or below. But I am still looking for a solution for SDK 29+.