Forums - Error about adding library

2 posts / 0 new
Last post
Error about adding library
linrui.larry.jiang
Join Date: 25 May 23
Posts: 4
Posted: Wed, 2023-08-02 17:50

Dear Team,

When modifying the code to accomplish some new functionality, there are always reminding that

D/houdini: [4649] Added shared library /data/app/com.qcom.imagesuperres-1/lib/arm/libsnpe-android.so for Classloader by Native Bridge

D/AndroidRuntime: Shutting down VM

I follow these tips and make a so library but still could not work. How could I overcome this situation?

2023-08-03 06:45:08.179 4649-4649/com.qcom.imagesuperres I/System.out: GPU instance running
2023-08-03 06:45:08.179 4649-4649/com.qcom.imagesuperres I/System.out: Initializing model %s.SuperResolution_sesr
2023-08-03 06:45:08.179 4649-4649/com.qcom.imagesuperres I/System.out: Model... loaded successfully. Building network on %sGPU
2023-08-03 06:45:08.282 4649-4649/com.qcom.imagesuperres D/houdini: [4649] Added shared library /data/app/com.qcom.imagesuperres-1/lib/arm/libsnpe-android.so for ClassLoader by Native Bridge.
2023-08-03 06:45:08.344 4649-4649/com.qcom.imagesuperres D/AndroidRuntime: Shutting down VM
2023-08-03 06:45:08.344 4649-4649/com.qcom.imagesuperres E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.qcom.imagesuperres, PID: 4649
    com.qualcomm.qti.snpe.SnpeError$NativeException: Unable to create network! Cause: error_code=1006; error_message=Invalid constraint. error_code=1006; error_message=Invalid constraint. No GPU device available for target UNKNOWN_SDM; error_component=Model Validation; line_no=77; thread_id=-679529172; error_component=Model Validation; line_no=342; thread_id=-679529172
        at com.qualcomm.qti.snpe.SnpeError.getSnpeNativeError(SnpeError.java:35)
        at com.qualcomm.qti.snpe.internal.NativeNetwork.<init>(NativeNetwork.java:85)
        at com.qualcomm.qti.snpe.SNPE$NeuralNetworkBuilder.build(SNPE.java:415)
        at com.qcom.imagesuperres.SuperResolution.initializingModel(SuperResolution.java:75)
        at com.qcom.imagesuperres.SNPEActivity.process(SNPEActivity.java:184)
        at com.qcom.imagesuperres.SNPEActivity.executeRadioButton(SNPEActivity.java:52)
        at com.qcom.imagesuperres.SNPEActivity$1.onItemSelected(SNPEActivity.java:111)
        at android.widget.AdapterView.fireOnSelected(AdapterView.java:931)
        at android.widget.AdapterView.dispatchOnItemSelected(AdapterView.java:920)
        at android.widget.AdapterView.-wrap1(AdapterView.java)
        at android.widget.AdapterView$SelectionNotifier.run(AdapterView.java:890)

Thanks in advance and wish you everything going better and better.

Sincerely,

  • Up0
  • Down0
yunxqin
Join Date: 2 Mar 23
Posts: 44
Posted: Fri, 2023-08-11 04:49

Dear developer,

What's the version of the snpe that you uesd?

BR.

Yunxiang

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