OAID / TengineKit

TengineKit - Free, Fast, Easy, Real-Time Face Detection & Face Landmarks & Face Attributes & Hand Detection & Hand Landmarks & Body Detection & Body Landmarks & Iris Landmarks & Yolov5 SDK On Mobile.
Other
2.38k stars 318 forks source link

鸿蒙手机线程中检测人脸,晃动几下很容易出现崩溃ImageResizeHelper::cropYuv #68

Open nanhuaqq opened 2 years ago

nanhuaqq commented 2 years ago

鸿蒙手机,在检测时晃动俩下就会出现如下错误:

2021-12-02 15:14:38.595 11099-11099/? A/DEBUG: Timestamp: 2021-12-02 15:14:38+0800 2021-12-02 15:14:38.595 11099-11099/? A/DEBUG: pid: 32600, tid: 10911, name: Thread-12 >>> com.daofeng.shanghubao <<< 2021-12-02 15:14:38.595 11099-11099/? A/DEBUG: uid: 10808 2021-12-02 15:14:38.595 11099-11099/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xaff80000 2021-12-02 15:14:38.595 11099-11099/? A/DEBUG: r0 aff80000 r1 b05c2b24 r2 fff7ff7c r3 00000000 2021-12-02 15:14:38.595 11099-11099/? A/DEBUG: r4 b0542ae4 r5 00000008 r6 aff00000 r7 bb6f26a8 2021-12-02 15:14:38.595 11099-11099/? A/DEBUG: r8 b0500000 r9 00000008 r10 000001e0 r11 fffffffc 2021-12-02 15:14:38.595 11099-11099/? A/DEBUG: ip f35344ec sp bb6f2678 lr bcf9d6a7 pc f34d9048 2021-12-02 15:14:38.712 11099-11099/? A/DEBUG: backtrace: 2021-12-02 15:14:38.712 11099-11099/? A/DEBUG: #00 pc 0004f048 /apex/com.android.runtime/lib/bionic/libc.so (memcpy_a15+112) (BuildId: b3a547af3eb880c5dfd66f61a8c8b4ca) 2021-12-02 15:14:38.712 11099-11099/? A/DEBUG: #01 pc 0003b6a3 /data/app/com.daofeng.shanghubao-3GQsNb2-hMt0ZcNIW4Qdcg==/lib/arm/libtenginekit_engine.so (ImageResizeHelper::cropYuv(unsigned char const, unsigned char, int, int, int, int, int, int)+52) (BuildId: a7eb36802f61e8b75f977c85772960cd9b20aaab) 2021-12-02 15:14:38.712 11099-11099/? A/DEBUG: #02 pc 0001217b /data/app/com.daofeng.shanghubao-3GQsNb2-hMt0ZcNIW4Qdcg==/lib/arm/libtenginekit_engine.so (faceService::runEyeLandmark(FaceInfo&, unsigned char const, int, int, bool)+378) (BuildId: a7eb36802f61e8b75f977c85772960cd9b20aaab) 2021-12-02 15:14:38.712 11099-11099/? A/DEBUG: #03 pc 00011d81 /data/app/com.daofeng.shanghubao-3GQsNb2-hMt0ZcNIW4Qdcg==/lib/arm/libtenginekit_engine.so (faceService::runDetect(unsigned char const, int, int, std::ndk1::vector<FaceInfo, std::ndk1::allocator>&, FaceConfig const&)+332) (BuildId: a7eb36802f61e8b75f977c85772960cd9b20aaab) 2021-12-02 15:14:38.712 11099-11099/? A/DEBUG: #04 pc 0000f077 /data/app/com.daofeng.shanghubao-3GQsNb2-hMt0ZcNIW4Qdcg==/lib/arm/libtenginekit_engine.so (manager::detectFace(unsigned char const, std::ndk1::vector<FaceInfo, std::ndk1::allocator>&, int, int, FaceConfig const&)+22) (BuildId: a7eb36802f61e8b75f977c85772960cd9b20aaab) 2021-12-02 15:14:38.713 11099-11099/? A/DEBUG: #05 pc 0001b76f /data/app/com.daofeng.shanghubao-3GQsNb2-hMt0ZcNIW4Qdcg==/lib/arm/libtenginekit_engine.so (Java_com_tenginekit_engine_core_TengineKitEngine_nativeDetectFace+526) (BuildId: a7eb36802f61e8b75f977c85772960cd9b20aaab) 2021-12-02 15:14:38.713 11099-11099/? A/DEBUG: #06 pc 00071853 /data/app/com.daofeng.shanghubao-3GQsNb2-hMt0ZcNIW4Qdcg==/oat/arm/base.odex (art_jni_trampoline+122) 2021-12-02 15:14:38.713 11099-11099/? A/DEBUG: #07 pc 02009a45 /memfd:/jit-cache (deleted) (com.daofengfun.facevideowh.FFmpegRecordActivity.processImage+1604) 2021-12-02 15:14:38.713 11099-11099/? A/DEBUG: #08 pc 000e3bc5 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub_internal+68) (BuildId: f19139b4309180c887ec6b2ca9af235c) 2021-12-02 15:14:38.713 11099-11099/? A/DEBUG: #09 pc 004558bb /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub+250) (BuildId: f19139b4309180c887ec6b2ca9af235c) 2021-12-02 15:14:38.713 11099-11099/? A/DEBUG: #10 pc 000ebffd /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread, unsigned int, unsigned int, art::JValue, char const)+160) (BuildId: f19139b4309180c887ec6b2ca9af235c) 2021-12-02 15:14:38.713 11099-11099/? A/DEBUG: #11 pc 0022499f /apex/com.android.runtime/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread, art::ArtMethod, art::ShadowFrame, unsigned short, art::JValue)+274) (BuildId: f19139b4309180c887ec6b2ca9af235c) 2021-12-02 15:14:38.713 11099-11099/? A/DEBUG: #12 pc 00220b07 /apex/com.android.runtime/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod, art::Thread, art::ShadowFrame&, art::Instruction const, unsigned short, art::JValue)+802) (BuildId: f19139b4309180c887ec6b2ca9af235c) 2021-12-02 15:14:38.713 11099-11099/? A/DEBUG: #13 pc 0044c96f /apex/com.android.runtime/lib/libart.so (MterpInvokeDirect+358) (BuildId: f19139b4309180c887ec6b2ca9af235c) 2021-12-02 15:14:38.713 11099-11099/? A/DEBUG: #14 pc 000de914 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_direct+20) (BuildId: f19139b4309180c887ec6b2ca9af235c) 2021-12-02 15:14:38.713 11099-11099/? A/DEBUG: #15 pc 003eaf1c /data/app/com.daofeng.shanghubao-3GQsNb2-hMt0ZcNIW4Qdcg==/oat/arm/base.vdex (com.daofengfun.facevideowh.FFmpegRecordActivity.access$1400) 2021-12-02 15:14:38.713 11099-11099/? A/DEBUG: #16 pc 0044d2f1 /apex/com.android.runtime/lib/libart.so (MterpInvokeStatic+932) (BuildId: f19139b4309180c887ec6b2ca9af235c) 2021-12-02 15:14:38.713 11099-11099/? A/DEBUG: #17 pc 000de994 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_static+20) (BuildId: f19139b4309180c887ec6b2ca9af235c) 2021-12-02 15:14:38.713 11099-11099/? A/DEBUG: #18 pc 003ea4ce /data/app/com.daofeng.shanghubao-3GQsNb2-hMt0ZcNIW4Qdcg==/oat/arm/base.vdex (com.daofengfun.facevideowh.FFmpegRecordActivity$ProcessImageThread.run+42) 2021-12-02 15:14:38.713 11099-11099/? A/DEBUG: #19 pc 00200bb3 /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.14250088896784669869+266) (BuildId: f19139b4309180c887ec6b2ca9af235c) 2021-12-02 15:14:38.713 11099-11099/? A/DEBUG: #20 pc 00205465 /apex/com.android.runtime/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread, art::CodeItemDataAccessor const&, art::ShadowFrame)+120) (BuildId: f19139b4309180c887ec6b2ca9af235c) 2021-12-02 15:14:38.713 11099-11099/? A/DEBUG: #21 pc 0043ed29 /apex/com.android.runtime/lib/libart.so (artQuickToInterpreterBridge+832) (BuildId: f19139b4309180c887ec6b2ca9af235c) 2021-12-02 15:14:38.713 11099-11099/? A/DEBUG: #22 pc 000e85a1 /apex/com.android.runtime/lib/libart.so (art_quick_to_interpreter_bridge+32) (BuildId: f19139b4309180c887ec6b2ca9af235c) 2021-12-02 15:14:38.713 11099-11099/? A/DEBUG: #23 pc 000e3bc5 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub_internal+68) (BuildId: f19139b4309180c887ec6b2ca9af235c) 2021-12-02 15:14:38.713 11099-11099/? A/DEBUG: #24 pc 004558bb /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub+250) (BuildId: f19139b4309180c887ec6b2ca9af235c) 2021-12-02 15:14:38.713 11099-11099/? A/DEBUG: #25 pc 000ebffd /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread, unsigned int, unsigned int, art::JValue, char const)+160) (BuildId: f19139b4309180c887ec6b2ca9af235c) 2021-12-02 15:14:38.713 11099-11099/? A/DEBUG: #26 pc 003932bb /apex/com.android.runtime/lib/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod, art::(anonymous namespace)::ArgArray, art::JValue, char const)+54) (BuildId: f19139b4309180c887ec6b2ca9af235c) 2021-12-02 15:14:38.713 11099-11099/? A/DEBUG: #27 pc 00393fc5 /apex/com.android.runtime/lib/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject, _jmethodID, jvalue const)+300) (BuildId: f19139b4309180c887ec6b2ca9af235c) 2021-12-02 15:14:38.713 11099-11099/? A/DEBUG: #28 pc 003c7f0b /apex/com.android.runtime/lib/libart.so (art::Thread::CreateCallback(void)+982) (BuildId: f19139b4309180c887ec6b2ca9af235c) 2021-12-02 15:14:38.713 11099-11099/? A/DEBUG: #29 pc 0009c5e7 /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void)+20) (BuildId: b3a547af3eb880c5dfd66f61a8c8b4ca) 2021-12-02 15:14:38.713 11099-11099/? A/DEBUG: #30 pc 00055a97 /apex/com.android.runtime/lib/bionic/libc.so (start_thread+30) (BuildId: b3a547af3eb880c5dfd66f61a8c8b4ca)