Skip to content
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

ppocr_demo app is getting crashed #9756

Closed
TheLavanya opened this issue Nov 24, 2022 · 1 comment
Closed

ppocr_demo app is getting crashed #9756

TheLavanya opened this issue Nov 24, 2022 · 1 comment
Assignees

Comments

@TheLavanya
Copy link

I'm trying to run ppocr_demo app from
https://github.com/PaddlePaddle/Paddle-Lite-Demo/tree/develop/ocr/android/app/cxx/ppocr_demo

I've put same version of python and the required tools. Also I've replaced models and config label file. Below are mention which I'm using: -

  1. en_PP-OCRv3_det_slim.nb (https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.6/doc/doc_en/models_list_en.md)
  2. en_PP-OCRv3_rec_slim.nb (https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.6/doc/doc_en/models_list_en.md)
  3. ch_ppocr_mobile_v2.0_cls_slim_opt.nb (Already there in sample app assets folder)
  4. ic15_dict.txt

After running app is getting crashed: -

11-22 17:52:01.381 1317 1871 I 322 : com.baidu.paddle.lite.demo.object_detection#92#881
--------- beginning of crash
11-22 17:52:03.921 10813 19172 F libc : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 19172 (GLThread 443222), pid 10813 (bject_detection)
11-22 17:52:04.130 19218 19218 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
11-22 17:52:04.131 19218 19218 F DEBUG : Build fingerprint: 'OnePlus/OnePlus6/OnePlus6:11/RKQ1.201217.002/2111252325:user/release-keys'
11-22 17:52:04.131 19218 19218 F DEBUG : Revision: '0'
11-22 17:52:04.131 19218 19218 F DEBUG : ABI: 'arm64'
11-22 17:52:04.131 19218 19218 F DEBUG : Timestamp: 2022-11-22 17:52:04+0530
11-22 17:52:04.131 19218 19218 F DEBUG : pid: 10813, tid: 19172, name: GLThread 443222 >>> com.baidu.paddle.lite.demo.object_detection <<<
11-22 17:52:04.131 19218 19218 F DEBUG : uid: 11243
11-22 17:52:04.131 19218 19218 F DEBUG : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
11-22 17:52:04.131 19218 19218 F DEBUG : Abort message: '[F 11/22 17:52: 3.919 ...ddle-Lite/lite/kernels/arm/fc_compute.cc:103 ReInitWhenNeeded] Check failed: (k_ == w_dims[0]): 960!==120
11-22 17:52:04.131 19218 19218 F DEBUG : '
11-22 17:52:04.131 19218 19218 F DEBUG : x0 0000000000000000 x1 0000000000004ae4 x2 0000000000000006 x3 0000007630c82760
11-22 17:52:04.131 19218 19218 F DEBUG : x4 fefefefefefefeff x5 fefefefefefefeff x6 fefefefefefefeff x7 7f7f7f7f7f7f7f7f
11-22 17:52:04.131 19218 19218 F DEBUG : x8 00000000000000f0 x9 4f60977d3491d8f9 x10 0000000000000000 x11 ffffffc0fffffbdf
11-22 17:52:04.131 19218 19218 F DEBUG : x12 0000000000000001 x13 00000000637cbeeb x14 00361827575cd09d x15 0000cac90b940917
11-22 17:52:04.131 19218 19218 F DEBUG : x16 00000079911d6c80 x17 00000079911b8b70 x18 000000000000003c x19 0000000000002a3d
11-22 17:52:04.131 19218 19218 F DEBUG : x20 0000000000004ae4 x21 00000000ffffffff x22 ffffff80ffffffc8 x23 0000007630c829b0
11-22 17:52:04.131 19218 19218 F DEBUG : x24 0000007630c82890 x25 0000007630c828d0 x26 00000000000000bb x27 000000769ebb1000
11-22 17:52:04.131 19218 19218 F DEBUG : x28 0000007630c83a00 x29 0000007630c827e0
11-22 17:52:04.131 19218 19218 F DEBUG : lr 000000799116c3e0 sp 0000007630c82740 pc 000000799116c40c pst 0000000000000000
11-22 17:52:04.319 19218 19218 F DEBUG : backtrace:
11-22 17:52:04.319 19218 19218 F DEBUG : #00 pc 000000000004e40c /apex/com.android.runtime/lib64/bionic/libc.so (abort+164) (BuildId: 07fbaeed7b7a19203975f06be6f1d5ef)
11-22 17:52:04.319 19218 19218 F DEBUG : #1 pc 000000000009ce88 /data/app/~~DiH1V3i3sfNCkpLxJ1ICXw==/com.baidu.paddle.lite.demo.object_detection-gK_xbLymPxaih7CjOatFhg==/lib/arm64/libc++_shared.so (BuildId: e82aa9902823c7b87f3cafcab9ae75ec6c9285e2)
11-22 17:52:04.319 19218 19218 F DEBUG : #2 pc 000000000009d07c /data/app/~~DiH1V3i3sfNCkpLxJ1ICXw==/com.baidu.paddle.lite.demo.object_detection-gK_xbLymPxaih7CjOatFhg==/lib/arm64/libc++_shared.so (BuildId: e82aa9902823c7b87f3cafcab9ae75ec6c9285e2)
11-22 17:52:04.319 19218 19218 F DEBUG : #3 pc 00000000000aead0 /data/app/~~DiH1V3i3sfNCkpLxJ1ICXw==/com.baidu.paddle.lite.demo.object_detection-gK_xbLymPxaih7CjOatFhg==/lib/arm64/libc++_shared.so (BuildId: e82aa9902823c7b87f3cafcab9ae75ec6c9285e2)
11-22 17:52:04.319 19218 19218 F DEBUG : #4 pc 00000000000ae0fc /data/app/~~DiH1V3i3sfNCkpLxJ1ICXw==/com.baidu.paddle.lite.demo.object_detection-gK_xbLymPxaih7CjOatFhg==/lib/arm64/libc++_shared.so (BuildId: e82aa9902823c7b87f3cafcab9ae75ec6c9285e2)
11-22 17:52:04.319 19218 19218 F DEBUG : #5 pc 00000000000ae058 /data/app/~~DiH1V3i3sfNCkpLxJ1ICXw==/com.baidu.paddle.lite.demo.object_detection-gK_xbLymPxaih7CjOatFhg==/lib/arm64/libc++_shared.so (__cxa_throw+112) (BuildId: e82aa9902823c7b87f3cafcab9ae75ec6c9285e2)
11-22 17:52:04.319 19218 19218 F DEBUG : #6 pc 00000000000cc6ac /data/app/~~DiH1V3i3sfNCkpLxJ1ICXw==/com.baidu.paddle.lite.demo.object_detection-gK_xbLymPxaih7CjOatFhg==/lib/arm64/libpaddle_light_api_shared.so (BuildId: c492f519d99bd722bf54d578d6536dc073d3d8b3)
11-22 17:52:04.319 19218 19218 F DEBUG : #7 pc 00000000002b6cf0 /data/app/~~DiH1V3i3sfNCkpLxJ1ICXw==/com.baidu.paddle.lite.demo.object_detection-gK_xbLymPxaih7CjOatFhg==/lib/arm64/libpaddle_light_api_shared.so (BuildId: c492f519d99bd722bf54d578d6536dc073d3d8b3)
11-22 17:52:04.319 19218 19218 F DEBUG : #8 pc 00000000002b3b64 /data/app/~~DiH1V3i3sfNCkpLxJ1ICXw==/com.baidu.paddle.lite.demo.object_detection-gK_xbLymPxaih7CjOatFhg==/lib/arm64/libpaddle_light_api_shared.so (BuildId: c492f519d99bd722bf54d578d6536dc073d3d8b3)
11-22 17:52:04.319 19218 19218 F DEBUG : #9 pc 0000000000319970 /data/app/~~DiH1V3i3sfNCkpLxJ1ICXw==/com.baidu.paddle.lite.demo.object_detection-gK_xbLymPxaih7CjOatFhg==/lib/arm64/libpaddle_light_api_shared.so (BuildId: c492f519d99bd722bf54d578d6536dc073d3d8b3)
11-22 17:52:04.319 19218 19218 F DEBUG : #10 pc 000000000031f3d8 /data/app/~~DiH1V3i3sfNCkpLxJ1ICXw==/com.baidu.paddle.lite.demo.object_detection-gK_xbLymPxaih7CjOatFhg==/lib/arm64/libpaddle_light_api_shared.so (BuildId: c492f519d99bd722bf54d578d6536dc073d3d8b3)
11-22 17:52:04.319 19218 19218 F DEBUG : #11 pc 000000000031f250 /data/app/~~DiH1V3i3sfNCkpLxJ1ICXw==/com.baidu.paddle.lite.demo.object_detection-gK_xbLymPxaih7CjOatFhg==/lib/arm64/libpaddle_light_api_shared.so (paddle::lite::RuntimeProgram::Run()+36) (BuildId: c492f519d99bd722bf54d578d6536dc073d3d8b3)
11-22 17:52:04.319 19218 19218 F DEBUG : #12 pc 000000000032ffec /data/app/~~DiH1V3i3sfNCkpLxJ1ICXw==/com.baidu.paddle.lite.demo.object_detection-gK_xbLymPxaih7CjOatFhg==/lib/arm64/libpaddle_light_api_shared.so (BuildId: c492f519d99bd722bf54d578d6536dc073d3d8b3)
11-22 17:52:04.319 19218 19218 F DEBUG : #13 pc 00000000000b278c /data/app/~~DiH1V3i3sfNCkpLxJ1ICXw==/com.baidu.paddle.lite.demo.object_detection-gK_xbLymPxaih7CjOatFhg==/lib/arm64/libNative.so (BuildId: dab62cf7d6df0fda60b2130af7200e909fd67eea)
11-22 17:52:04.319 19218 19218 F DEBUG : #14 pc 000000000009b418 /data/app/~~DiH1V3i3sfNCkpLxJ1ICXw==/com.baidu.paddle.lite.demo.object_detection-gK_xbLymPxaih7CjOatFhg==/lib/arm64/libNative.so (BuildId: dab62cf7d6df0fda60b2130af7200e909fd67eea)
11-22 17:52:04.319 19218 19218 F DEBUG : #15 pc 0000000000095c94 /data/app/~~DiH1V3i3sfNCkpLxJ1ICXw==/com.baidu.paddle.lite.demo.object_detection-gK_xbLymPxaih7CjOatFhg==/lib/arm64/libNative.so (Java_com_baidu_paddle_lite_demo_ppocr_1demo_Native_nativeProcess+184) (BuildId: dab62cf7d6df0fda60b2130af7200e909fd67eea)
11-22 17:52:04.319 19218 19218 F DEBUG : #16 pc 000000000013ced4 /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+148) (BuildId: 32cda5ceec1e68666841a6ebde60d2e1)
11-22 17:52:04.319 19218 19218 F DEBUG : #17 pc 00000000001337e8 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 32cda5ceec1e68666841a6ebde60d2e1)
11-22 17:52:04.319 19218 19218 F DEBUG : #18 pc 00000000001a8a94 /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+228) (BuildId: 32cda5ceec1e68666841a6ebde60d2e1)
11-22 17:52:04.319 19218 19218 F DEBUG : #19 pc 00000000003185d8 /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+376) (BuildId: 32cda5ceec1e68666841a6ebde60d2e1)
11-22 17:52:04.319 19218 19218 F DEBUG : #20 pc 000000000030f9c4 /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*)+696) (BuildId: 32cda5ceec1e68666841a6ebde60d2e1)
11-22 17:52:04.319 19218 19218 F DEBUG : #21 pc 0000000000682eac /apex/com.android.art/lib64/libart.so (MterpInvokeStaticRange+412) (BuildId: 32cda5ceec1e68666841a6ebde60d2e1)
11-22 17:52:04.319 19218 19218 F DEBUG : #22 pc 000000000012dc94 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_static_range+20) (BuildId: 32cda5ceec1e68666841a6ebde60d2e1)
11-22 17:52:04.319 19218 19218 F DEBUG : #23 pc 00000000001ad5ea [anon:dalvik-classes.dex extracted in memory from /data/app/~~DiH1V3i3sfNCkpLxJ1ICXw==/com.baidu.paddle.lite.demo.object_detection-gK_xbLymPxaih7CjOatFhg==/base.apk] (com.baidu.paddle.lite.demo.ppocr_demo.Native.process+30)
11-22 17:52:04.319 19218 19218 F DEBUG : #24 pc 0000000000680818 /apex/com.android.art/lib64/libart.so (MterpInvokeVirtualRange+1132) (BuildId: 32cda5ceec1e68666841a6ebde60d2e1)
11-22 17:52:04.319 19218 19218 F DEBUG : #25 pc 000000000012db14 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual_range+20) (BuildId: 32cda5ceec1e68666841a6ebde60d2e1)
11-22 17:52:04.319 19218 19218 F DEBUG : #26 pc 00000000001ad02e [anon:dalvik-classes.dex extracted in memory from /data/app/~~DiH1V3i3sfNCkpLxJ1ICXw==/com.baidu.paddle.lite.demo.object_detection-gK_xbLymPxaih7CjOatFhg==/base.apk] (com.baidu.paddle.lite.demo.ppocr_demo.MainActivity.onTextureChanged+86)
11-22 17:52:04.319 19218 19218 F DEBUG : #27 pc 000000000067e9cc /apex/com.android.art/lib64/libart.so (MterpInvokeInterface+1808) (BuildId: 32cda5ceec1e68666841a6ebde60d2e1)
11-22 17:52:04.319 19218 19218 F DEBUG : #28 pc 000000000012da14 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_interface+20) (BuildId: 32cda5ceec1e68666841a6ebde60d2e1)
11-22 17:52:04.319 19218 19218 F DEBUG : #29 pc 00000000001abe9c [anon:dalvik-classes.dex extracted in memory from /data/app/~~DiH1V3i3sfNCkpLxJ1ICXw==/com.baidu.paddle.lite.demo.object_detection-gK_xbLymPxaih7CjOatFhg==/base.apk] (com.baidu.paddle.lite.demo.common.CameraSurfaceView.onDrawFrame+308)
11-22 17:52:04.319 19218 19218 F DEBUG : #30 pc 000000000067e9cc /apex/com.android.art/lib64/libart.so (MterpInvokeInterface+1808) (BuildId: 32cda5ceec1e68666841a6ebde60d2e1)
11-22 17:52:04.319 19218 19218 F DEBUG : #31 pc 000000000012da14 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_interface+20) (BuildId: 32cda5ceec1e68666841a6ebde60d2e1)
11-22 17:52:04.320 19218 19218 F DEBUG : #32 pc 0000000000358f2c /system/framework/framework.jar (offset 0x93b000) (android.opengl.GLSurfaceView$GLThread.guardedRun+1204)
11-22 17:52:04.320 19218 19218 F DEBUG : #33 pc 000000000067f610 /apex/com.android.art/lib64/libart.so (MterpInvokeDirect+1248) (BuildId: 32cda5ceec1e68666841a6ebde60d2e1)
11-22 17:52:04.320 19218 19218 F DEBUG : #34 pc 000000000012d914 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_direct+20) (BuildId: 32cda5ceec1e68666841a6ebde60d2e1)
11-22 17:52:04.320 19218 19218 F DEBUG : #35 pc 0000000000359554 /system/framework/framework.jar (offset 0x93b000) (android.opengl.GLSurfaceView$GLThread.run+48)
11-22 17:52:04.320 19218 19218 F DEBUG : #36 pc 0000000000305f00 /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.7972480776628613073)+268) (BuildId: 32cda5ceec1e68666841a6ebde60d2e1)
11-22 17:52:04.320 19218 19218 F DEBUG : #37 pc 000000000066b9fc /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+780) (BuildId: 32cda5ceec1e68666841a6ebde60d2e1)
11-22 17:52:04.320 19218 19218 F DEBUG : #38 pc 000000000013cff8 /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 32cda5ceec1e68666841a6ebde60d2e1)
11-22 17:52:04.320 19218 19218 F DEBUG : #39 pc 0000000000133564 /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 32cda5ceec1e68666841a6ebde60d2e1)
11-22 17:52:04.320 19218 19218 F DEBUG : #40 pc 00000000001a8a78 /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200) (BuildId: 32cda5ceec1e68666841a6ebde60d2e1)
11-22 17:52:04.320 19218 19218 F DEBUG : #41 pc 00000000005553d8 /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithJValuesart::ArtMethod*(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, jvalue const*)+460) (BuildId: 32cda5ceec1e68666841a6ebde60d2e1)
11-22 17:52:04.320 19218 19218 F DEBUG : #42 pc 00000000005a4788 /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1308) (BuildId: 32cda5ceec1e68666841a6ebde60d2e1)
11-22 17:52:04.320 19218 19218 F DEBUG : #43 pc 00000000000b0048 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+64) (BuildId: 07fbaeed7b7a19203975f06be6f1d5ef)
11-22 17:52:04.320 19218 19218 F DEBUG : #44 pc 00000000000503c8 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 07fbaeed7b7a19203975f06be6f1d5ef)

@paddle-bot
Copy link

paddle-bot bot commented Nov 24, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants