[OCR] android demo运行时崩溃
Created by: ANDROIDTODO
Hi Team,
我在运行ocr的android demo时,编译都已经全部成功,但是在运行时崩溃,以下是崩溃信息
07-23 17:58:26.868 24321-24340/com.baidu.paddle.lite.demo.ocr E/art: dlopen("/data/app/com.baidu.paddle.lite.demo.ocr-2/lib/arm/libNative.so", RTLD_LAZY) failed: dlopen failed: cannot locate symbol "__register_atfork" referenced by "libhiai_ir.so"... 07-23 17:58:26.871 24321-24340/com.baidu.paddle.lite.demo.ocr E/AndroidRuntime: FATAL EXCEPTION: Predictor Worker Process: com.baidu.paddle.lite.demo.ocr, PID: 24321 java.lang.RuntimeException: Load libNative.so failed, please check it exists in apk file. at com.baidu.paddle.lite.demo.ocr.OCRPredictorNative.loadLibrary(OCRPredictorNative.java:18) at com.baidu.paddle.lite.demo.ocr.OCRPredictorNative.(OCRPredictorNative.java:31) at com.baidu.paddle.lite.demo.ocr.Predictor.loadModel(Predictor.java:120) at com.baidu.paddle.lite.demo.ocr.Predictor.init(Predictor.java:79) at com.baidu.paddle.lite.demo.ocr.MainActivity.onLoadModel(MainActivity.java:241) at com.baidu.paddle.lite.demo.ocr.MainActivity$2.handleMessage(MainActivity.java:129) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.os.HandlerThread.run(HandlerThread.java:61) Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__register_atfork" referenced by "libhiai_ir.so"... at java.lang.Runtime.loadLibrary(Runtime.java:371) at java.lang.System.loadLibrary(System.java:988) at com.baidu.paddle.lite.demo.ocr.OCRPredictorNative.loadLibrary(OCRPredictorNative.java:16) at com.baidu.paddle.lite.demo.ocr.OCRPredictorNative.(OCRPredictorNative.java:31) at com.baidu.paddle.lite.demo.ocr.Predictor.loadModel(Predictor.java:120) at com.baidu.paddle.lite.demo.ocr.Predictor.init(Predictor.java:79) at com.baidu.paddle.lite.demo.ocr.MainActivity.onLoadModel(MainActivity.java:241) at com.baidu.paddle.lite.demo.ocr.MainActivity$2.handleMessage(MainActivity.java:129) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.os.HandlerThread.run(HandlerThread.java:61)
我的平台是rk3288 ,Android系统版本为5.1.1 AndroidStudio:4.0.1, NDK:21.3.6528147
谢谢