Hi,
I use:
SNPE-VERSION:snpe-2.5.0.4052
SOC:Snapdragon 865
Android OS:12
Android SDK:31
ARCH:arm64-v8a
Phone:xiaomi 10
When I use gpu-runtime to load model in apk, he reported the following error:
W/Thread-3: type=1400 audit(0.0:4198): avc: denied { search } for name="soc0" dev="sysfs" ino=86749 scontext=u:r:untrusted_app:s0:c88,c263,c512,c768 tcontext=u:object_r:vendor_sysfs_soc:s0 tclass=dir permissive=0 app=com.example.demoW/Thread-3: type=1400 audit(0.0:4199): avc: denied { search } for name="soc0" dev="sysfs" ino=86749 scontext=u:r:untrusted_app:s0:c88,c263,c512,c768 tcontext=u:object_r:vendor_sysfs_soc:s0 tclass=dir permissive=0 app=com.example.demoW/Thread-3: type=1400 audit(0.0:4200): avc: denied { search } for name="soc0" dev="sysfs" ino=86749 scontext=u:r:untrusted_app:s0:c88,c263,c512,c768 tcontext=u:object_r:vendor_sysfs_soc:s0 tclass=dir permissive=0 app=com.example.demoW/Thread-3: type=1400 audit(0.0:4201): avc: denied { search } for name="soc0" dev="sysfs" ino=86749 scontext=u:r:untrusted_app:s0:c88,c263,c512,c768 tcontext=u:object_r:vendor_sysfs_soc:s0 tclass=dir permissive=0 app=com.example.demoE/SNPE-DebugLog: 15:25:24.137981 [USER_ERROR:DNN_RUNTIME] GPU ERROR: 10029E/SNPE-DebugLog: 15:25:24.138156 [USER_ERROR:DNN_RUNTIME] GPU ERROR: 10029E/SNPE-DebugLog: 15:25:24.138529 [USER_ERROR:DNN_RUNTIME] GPU ERROR: 10029E/SNPE-DebugLog: 15:25:24.138542 [USER_ERROR:DNN_RUNTIME] QNN ERROR: 1006E/SNPE-DebugLog: 15:25:24.142075 [USER_ERROR:DNN_RUNTIME] GPU ERROR: 10029E/SNPE-DebugLog: 15:25:24.142096 [USER_ERROR:DNN_RUNTIME] GPU ERROR: 10029E/SNPE-DebugLog: 15:25:24.142476 [USER_ERROR:DNN_RUNTIME] GPU ERROR: 10029E/SNPE-DebugLog: 15:25:24.142488 [USER_ERROR:DNN_RUNTIME] QNN ERROR: 1006E/base_net: SNPE build failed error_code=1200; error_message=libstd error. QnnBackned_Create failed: 1006; error_component=Dependent library; line_no=1313; thread_id=480973405360E/base_net: ERROR engine Load failedA/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 31290 (Thread-3), pid 31207 (example.demo)
/vendor/etc/public.libraries.txt contents:libqti-perfd-client.solibadsprpc.solibcdsprpc.solibsdsprpc.solibfastcvopt.soliblistensoundmodel2.solibOpenCL.solibnpu.solibmialgoengine.so 64libmpbase.so 64libHalSuperSensorServer.so 64libSuperSensor.so 64libSuperSensorCPU.so 64libarcsoft_beautyshot.so 64libarcsoft_dualcam_refocus.so 64libarcsoft_dualcam_refocus_rear_t.so 64libarcsoft_dualcam_refocus_rear_w.so 64libarcsoft_dualcam_refocus_front.so 64libarcsoft_portrait_lighting.so 64libarcsoft_portrait_lighting_c.so 64libarcsoft_high_dynamic_range.so 64libmibokeh_855.so 64libmialgo_image_colourkeeping.so 64libarcsoft_distortion_correction.so 64libarcsoft_bodyslim.so 64libalCFR.so 64libsupermoon.so 64libcvp_common.solibalhLDC.so 64libalAILDC.so 64libflaw.so 64libarcsoft_superportrait.so 64libmialgo_ie_capture.so 64libmialgo_utils.so 64libxmi_high_dynamic_range.so 64libMIAIHDRhvx_interface.so 64libcvp2.solibcvp2_hfi.solibSNPE.so 64libsymphony-cpu.so 64libcamera_scene.so 64libsnpe_dsp_domains_v2.so 64libEGL.so
Dear developer,
What's quantization type for you model dlc as GPU runtime only support float? You can double-check your model dlc file to make sure it's float model.
BR.
Wei
Dear weihuan,
The model I use is not quantified . model-dlc-metadata contents:
I can load and run the model normally by using the shell command on the Xiaomi 10 mobile phone.
But the error will appear in the app:
I found that "/vendor/etc/public. libraries. txt content:" of Xiaomi 10 mobile phone :
and "/vendor/etc/public. libraries. txt content:" of Huawei Mate50 :
I don't know whether it is caused by the large difference in the contents of /vendor/etc/public.libraries.txt.
I want to know how to solve this problem, or how to judge whether the mobile phone with Qualcomm chip can use snpe in Android-app.
BR.
Hi Mark,
Are you using Snpe.aar in your android project, or using .so derictly by CMakeList?