android端部署报如下错误
收藏
基于https://aistudio.baidu.com/aistudio/projectdetail/3737811?channelType=0&channel=0 训练的模型,转换成端侧nb模型文件,源码编译Paddle-Lite在端侧运行模型报错:
2022-08-08 13:40:05.748 25469-25469/? I/urfacedetectio: Late-enabling -Xcheck:jni 2022-08-08 13:40:05.790 25469-25469/? I/urfacedetectio: Unquickening 19 vdex files! 2022-08-08 13:40:05.748 25469-25469/? I/urfacedetectio: Late-enabling -Xcheck:jni 2022-08-08 13:40:05.790 25469-25469/? I/urfacedetectio: Unquickening 19 vdex files! 2022-08-08 13:40:05.748 25469-25469/? I/urfacedetectio: Late-enabling -Xcheck:jni 2022-08-08 13:40:05.790 25469-25469/? I/urfacedetectio: Unquickening 19 vdex files! 2022-08-08 13:40:06.140 25469-25469/com.olc.surfacedetection D/NetworkSecurityConfig: No Network Security Config specified, using platform default 2022-08-08 13:40:06.142 25469-25469/com.olc.surfacedetection D/NetworkSecurityConfig: No Network Security Config specified, using platform default 2022-08-08 13:40:06.146 25469-25469/com.olc.surfacedetection E/libc: Access denied finding property "ro.vendor.pref_scale_resolution" 2022-08-08 13:40:06.188 25469-25499/com.olc.surfacedetection D/libMEOW: meow reload base cfg path: na 2022-08-08 13:40:06.188 25469-25499/com.olc.surfacedetection D/libMEOW: meow reload overlay cfg path: na 2022-08-08 13:40:06.191 25469-25499/com.olc.surfacedetection D/libMEOW: applied 1 plugins for [com.olc.surfacedetection]: 2022-08-08 13:40:06.191 25469-25499/com.olc.surfacedetection D/libMEOW: plugin 1: [libMEOW_gift.so]: 2022-08-08 13:40:06.503 25469-25469/com.olc.surfacedetection W/urfacedetectio: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed) 2022-08-08 13:40:06.505 25469-25469/com.olc.surfacedetection W/urfacedetectio: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed) 2022-08-08 13:40:06.720 25469-25469/com.olc.surfacedetection I/SurfaceFactory: [static] sSurfaceFactory = com.mediatek.view.impl.SurfaceFactoryImpl@d5ec86d 2022-08-08 13:40:06.733 25469-25469/com.olc.surfacedetection D/ViewRootImpl[MainActivity]: hardware acceleration = true , fakeHwAccelerated = false, sRendererDisabled = false, forceHwAccelerated = false, sSystemRendererDisabled = false 2022-08-08 13:40:06.744 25469-25469/com.olc.surfacedetection D/libMEOW: applied 1 plugins for [com.olc.surfacedetection]: 2022-08-08 13:40:06.744 25469-25469/com.olc.surfacedetection D/libMEOW: plugin 1: [libMEOW_gift.so]: 2022-08-08 13:40:06.745 25469-25469/com.olc.surfacedetection I/InputTransport: Create ARC handle: 0xb4000076909f30d0 2022-08-08 13:40:06.747 25469-25469/com.olc.surfacedetection V/PhoneWindow: DecorView setVisiblity: visibility = 0, Parent = android.view.ViewRootImpl@7ac7e69, this = DecorView@12c00ee[MainActivity] 2022-08-08 13:40:06.770 25469-25469/com.olc.surfacedetection V/PhoneWindow: DecorView setVisiblity: visibility = 4, Parent = null, this = DecorView@41c91a1[] 2022-08-08 13:40:06.774 25469-25469/com.olc.surfacedetection D/ViewRootImpl[MainActivity]: hardware acceleration = true , fakeHwAccelerated = false, sRendererDisabled = false, forceHwAccelerated = false, sSystemRendererDisabled = false 2022-08-08 13:40:06.780 25469-25469/com.olc.surfacedetection I/InputTransport: Create ARC handle: 0xb4000076909f3b20 2022-08-08 13:40:06.781 25469-25469/com.olc.surfacedetection V/PhoneWindow: DecorView setVisiblity: visibility = 0, Parent = android.view.ViewRootImpl@4fa6dd, this = DecorView@41c91a1[MainActivity] 2022-08-08 13:40:06.826 25469-25497/com.olc.surfacedetection D/libMEOW: applied 1 plugins for [com.olc.surfacedetection]: 2022-08-08 13:40:06.826 25469-25497/com.olc.surfacedetection D/libMEOW: plugin 1: [libMEOW_gift.so]: 2022-08-08 13:40:06.843 25469-25497/com.olc.surfacedetection I/libMEOW_gift: ctx:0xb4000076e09d4fa0, ARC not Enabled. 2022-08-08 13:40:06.864 25469-25497/com.olc.surfacedetection E/ion: ioctl c0044901 failed with code -1: Invalid argument 2022-08-08 13:40:07.680 25469-25500/com.olc.surfacedetection I/Paddle-Lite: [I 8/ 8 13:40: 7.679 ...rk3/Paddle-Lite/lite/core/device_info.cc:1183 Setup] ARM multiprocessors name: HARDWARE : MT6762V/CB HARDWARE : MT6762V/CB _ITOS_MT6765_ 2022-08-08 13:40:07.680 25469-25500/com.olc.surfacedetection I/Paddle-Lite: [I 8/ 8 13:40: 7.680 ...rk3/Paddle-Lite/lite/core/device_info.cc:1184 Setup] ARM multiprocessors number: 8 2022-08-08 13:40:07.680 25469-25500/com.olc.surfacedetection I/Paddle-Lite: [I 8/ 8 13:40: 7.680 ...rk3/Paddle-Lite/lite/core/device_info.cc:1186 Setup] ARM multiprocessors ID: 0, max freq: 2001, min freq: 2001, cluster ID: 0, CPU ARCH: A53 2022-08-08 13:40:07.680 25469-25500/com.olc.surfacedetection I/Paddle-Lite: [I 8/ 8 13:40: 7.680 ...rk3/Paddle-Lite/lite/core/device_info.cc:1186 Setup] ARM multiprocessors ID: 1, max freq: 2001, min freq: 2001, cluster ID: 0, CPU ARCH: A53 2022-08-08 13:40:07.680 25469-25500/com.olc.surfacedetection I/Paddle-Lite: [I 8/ 8 13:40: 7.680 ...rk3/Paddle-Lite/lite/core/device_info.cc:1186 Setup] ARM multiprocessors ID: 2, max freq: 2001, min freq: 2001, cluster ID: 0, CPU ARCH: A53 2022-08-08 13:40:07.680 25469-25500/com.olc.surfacedetection I/Paddle-Lite: [I 8/ 8 13:40: 7.680 ...rk3/Paddle-Lite/lite/core/device_info.cc:1186 Setup] ARM multiprocessors ID: 3, max freq: 2001, min freq: 2001, cluster ID: 0, CPU ARCH: A53 2022-08-08 13:40:07.680 25469-25500/com.olc.surfacedetection I/Paddle-Lite: [I 8/ 8 13:40: 7.680 ...rk3/Paddle-Lite/lite/core/device_info.cc:1186 Setup] ARM multiprocessors ID: 4, max freq: 1500, min freq: 1500, cluster ID: 0, CPU ARCH: A53 2022-08-08 13:40:07.680 25469-25500/com.olc.surfacedetection I/Paddle-Lite: [I 8/ 8 13:40: 7.680 ...rk3/Paddle-Lite/lite/core/device_info.cc:1186 Setup] ARM multiprocessors ID: 5, max freq: 1500, min freq: 1500, cluster ID: 0, CPU ARCH: A53 2022-08-08 13:40:07.680 25469-25500/com.olc.surfacedetection I/Paddle-Lite: [I 8/ 8 13:40: 7.680 ...rk3/Paddle-Lite/lite/core/device_info.cc:1186 Setup] ARM multiprocessors ID: 6, max freq: 1500, min freq: 1500, cluster ID: 0, CPU ARCH: A53 2022-08-08 13:40:07.680 25469-25500/com.olc.surfacedetection I/Paddle-Lite: [I 8/ 8 13:40: 7.680 ...rk3/Paddle-Lite/lite/core/device_info.cc:1186 Setup] ARM multiprocessors ID: 7, max freq: 1500, min freq: 1500, cluster ID: 0, CPU ARCH: A53 2022-08-08 13:40:07.680 25469-25500/com.olc.surfacedetection I/Paddle-Lite: [I 8/ 8 13:40: 7.680 ...rk3/Paddle-Lite/lite/core/device_info.cc:1192 Setup] L1 DataCache size is: 2022-08-08 13:40:07.680 25469-25500/com.olc.surfacedetection I/Paddle-Lite: [I 8/ 8 13:40: 7.680 ...rk3/Paddle-Lite/lite/core/device_info.cc:1194 Setup] 32 KB 2022-08-08 13:40:07.680 25469-25500/com.olc.surfacedetection I/chatty: uid=10172(com.olc.surfacedetection) Predictor Worke identical 6 lines 2022-08-08 13:40:07.680 25469-25500/com.olc.surfacedetection I/Paddle-Lite: [I 8/ 8 13:40: 7.680 ...rk3/Paddle-Lite/lite/core/device_info.cc:1194 Setup] 32 KB 2022-08-08 13:40:07.680 25469-25500/com.olc.surfacedetection I/Paddle-Lite: [I 8/ 8 13:40: 7.680 ...rk3/Paddle-Lite/lite/core/device_info.cc:1196 Setup] L2 Cache size is: 2022-08-08 13:40:07.680 25469-25500/com.olc.surfacedetection I/Paddle-Lite: [I 8/ 8 13:40: 7.680 ...rk3/Paddle-Lite/lite/core/device_info.cc:1198 Setup] 512 KB 2022-08-08 13:40:07.680 25469-25500/com.olc.surfacedetection I/chatty: uid=10172(com.olc.surfacedetection) Predictor Worke identical 6 lines 2022-08-08 13:40:07.680 25469-25500/com.olc.surfacedetection I/Paddle-Lite: [I 8/ 8 13:40: 7.680 ...rk3/Paddle-Lite/lite/core/device_info.cc:1198 Setup] 512 KB 2022-08-08 13:40:07.680 25469-25500/com.olc.surfacedetection I/Paddle-Lite: [I 8/ 8 13:40: 7.680 ...rk3/Paddle-Lite/lite/core/device_info.cc:1200 Setup] L3 Cache size is: 2022-08-08 13:40:07.680 25469-25500/com.olc.surfacedetection I/Paddle-Lite: [I 8/ 8 13:40: 7.680 ...rk3/Paddle-Lite/lite/core/device_info.cc:1202 Setup] 0 KB 2022-08-08 13:40:07.681 25469-25500/com.olc.surfacedetection I/Paddle-Lite: [I 8/ 8 13:40: 7.680 ...rk3/Paddle-Lite/lite/core/device_info.cc:1202 Setup] 0 KB 2022-08-08 13:40:07.681 25469-25500/com.olc.surfacedetection I/Paddle-Lite: [I 8/ 8 13:40: 7.681 ...rk3/Paddle-Lite/lite/core/device_info.cc:1202 Setup] 0 KB 2022-08-08 13:40:07.681 25469-25500/com.olc.surfacedetection I/chatty: uid=10172(com.olc.surfacedetection) Predictor Worke identical 4 lines 2022-08-08 13:40:07.681 25469-25500/com.olc.surfacedetection I/Paddle-Lite: [I 8/ 8 13:40: 7.681 ...rk3/Paddle-Lite/lite/core/device_info.cc:1202 Setup] 0 KB 2022-08-08 13:40:07.681 25469-25500/com.olc.surfacedetection I/Paddle-Lite: [I 8/ 8 13:40: 7.681 ...rk3/Paddle-Lite/lite/core/device_info.cc:1204 Setup] Total memory: 3881828KB 2022-08-08 13:40:07.804 25469-25500/com.olc.surfacedetection I/Predictor: Word label size: 4 2022-08-08 13:40:07.821 25469-25469/com.olc.surfacedetection D/View: [Warning] assignParent to null: this = DecorView@12c00ee[MainActivity] 2022-08-08 13:40:07.831 25469-25469/com.olc.surfacedetection I/InputTransport: Destroy ARC handle: 0xb4000076909f30d0 2022-08-08 13:40:07.832 25469-25469/com.olc.surfacedetection E/MainActivity: onLoadModelSuccessed: 2022-08-08 13:40:07.879 25469-25469/com.olc.surfacedetection E/MainActivity: onLoadModelSuccessed: runModel 2022-08-08 13:40:07.893 25469-25469/com.olc.surfacedetection E/MainActivity: 模型运行中.... 2022-08-08 13:40:09.083 25469-25500/com.olc.surfacedetection A/Paddle-Lite: [F 8/ 8 13:40: 9. 82 .../lite/kernels/host/elementwise_op_func.h:339 Update] Wrong broadcast type --------- beginning of crash 2022-08-08 13:40:09.083 25469-25500/com.olc.surfacedetection A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 25500 (Predictor Worke), pid 25469 (urfacedetection)
怎么解决?
0
收藏
请登录后评论
监测下内存和cpu,是不是爆了?
只能看到一条报错信息,谁知道怎么打印调用堆栈?
是不是dim维度对应不起来,比如输入要求(1,3,256,256),而你给的输入是(3,256,256)
这个没问题