paddleocr android opencl 部署报错

4xy9mtcn  于 2022-09-16  发布在  Java
关注(0)|答案(3)|浏览(478)
  • 版本、环境信息:

paddle lite v2.11 commitId 6538595
ndk:android-ndk-r21d

paddleocr v2.6
host:mac 10.15.7

  • 模型信息

   1)模型名称
https://paddleocr.bj.bcebos.com/PP-OCRv2/chinese/ch_PP-OCRv2_det_infer.tar
https://paddleocr.bj.bcebos.com/PP-OCRv2/chinese/ch_PP-OCRv2_rec_infer.tar
https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_mobile_v2.0_cls_infer.tar

操作步骤:

一. 模型转换

./lite/tools/build_android_arm_opencl_by_models.sh /Volumes/OSX-HHD/pp_ocrv2

/Volumes/OSX-HHD/pp_ocrv2:目录下面为下载的模型

模型可以正确转换

./lite/tools/build_android_arm_opencl_by_models.sh 进行如下修改:


### models names

gpu_models_names=$(ls models)

## step 2. convert models

rm -rf models_opt && mkdir models_opt

for name in $gpu_models_names
do
  ./opt --model_file=./models/$name/inference.pdmodel --param_file=./models/$name/inference.pdiparams --valid_targets=opencl,arm --optimize_out=./models_opt/"$name"_opencl --record_tailoring_info=true --record_tailoring_info=true --quant_model=true --quant_type=QUANT_INT16
done
二. android部署

在paddleocr android demo中替换转换后的模型和libpaddle_light_api_shared.so

三. android代码
四. 运行android项目

报错日志:

2022-09-14 17:08:50.579 879-879/? I/SurfaceFlinger: operator()(), mtkRenderCntDebug 20927, screenshot (Splash Screen com.baidu.paddle.lite.demo.ocr#0)
2022-09-14 17:08:50.580 30754-30773/com.baidu.paddle.lite.demo.ocr D/e.lite.demo.oc: MiuiProcessManagerServiceStub setSchedFifo
2022-09-14 17:08:50.580 30754-30773/com.baidu.paddle.lite.demo.ocr I/MiuiProcessManagerImpl: setSchedFifo pid:30754, mode:3
2022-09-14 17:08:50.580 1398-2953/system_process D/ProcessManager: beginSchedThreads is not Enabled
2022-09-14 17:08:50.580 30754-30773/com.baidu.paddle.lite.demo.ocr D/hw-ProcessState: Binder ioctl to enable oneway spam detection failed: Invalid argument
2022-09-14 17:08:50.598 30754-30779/com.baidu.paddle.lite.demo.ocr I/Predictor: model path/data/user/0/com.baidu.paddle.lite.demo.ocr/cache/models/ch_PP-OCRv2/det_db.nb ; /data/user/0/com.baidu.paddle.lite.demo.ocr/cache/models/ch_PP-OCRv2/rec_crnn.nb;/data/user/0/com.baidu.paddle.lite.demo.ocr/cache/models/ch_PP-OCRv2/cls.nb
2022-09-14 17:08:50.605 30754-30779/com.baidu.paddle.lite.demo.ocr D/OPENCL_ICD_LOADER: initCLTraceLevel sCLTraceLevel = 0
2022-09-14 17:08:50.605 30754-30779/com.baidu.paddle.lite.demo.ocr I/OCR_NDK: is_opencl_backend_valid:(true)
2022-09-14 17:08:50.610 30754-30779/com.baidu.paddle.lite.demo.ocr E/libc++abi: terminating with uncaught exception of type std::exception: std::exception

    --------- beginning of crash
2022-09-14 17:08:50.610 30754-30779/com.baidu.paddle.lite.demo.ocr A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 30779 (Predictor Worke), pid 30754 (e.lite.demo.ocr)
2022-09-14 17:08:50.630 30754-30773/com.baidu.paddle.lite.demo.ocr E/OpenGLRenderer: fbcNotifyFrameComplete error: undefined symbol: fbcNotifyFrameComplete
2022-09-14 17:08:50.630 30754-30773/com.baidu.paddle.lite.demo.ocr E/OpenGLRenderer: fbcNotifyNoRender error: undefined symbol: fbcNotifyNoRender
2022-09-14 17:08:50.639 879-879/? E/ClientCache: failed to get buffer, invalid process token
2022-09-14 17:08:50.639 879-879/? E/ClientCache: failed to get buffer, could not retrieve buffer
2022-09-14 17:08:50.639 879-879/? I/ClientCache: add: Cache owner=0xb400007ecc251600
2022-09-14 17:08:50.647 30810-30810/? I/crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstoneProto
2022-09-14 17:08:50.648 621-621/? I/tombstoned: received crash request for pid 30779
2022-09-14 17:08:50.654 30810-30810/? I/crash_dump64: performing dump of process 30754 (target tid = 30779)
2022-09-14 17:08:50.655 879-879/? E/ClientCache: failed to get buffer, could not retrieve buffer
2022-09-14 17:08:50.658 30754-30813/com.baidu.paddle.lite.demo.ocr E/BLASTBufferQueue: [ViewRootImpl[MainActivity]#0](f:0,a:2) isEGL=1, mPendingRelease.size()=1, mMaxAcquiredBuffers=5, currentMaxAcquiredBufferCount=2
2022-09-14 17:08:50.662 30810-30810/? E/DEBUG: failed to read /proc/uptime: Permission denied
2022-09-14 17:08:50.671 879-879/? E/ClientCache: failed to get buffer, could not retrieve buffer
2022-09-14 17:08:50.673 30754-30813/com.baidu.paddle.lite.demo.ocr E/BLASTBufferQueue: [ViewRootImpl[MainActivity]#0](f:0,a:3) isEGL=1, mPendingRelease.size()=2, mMaxAcquiredBuffers=5, currentMaxAcquiredBufferCount=2
2022-09-14 17:08:50.675 782-920/? I/mtkpower@impl: [powerd_req] TIMER_MSG_PERF_LOCK_TIMEOUT hdl:5127
2022-09-14 17:08:50.675 782-920/? I/libPowerHal: [perfLockRel] hdl:5127, idx:0
2022-09-14 17:08:50.675 782-920/? I/libPowerHal: system_server: set gpu opp level: 32
2022-09-14 17:08:50.675 782-920/? I/libPowerHal: system_server: set gpu opp level max: 0
2022-09-14 17:08:50.679 879-879/? I/SurfaceFlinger: operator()(), mtkRenderCntDebug 20928, screenshot (Splash Screen com.baidu.paddle.lite.demo.ocr#0)
2022-09-14 17:08:50.688 879-879/? E/ClientCache: failed to get buffer, could not retrieve buffer
2022-09-14 17:08:50.689 30754-30813/com.baidu.paddle.lite.demo.ocr E/BLASTBufferQueue: [ViewRootImpl[MainActivity]#0](f:0,a:4) isEGL=1, mPendingRelease.size()=3, mMaxAcquiredBuffers=5, currentMaxAcquiredBufferCount=2
2022-09-14 17:08:50.704 879-879/? E/ClientCache: failed to get buffer, could not retrieve buffer
2022-09-14 17:08:50.707 782-900/? I/libPerfCtl: xgfGetFPS pid:2252 fps:62
2022-09-14 17:08:50.707 782-900/? I/libPerfCtl: xgfGetFPS pid:2268 fps:59
2022-09-14 17:08:50.707 782-900/? I/libPerfCtl: xgfGetFPS pid:3389 fps:-1
2022-09-14 17:08:50.708 782-900/? I/libPerfCtl: xgfGetFPS pid:24030 fps:-1
2022-09-14 17:08:50.708 782-900/? I/libPerfCtl: xgfGetFPS pid:30615 fps:-1
2022-09-14 17:08:50.708 782-900/? I/libPerfCtl: xgfGetFPS pid:30754 fps:67
2022-09-14 17:08:50.708 782-900/? I/libPowerHal: [updateFPS] pid(30754) : -1 => 90
2022-09-14 17:08:50.708 782-920/? I/libPowerHal: [perfNotifyAppState] pack:com.baidu.paddle.lite.demo.ocr, act:com.baidu.paddle.lite.demo.ocr.MainActivity, state:5, pid:30754, uid:10252, fps:90
2022-09-14 17:08:50.708 782-920/? I/UxUtility: notifyForegroundApp pack:com.baidu.paddle.lite.demo.ocr, uid:10252
2022-09-14 17:08:50.708 782-920/? I/TouchUtility: notifyAppState error = NULL
2022-09-14 17:08:50.710 879-1623/? E/BufferQueueDebug: [com.baidu.paddle.lite.demo.ocr/com.baidu.paddle.lite.demo.ocr.MainActivity#1](this:0xb400007ebdf10900,id:-1,api:0,p:-1,c:-1) id info cannot be read from 'com.baidu.paddle.lite.demo.ocr/com.baidu.paddle.lite.demo.ocr.MainActivity#1'
2022-09-14 17:08:50.710 879-1623/? I/BufferQueueDebug: [com.baidu.paddle.lite.demo.ocr/com.baidu.paddle.lite.demo.ocr.MainActivity#1](this:0xb400007ebdf10900,id:-1,api:0,p:-1,c:-1) BufferQueue core=(879:/system/bin/surfaceflinger)
2022-09-14 17:08:50.713 1398-2953/system_process I/WindowManagerService: Physical orientation not applied, rotation=0
2022-09-14 17:08:50.714 30754-30754/com.baidu.paddle.lite.demo.ocr I/BufferQueueConsumer: [](id:782200000001,api:0,p:-1,c:30754) connect: controlledByApp=false
2022-09-14 17:08:50.714 30754-30754/com.baidu.paddle.lite.demo.ocr I/BLASTBufferQueue: [ViewRootImpl[MainActivity]#1] constructor()
2022-09-14 17:08:50.715 30754-30773/com.baidu.paddle.lite.demo.ocr I/BufferQueueProducer: [ViewRootImpl[MainActivity]#1(BLAST Consumer)1](id:782200000001,api:1,p:30754,c:30754) connect: api=1 producerControlledByApp=true
2022-09-14 17:08:50.720 879-879/? E/ClientCache: failed to get buffer, could not retrieve buffer
2022-09-14 17:08:50.737 879-879/? E/ClientCache: failed to get buffer, could not retrieve buffer
2022-09-14 17:08:50.771 767-767/? I/hwcomposer: [HWCDisplay] [Display_0 (type:1)] fps:53.351562,dur:1012.15,max:131.21,min:10.64  
2022-09-14 17:08:50.780 879-879/? I/SurfaceFlinger: operator()(), mtkRenderCntDebug 20929, screenshot (Splash Screen com.baidu.paddle.lite.demo.ocr#0)
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:************************************************
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG: Build fingerprint: 'Redmi/cezanne/cezanne:12/SP1A.210812.016/22.6.22:user/release-keys'
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG: Revision: '0'
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG: ABI: 'arm64'
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG: Timestamp: 2022-09-14 17:08:50.661840782+0800
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG: Process uptime: 0s
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG: Cmdline: com.baidu.paddle.lite.demo.ocr
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG: pid: 30754, tid: 30779, name: Predictor Worke  >>> com.baidu.paddle.lite.demo.ocr <<<
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG: uid: 10252
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG: signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG: Abort message: 'terminating with uncaught exception of type std::exception: std::exception'
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:     x0  0000000000000000  x1  000000000000783b  x2  0000000000000006  x3  000000750fa37650
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:     x4  736f646277641f73  x5  736f646277641f73  x6  736f646277641f73  x7  7f7f7f7f7f7f7f7f
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:     x8  00000000000000f0  x9  0000007634885020  x10 0000000000000000  x11 ffffff80fffffbdf
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:     x12 0000000000000001  x13 0000000063219a22  x14 00243723b6438636  x15 0000324764ec5ba4
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:     x16 0000007634958d20  x17 0000007634933670  x18 00000000000003fd  x19 0000000000007822
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:     x20 000000000000783b  x21 00000000ffffffff  x22 ffffff80ffffffc8  x23 000000750fa378a0
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:     x24 000000750fa37780  x25 000000750fa377c0  x26 000000000000004a  x27 000000758808db50
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:     x28 00000074f6fb67f8  x29 000000750fa376d0
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:     lr  00000076348e602c  sp  000000750fa37630  pc  00000076348e605c  pst 0000000000001000
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG: backtrace:
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:       #00 pc 000000000008905c  /apex/com.android.runtime/lib64/bionic/libc.so (abort+168) (BuildId: 1abc5d563126c8ec51d19cac9e799381)
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:       #01 pc 000000000009ce88  /data/app/~~VpSK548rzNydvux9KTeBNw==/com.baidu.paddle.lite.demo.ocr-A-G7mF4AokvPRzIii0SsTA==/base.apk!libc++_shared.so (BuildId: e82aa9902823c7b87f3cafcab9ae75ec6c9285e2)
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:       #02 pc 000000000009d07c  /data/app/~~VpSK548rzNydvux9KTeBNw==/com.baidu.paddle.lite.demo.ocr-A-G7mF4AokvPRzIii0SsTA==/base.apk!libc++_shared.so (BuildId: e82aa9902823c7b87f3cafcab9ae75ec6c9285e2)
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:       #03 pc 00000000000aead0  /data/app/~~VpSK548rzNydvux9KTeBNw==/com.baidu.paddle.lite.demo.ocr-A-G7mF4AokvPRzIii0SsTA==/base.apk!libc++_shared.so (BuildId: e82aa9902823c7b87f3cafcab9ae75ec6c9285e2)
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:       #04 pc 00000000000ae0fc  /data/app/~~VpSK548rzNydvux9KTeBNw==/com.baidu.paddle.lite.demo.ocr-A-G7mF4AokvPRzIii0SsTA==/base.apk!libc++_shared.so (BuildId: e82aa9902823c7b87f3cafcab9ae75ec6c9285e2)
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:       #05 pc 00000000000ae058  /data/app/~~VpSK548rzNydvux9KTeBNw==/com.baidu.paddle.lite.demo.ocr-A-G7mF4AokvPRzIii0SsTA==/base.apk!libc++_shared.so (__cxa_throw+112) (BuildId: e82aa9902823c7b87f3cafcab9ae75ec6c9285e2)
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:       #06 pc 000000000007e254  /data/app/~~VpSK548rzNydvux9KTeBNw==/com.baidu.paddle.lite.demo.ocr-A-G7mF4AokvPRzIii0SsTA==/base.apk!libpaddle_light_api_shared.so (paddle::lite::RuntimeProgram::RuntimeProgram(std::__ndk1::shared_ptr<paddle::lite::fbs::ProgramDescView const> const&, paddle::lite::Scope*, int)+2436) (BuildId: e9df2bcac027bcc9527c1ea6d4b5d6f9625389b1)
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:       #07 pc 00000000000881ac  /data/app/~~VpSK548rzNydvux9KTeBNw==/com.baidu.paddle.lite.demo.ocr-A-G7mF4AokvPRzIii0SsTA==/base.apk!libpaddle_light_api_shared.so (paddle::lite::LightPredictor::BuildRuntimeProgram(std::__ndk1::shared_ptr<paddle::lite::fbs::ProgramDescView const> const&)+928) (BuildId: e9df2bcac027bcc9527c1ea6d4b5d6f9625389b1)
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:       #08 pc 000000000008705c  /data/app/~~VpSK548rzNydvux9KTeBNw==/com.baidu.paddle.lite.demo.ocr-A-G7mF4AokvPRzIii0SsTA==/base.apk!libpaddle_light_api_shared.so (paddle::lite::LightPredictor::Build(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&, bool)+120) (BuildId: e9df2bcac027bcc9527c1ea6d4b5d6f9625389b1)
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:       #09 pc 000000000008bf2c  /data/app/~~VpSK548rzNydvux9KTeBNw==/com.baidu.paddle.lite.demo.ocr-A-G7mF4AokvPRzIii0SsTA==/base.apk!libpaddle_light_api_shared.so (BuildId: e9df2bcac027bcc9527c1ea6d4b5d6f9625389b1)
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:       #10 pc 000000000008bb08  /data/app/~~VpSK548rzNydvux9KTeBNw==/com.baidu.paddle.lite.demo.ocr-A-G7mF4AokvPRzIii0SsTA==/base.apk!libpaddle_light_api_shared.so (BuildId: e9df2bcac027bcc9527c1ea6d4b5d6f9625389b1)
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:       #11 pc 000000000008c4b8  /data/app/~~VpSK548rzNydvux9KTeBNw==/com.baidu.paddle.lite.demo.ocr-A-G7mF4AokvPRzIii0SsTA==/base.apk!libpaddle_light_api_shared.so (std::__ndk1::shared_ptr<paddle::lite_api::PaddlePredictor> paddle::lite_api::CreatePaddlePredictor<paddle::lite_api::MobileConfig>(paddle::lite_api::MobileConfig const&)+96) (BuildId: e9df2bcac027bcc9527c1ea6d4b5d6f9625389b1)
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:       #12 pc 00000000000c00c8  /data/app/~~VpSK548rzNydvux9KTeBNw==/com.baidu.paddle.lite.demo.ocr-A-G7mF4AokvPRzIii0SsTA==/base.apk!libNative.so (BuildId: 89529dc085a6f6f6a916ca3b68265765aad00bf2)
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:       #13 pc 00000000000c01e4  /data/app/~~VpSK548rzNydvux9KTeBNw==/com.baidu.paddle.lite.demo.ocr-A-G7mF4AokvPRzIii0SsTA==/base.apk!libNative.so (BuildId: 89529dc085a6f6f6a916ca3b68265765aad00bf2)
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:       #14 pc 00000000000b8ecc  /data/app/~~VpSK548rzNydvux9KTeBNw==/com.baidu.paddle.lite.demo.ocr-A-G7mF4AokvPRzIii0SsTA==/base.apk!libNative.so (BuildId: 89529dc085a6f6f6a916ca3b68265765aad00bf2)
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:       #15 pc 000000000007a27c  /data/app/~~VpSK548rzNydvux9KTeBNw==/com.baidu.paddle.lite.demo.ocr-A-G7mF4AokvPRzIii0SsTA==/base.apk!libNative.so (Java_com_baidu_paddle_lite_demo_ocr_OCRPredictorNative_init+260) (BuildId: 89529dc085a6f6f6a916ca3b68265765aad00bf2)
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:       #16 pc 0000000000222244  /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+148) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:       #17 pc 0000000000218964  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:       #18 pc 0000000000284060  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+184) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:       #19 pc 00000000003e1730  /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+400) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:       #20 pc 00000000003dd204  /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<true, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+700) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:       #21 pc 0000000000744dec  /apex/com.android.art/lib64/libart.so (MterpInvokeVirtualRange+1116) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:       #22 pc 0000000000203b14  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual_range+20) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:       #23 pc 00000000000142a6  [anon:dalvik-classes2.dex extracted in memory from /data/app/~~VpSK548rzNydvux9KTeBNw==/com.baidu.paddle.lite.demo.ocr-A-G7mF4AokvPRzIii0SsTA==/base.apk!classes2.dex] (com.baidu.paddle.lite.demo.ocr.OCRPredictorNative.<init>+50)
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:       #24 pc 00000000003d3fd0  /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool)+304) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:       #25 pc 00000000003db5a4  /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+204) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:       #26 pc 00000000003dc000  /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+768) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:       #27 pc 000000000074ccc4  /apex/com.android.art/lib64/libart.so (MterpInvokeDirect+1036) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.822 30810-30810/? A/DEBUG:       #28 pc 0000000000203914  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_direct+20) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #29 pc 0000000000014878  [anon:dalvik-classes2.dex extracted in memory from /data/app/~~VpSK548rzNydvux9KTeBNw==/com.baidu.paddle.lite.demo.ocr-A-G7mF4AokvPRzIii0SsTA==/base.apk!classes2.dex] (com.baidu.paddle.lite.demo.ocr.Predictor.loadModel+408)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #30 pc 00000000003d3fd0  /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool)+304) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #31 pc 00000000003db5a4  /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+204) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #32 pc 00000000003dd1e8  /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<true, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+672) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #33 pc 0000000000744dec  /apex/com.android.art/lib64/libart.so (MterpInvokeVirtualRange+1116) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #34 pc 0000000000203b14  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual_range+20) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #35 pc 000000000001455c  [anon:dalvik-classes2.dex extracted in memory from /data/app/~~VpSK548rzNydvux9KTeBNw==/com.baidu.paddle.lite.demo.ocr-A-G7mF4AokvPRzIii0SsTA==/base.apk!classes2.dex] (com.baidu.paddle.lite.demo.ocr.Predictor.init+12)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #36 pc 00000000003d3fd0  /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool)+304) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #37 pc 00000000003db5a4  /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+204) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #38 pc 00000000003dd1e8  /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<true, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+672) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #39 pc 0000000000744dec  /apex/com.android.art/lib64/libart.so (MterpInvokeVirtualRange+1116) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #40 pc 0000000000203b14  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual_range+20) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #41 pc 0000000000014590  [anon:dalvik-classes2.dex extracted in memory from /data/app/~~VpSK548rzNydvux9KTeBNw==/com.baidu.paddle.lite.demo.ocr-A-G7mF4AokvPRzIii0SsTA==/base.apk!classes2.dex] (com.baidu.paddle.lite.demo.ocr.Predictor.init+0)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #42 pc 00000000003d3fd0  /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool)+304) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #43 pc 00000000003db5a4  /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+204) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #44 pc 00000000003dd1e8  /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<true, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+672) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #45 pc 0000000000744dec  /apex/com.android.art/lib64/libart.so (MterpInvokeVirtualRange+1116) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #46 pc 0000000000203b14  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual_range+20) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #47 pc 00000000000132a4  [anon:dalvik-classes2.dex extracted in memory from /data/app/~~VpSK548rzNydvux9KTeBNw==/com.baidu.paddle.lite.demo.ocr-A-G7mF4AokvPRzIii0SsTA==/base.apk!classes2.dex] (com.baidu.paddle.lite.demo.ocr.MainActivity.onLoadModel+68)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #48 pc 00000000003d3fd0  /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool)+304) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #49 pc 00000000003db5a4  /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+204) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #50 pc 00000000003dc000  /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+768) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #51 pc 0000000000743a64  /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+1212) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #52 pc 0000000000203814  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #53 pc 00000000000131f8  [anon:dalvik-classes2.dex extracted in memory from /data/app/~~VpSK548rzNydvux9KTeBNw==/com.baidu.paddle.lite.demo.ocr-A-G7mF4AokvPRzIii0SsTA==/base.apk!classes2.dex] (com.baidu.paddle.lite.demo.ocr.MainActivity$2.handleMessage+72)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #54 pc 00000000003d3fd0  /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool)+304) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #55 pc 00000000003db5a4  /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+204) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #56 pc 00000000003dc000  /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+768) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #57 pc 0000000000743a64  /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+1212) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #58 pc 0000000000203814  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #59 pc 000000000042fe4a  /system/framework/framework.jar (android.os.Handler.dispatchMessage+38)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #60 pc 00000000007441a0  /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+3064) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #61 pc 0000000000203814  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #62 pc 000000000045ae60  /system/framework/framework.jar (android.os.Looper.loopOnce+352)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #63 pc 000000000074ee7c  /apex/com.android.art/lib64/libart.so (MterpInvokeStatic+2124) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #64 pc 0000000000203994  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #65 pc 000000000045b520  /system/framework/framework.jar (android.os.Looper.loop+152)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #66 pc 000000000074ee7c  /apex/com.android.art/lib64/libart.so (MterpInvokeStatic+2124) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #67 pc 0000000000203994  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #68 pc 000000000042f518  /system/framework/framework.jar (android.os.HandlerThread.run+56)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #69 pc 00000000003d3fd0  /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool)+304) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #70 pc 0000000000732564  /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+784) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #71 pc 0000000000222378  /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #72 pc 0000000000218964  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #73 pc 0000000000284060  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+184) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #74 pc 0000000000618614  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithJValues<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, jvalue const*)+460) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #75 pc 0000000000666b20  /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1164) (BuildId: 1113ff47cc5bb53abf5177dc026e5ca4)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #76 pc 00000000000eb030  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204) (BuildId: 1abc5d563126c8ec51d19cac9e799381)
2022-09-14 17:08:50.823 30810-30810/? A/DEBUG:       #77 pc 000000000008a8ac  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 1abc5d563126c8ec51d19cac9e799381)
2022-09-14 17:08:50.824 1398-2953/system_process D/WindowManager: finishDrawingLocked: mDrawState=COMMIT_DRAW_PENDING Window{22f2711 u0 com.baidu.paddle.lite.demo.ocr/com.baidu.paddle.lite.demo.ocr.MainActivity} in Surface(name=com.baidu.paddle.lite.demo.ocr/com.baidu.paddle.lite.demo.ocr.MainActivity)/@0x65842e4
5kgi1eie

5kgi1eie1#

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网文档常见问题历史Issue来寻求解答。祝您生活愉快~

Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the APIFAQ and Github Issue to get the answer.Have a nice day!

eyh26e7m

eyh26e7m2#

可以把转后的模型贴一下吗,谢谢

nhjlsmyf

nhjlsmyf3#

@shentanyue
链接: https://pan.baidu.com/s/1OvU7GRYU4Sju2vDyLNKgqQ 提取码: e4fn

里面包含模型,和生成so文件

相关问题