-
Notifications
You must be signed in to change notification settings - Fork 296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Native method not found #120
Comments
Same issue as in #121 |
It seems different than #121 , which should be resolved now. You can try again and see if the error persists. Btw, i am also using NDK 9c and it works fine (on mac) |
I got same error, pls help me fix the bug |
still have the same issue |
should be fixed now |
renard314
pushed a commit
that referenced
this issue
Feb 16, 2018
Remove unneeded extern declarations
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I take a picture and it is loaded the app crashes. Apparently none of the jni methods from image processing are found. The library is loaded though, which I checked whilst debugging. I am using the ndk version r9c and am compiling on windows.
The output is the following:
06-02 12:23:29.009 32320-5494/com.renard.ocr D/dalvikvm: Trying to load lib /data/app-lib/com.renard.ocr-2/libpngo.so 0x426c3378 06-02 12:23:29.009 32320-5494/com.renard.ocr D/dalvikvm: Shared lib '/data/app-lib/com.renard.ocr-2/libpngo.so' already loaded in same CL 0x426c3378 06-02 12:23:29.009 32320-5494/com.renard.ocr D/dalvikvm: Trying to load lib /data/app-lib/com.renard.ocr-2/liblept.so 0x426c3378 06-02 12:23:29.009 32320-5494/com.renard.ocr D/dalvikvm: Shared lib '/data/app-lib/com.renard.ocr-2/liblept.so' already loaded in same CL 0x426c3378 06-02 12:23:29.009 32320-5494/com.renard.ocr D/dalvikvm: Trying to load lib /data/app-lib/com.renard.ocr-2/libimage_processing_jni.so 0x426c3378 06-02 12:23:29.090 32320-5494/com.renard.ocr D/dalvikvm: Added shared lib /data/app-lib/com.renard.ocr-2/libimage_processing_jni.so 0x426c3378 06-02 12:23:29.090 32320-5494/com.renard.ocr D/dalvikvm: No JNI_OnLoad found in /data/app-lib/com.renard.ocr-2/libimage_processing_jni.so 0x426c3378, skipping init 06-02 12:23:29.090 32320-5494/com.renard.ocr W/dalvikvm: No implementation found for native Lcom/renard/ocr/cropimage/image_processing/Blur;.nativeBlurDetect:(J)Lcom/renard/ocr/cropimage/image_processing/BlurDetectionResult; 06-02 12:23:29.090 32320-5494/com.renard.ocr W/dalvikvm: threadid=20: thread exiting with uncaught exception (group=0x41caeac8) 06-02 12:23:29.110 32320-5494/com.renard.ocr E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #2 java.lang.RuntimeException: An error occured while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:299) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:352) at java.util.concurrent.FutureTask.setException(FutureTask.java:219) at java.util.concurrent.FutureTask.run(FutureTask.java:239) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573) at java.lang.Thread.run(Thread.java:856) Caused by: java.lang.UnsatisfiedLinkError: Native method not found: com.renard.ocr.cropimage.image_processing.Blur.nativeBlurDetect:(J)Lcom/renard/ocr/cropimage/image_processing/BlurDetectionResult; at com.renard.ocr.cropimage.image_processing.Blur.nativeBlurDetect(Native Method) at com.renard.ocr.cropimage.image_processing.Blur.blurDetect(Blur.java:40) at com.renard.ocr.documents.creation.crop.PreparePixForCropTask.doInBackground(PreparePixForCropTask.java:76) at com.renard.ocr.documents.creation.crop.PreparePixForCropTask.doInBackground(PreparePixForCropTask.java:42) at android.os.AsyncTask$2.call(AsyncTask.java:287) at java.util.concurrent.FutureTask.run(FutureTask.java:234) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573) at java.lang.Thread.run(Thread.java:856)
Thanks in advance!
The text was updated successfully, but these errors were encountered: