Closed cjlkbxt closed 1 year ago
v1.3.0在几台真机以及模拟器里测试过了,是可以正常跑起来的。
因为上面只有log,没有其它信息,所以只能靠猜测来推理,以下结论仅供参考。
上面的log没有jvm层的错误信息,猜测可能发生在jni,推测的原因是: 升级了onnxruntime 1.14.0,并且更改了CMakeLists,引用库的路径也发生了变化,具体是 OcrLibrary/src/main/onnx 改成了OcrLibrary/src/main/onnxruntime-shared,
onnxruntime库很大,没有在这个项目仓库里,如果从旧的代码git pull到新的代码,这部分内容是不更新的,可能会导致jni层错误。
--------- beginning of crash 2023-02-17 16:01:22.355 20984-20984/? A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 20984 (minwan.ocr.onnx), pid 20984 (minwan.ocr.onnx) 2023-02-17 16:01:22.373 1247-1267/? E/libprocessgroup: set_timerslack_ns write failed: Permission denied 2023-02-17 16:01:22.377 1220-1290/? E/AGPService: FrameRateManager: iaware strange app type: -1 2023-02-17 16:01:22.379 1220-1261/? E/power: ISystemSuspend::getService() failed. 2023-02-17 16:01:22.396 21016-21016/? E/DEBUG: failed to read /proc/uptime: Permission denied 2023-02-17 16:01:22.412 2141-2141/? E/HwDisplayInfo: get display Info: display Id: 0, RealSize: Point(1200, 2640), mRotation: 0, mFoldMode: 0, WidthPixels: 1200, HeightPixels: 2640 2023-02-17 16:01:22.422 1220-1263/? E/AGPService: FrameRateManager: iaware strange app type: -1 2023-02-17 16:01:22.423 1220-1263/? E/ITouchService: itouch OneFrameDetect instance is nullptr or oneFrameSwitch is not change 2023-02-17 16:01:22.575 21016-21016/? A/DEBUG: 2023-02-17 16:01:22.575 21016-21016/? A/DEBUG: Build fingerprint: 'HUAWEI/ELS-AN00/HWELS:12/HUAWEIELS-AN00/103.0.0.202C00:user/release-keys' 2023-02-17 16:01:22.575 21016-21016/? A/DEBUG: Revision: '0' 2023-02-17 16:01:22.575 21016-21016/? A/DEBUG: ABI: 'arm64' 2023-02-17 16:01:22.575 21016-21016/? A/DEBUG: Timestamp: 2023-02-17 16:01:22.396742117+0800 2023-02-17 16:01:22.575 21016-21016/? A/DEBUG: Process uptime: 0s 2023-02-17 16:01:22.575 21016-21016/? A/DEBUG: Cmdline: com.benjaminwan.ocr.onnx 2023-02-17 16:01:22.575 21016-21016/? A/DEBUG: pid: 20984, tid: 20984, name: minwan.ocr.onnx >>> com.benjaminwan.ocr.onnx <<< 2023-02-17 16:01:22.575 21016-21016/? A/DEBUG: uid: 11465 2023-02-17 16:01:22.575 21016-21016/? A/DEBUG: tagged_addr_ctrl: 0000000000000001 2023-02-17 16:01:22.575 21016-21016/? A/DEBUG: signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr -------- 2023-02-17 16:01:22.575 21016-21016/? A/DEBUG: Abort message: 'terminating with uncaught exception of type Ort::Exception: No graph was found in the protobuf.'