Forums - Failed to build network with DSP runtime

1 post / 0 new
Failed to build network with DSP runtime
pawissakan.ch
Join Date: 12 Feb 19
Posts: 1
Posted: Sat, 2019-03-09 22:32

Hello

I am trying to modify the Android example in SNPE SDK to load my own model. My model can be built with CPU and GPU runtime.

With DSP runtime, the app failed to build my model and logged following messages:

2019-03-08 10:34:08.568 12213-12213/com.qualcomm.qti.snpe.imageclassifiers W/snpe-net-run: type=1400 audit(0.0:145321): avc: denied { search } for comm=4173796E635461736B20233336 name="ctx" dev="debugfs" ino=15054 scontext=u:r:untrusted_app:s0:c210,c256,c512,c768 tcontext=u:object_r:qti_debugfs:s0 tclass=dir permissive=0
2019-03-08 10:34:08.728 12213-12213/com.qualcomm.qti.snpe.imageclassifiers I/chatty: uid=2000(shell) com.qualcomm.qti.snpe.imageclassifiers identical 1 line
2019-03-08 10:34:08.798 12213-12213/com.qualcomm.qti.snpe.imageclassifiers W/snpe-net-run: type=1400 audit(0.0:145323): avc: denied { search } for comm=4173796E635461736B20233336 name="ctx" dev="debugfs" ino=15054 scontext=u:r:untrusted_app:s0:c210,c256,c512,c768 tcontext=u:object_r:qti_debugfs:s0 tclass=dir permissive=0
2019-03-08 10:34:09.870 12213-24550/com.qualcomm.qti.snpe.imageclassifiers I/LoadNetworkTask: done loading network...
2019-03-08 10:34:11.798 12213-12244/com.qualcomm.qti.snpe.imageclassifiers D/OpenGLRenderer: endAllActiveAnimators on 0x7a3d2e6e00 (DropDownListView) with handle 0x7a4409f3e0
2019-03-08 10:34:12.759 12213-24552/com.qualcomm.qti.snpe.imageclassifiers I/LoadNetworkTask: loading network size=41
2019-03-08 10:34:12.868 12213-12213/com.qualcomm.qti.snpe.imageclassifiers W/snpe-net-run: type=1400 audit(0.0:145324): avc: denied { search } for comm=4173796E635461736B20233338 name="ctx" dev="debugfs" ino=15054 scontext=u:r:untrusted_app:s0:c210,c256,c512,c768 tcontext=u:object_r:qti_debugfs:s0 tclass=dir permissive=0
2019-03-08 10:34:13.058 12213-12213/com.qualcomm.qti.snpe.imageclassifiers W/snpe-net-run: type=1400 audit(0.0:145325): avc: denied { search } for comm=4173796E635461736B20233338 name="ctx" dev="debugfs" ino=15054 scontext=u:r:untrusted_app:s0:c210,c256,c512,c768 tcontext=u:object_r:qti_debugfs:s0 tclass=dir permissive=0
2019-03-08 10:34:13.863 12213-24552/com.qualcomm.qti.snpe.imageclassifiers E/LoadNetworkTask: Unable to create network! Cause: error_code=910; error_message=DSP runtime system error. Failed to load network.  Error code: -6.; error_component=DSP Runtime; line_no=328; thread_id=524881491184
    java.lang.IllegalStateException: Unable to create network! Cause: error_code=910; error_message=DSP runtime system error. Failed to load network.  Error code: -6.; error_component=DSP Runtime; line_no=328; thread_id=524881491184
        at com.qualcomm.qti.snpe.internal.NativeNetwork.nativeInitFromFile(Native Method)
        at com.qualcomm.qti.snpe.internal.NativeNetwork.<init>(NativeNetwork.java:104)
        at com.qualcomm.qti.snpe.SNPE$NeuralNetworkBuilder.build(SNPE.java:272)
        at com.qualcomm.qti.snpe.imageclassifiers.tasks.LoadNetworkTask.doInBackground(LoadNetworkTask.java:63)
        at com.qualcomm.qti.snpe.imageclassifiers.tasks.LoadNetworkTask.doInBackground(LoadNetworkTask.java:22)
        at android.os.AsyncTask$2.call(AsyncTask.java:333)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:764)
Enviroment
  • Snapdragon 845
  • Android NDK 17c
  • SNPE version 1.23.1

 

I have tested with Inception_v3 model. It works fine with all runtime.
How can I fix this problem?
 
Thanks.
  • Up0
  • Down0

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.