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

安卓使用YOLOv5_NCNN官方代码,执行ChineseOCRLite会崩溃 #94

Open
yingxiang opened this issue Jun 10, 2022 · 3 comments
Open

Comments

@yingxiang
Copy link

执行安卓的时候会报错,请问有啥遇到吗,该如何解决呢
image

@yingxiang
Copy link
Author

具体执行到这句代码崩溃了angle_net->load_param(mgr, "ocr/angle_op.param");,看起来像是模型问题,但是ios没问题啊

image

@cmdbug
Copy link
Owner

cmdbug commented Jun 10, 2022

检查一下是不是ncnn版本问题,使用一下旧版本试试,比如几个月前,或半年前的版本。

@fengwang
Copy link

@cmdbug

从 debug log 来看, 似乎是 param 文件版本太老的问题:

07/18 16:36:20: Launching 'app' on HUAWEI EVR-N29.
App restart successful without requiring a re-install.
$ adb shell am start -n "com.wzt.yolov5/com.wzt.yolov5.WelcomeActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER

......

D/vulkan: searching for layers in '/data/app/com.wzt.yolov5-SNNOvFjjAil5PvNK699J2A==/lib/arm64'
D/vulkan: searching for layers in '/data/app/com.wzt.yolov5-SNNOvFjjAil5PvNK699J2A==/base.apk!/lib/arm64-v8a'
I/iGraphics: [0030050c] PV 11
E/iGraphics: can not load local debug xml
D/vulkan: added global layer 'VK_LAYER_HUAWEI_iGraphics' from library '/system/lib64/libiGraphicsCore.huawei.so'
W/com.wzt.yolov5: type=1400 audit(0.0:1902294): avc: denied { map } for pid=2593 path="/dev/__properties__/u:object_r:huawei_perf_persist_public_read_prop:s0" dev="tmpfs" ino=10025 scontext=u:r:untrusted_app:s0:c229,c257,c512,c768 tcontext=u:object_r:huawei_perf_persist_public_read_prop:s0 tclass=file permissive=0
I/vulkan: Loaded layer VK_LAYER_HUAWEI_iGraphics
E/iGraphics: pfnCreateDebugReportCallback is nullptr
I/iGraphics: layers 0 VK_LAYER_HUAWEI_iGraphics
I/iGraphics: extensions 0 VK_KHR_external_memory_capabilities
I/iGraphics: extensions 1 VK_KHR_get_physical_device_properties2
I/iGraphics: extensions 2 VK_KHR_get_surface_capabilities2
I/iGraphics: extensions 3 VK_KHR_surface
W/ncnn: [0 Mali-G76]  queueC=0[2]  queueG=0[2]  queueT=0[2]
W/ncnn: [0 Mali-G76]  bugsbn1=0  bugbilz=0  bugcopc=0  bugihfa=0
W/ncnn: [0 Mali-G76]  fp16-p/s/a=1/1/1  int8-p/s/a=1/1/1
W/ncnn: [0 Mali-G76]  subgroup=8  basic=1  vote=0  ballot=0  shuffle=0
W/ncnn: param is too old, please regenerate!
W/ncnn: layer load_param 106 611 failed
A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x30 in tid 2593 (com.wzt.yolov5), pid 2593 (com.wzt.yolov5)

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

No branches or pull requests

3 participants