Hi ,
When i try to run demo app, after i have completed all task in image classifier demo app and updated gradle in project i am still not able to succesfully run the application.
after selecting the model this error occures in log
E/linker: library "/vendor/lib64/libOpenCL.so" ("/vendor/lib64/egl/libGLES_mali.so") needed or dlopened by "/data/app/~~oHkvdv5dra4cROTyrZkbLA==/com.qualcomm.qti.snpe.imageclassifiers-AiFDqy4eWggQlf51w-TjyQ==/lib/arm64/libSNPE.so" is not accessible for the namespace: [name="classloader-namespace", ld_library_paths="", default_library_paths="/data/app/~~oHkvdv5dra4cROTyrZkbLA==/com.qualcomm.qti.snpe.imageclassifiers-AiFDqy4eWggQlf51w-TjyQ==/lib/arm64:/data/app/~~oHkvdv5dra4cROTyrZkbLA==/com.qualcomm.qti.snpe.imageclassifiers-AiFDqy4eWggQlf51w-TjyQ==/base.apk!/lib/arm64-v8a", permitted_paths="/data:/mnt/expand:/data/data/com.qualcomm.qti.snpe.imageclassifiers"]
E/linker: library "/system/vendor/lib64/libOpenCL.so" ("/vendor/lib64/egl/libGLES_mali.so") needed or dlopened by "/data/app/~~oHkvdv5dra4cROTyrZkbLA==/com.qualcomm.qti.snpe.imageclassifiers-AiFDqy4eWggQlf51w-TjyQ==/lib/arm64/libSNPE.so" is not accessible for the namespace: [name="classloader-namespace", ld_library_paths="", default_library_paths="/data/app/~~oHkvdv5dra4cROTyrZkbLA==/com.qualcomm.qti.snpe.imageclassifiers-AiFDqy4eWggQlf51w-TjyQ==/lib/arm64:/data/app/~~oHkvdv5dra4cROTyrZkbLA==/com.qualcomm.qti.snpe.imageclassifiers-AiFDqy4eWggQlf51w-TjyQ==/base.apk!/lib/arm64-v8a", permitted_paths="/data:/mnt/expand:/data/data/com.qualcomm.qti.snpe.imageclassifiers"]
E/SNPE-DebugLog: 21:23:08.698251 [USER_ERROR:DNN_RUNTIME] GPU ERROR: 10006
E/SNPE-DebugLog: 21:23:08.698275 [USER_ERROR:DNN_RUNTIME] GPU ERROR: 10029
E/SNPE-DebugLog: 21:23:08.698283 [USER_ERROR:DNN_RUNTIME] QNN ERROR: 1006
i have checked and on my Samsung S21 5G all libraries are with read permissions for all users.
This probably leads to empty values in Version, DImensions, Runtime, Output Layers, the drop down is empty.
here is screenshot from the app https://files.fm/u/mvtucjzz
After i try tu build network the app crashes on error
E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #2
Process: com.qualcomm.qti.snpe.imageclassifiers, PID: 3464
java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$4.done(AsyncTask.java:415)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:381)
at java.util.concurrent.FutureTask.setException(FutureTask.java:250)
at java.util.concurrent.FutureTask.run(FutureTask.java:269)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
at java.lang.Thread.run(Thread.java:1012)
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:439)
at com.qualcomm.qti.snpe.SNPE$NeuralNetworkBuilder.build(SNPE.java:410)
at com.qualcomm.qti.snpe.imageclassifiers.tasks.LoadNetworkTask.doInBackground(LoadNetworkTask.java:76)
at com.qualcomm.qti.snpe.imageclassifiers.tasks.LoadNetworkTask.doInBackground(LoadNetworkTask.java:28)
at android.os.AsyncTask$3.call(AsyncTask.java:394)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
at java.lang.Thread.run(Thread.java:1012)
Any Ideas how can I solve this problem ?
Mobile Device: Samsung S21 5G
SNPE version: 2.5.0.4052
I have only completed the demo app tutorial and i did not do any other customization in code only the neccessary updates in gradle and adding ContentProvider.
Thanks in advance for any help
Dear developer,
This issue caused by the Android SELinux permission. You can add below code snippet to your Mainfest.xml
<uses-libary
androdi:name="libOpenCL.so"
android:required="false"/ >
BR.
Wei
Hi,
first Thank You for the answer
This helped with first error but there are still
Or any other ideas why i cant see runtime and build the network properly ?
Does someone have properly running demo app which could be shared for me to try if there is problem in the device or in the code or model preparation ?