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

handtracking issues on android platform. #2

Open
bugmany opened this issue Feb 5, 2021 · 0 comments
Open

handtracking issues on android platform. #2

bugmany opened this issue Feb 5, 2021 · 0 comments

Comments

@bugmany
Copy link

bugmany commented Feb 5, 2021

I've build and run handtracking, then run about 5 minutes crash, I retry run and via profiler, found mediapipe memory leak (memory used 4G), google-ai-edge/mediapipe#546, I upgrade Mediapipe version 0.80.
but base on new version, run handtracking crash too, crash log:

02-05 14:52:41.131 27101 27232 F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 27232 (Thread-14), pid 27101 (le.handtracking)
02-05 14:52:41.213 28333 28333 F DEBUG : Softversion: PD1831_A_6.12.1
02-05 14:52:41.214 28333 28333 F DEBUG : Time: 2021-02-05 14:52:41
02-05 14:52:41.214 28333 28333 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
02-05 14:52:41.214 28333 28333 F DEBUG : Build fingerprint: 'vivo/PD1831/PD1831:10/QP1A.190711.020/compiler12300015:user/release-keys'
02-05 14:52:41.214 28333 28333 F DEBUG : Revision: '0'
02-05 14:52:41.214 28333 28333 F DEBUG : ABI: 'arm'
02-05 14:52:41.214 28333 28333 F DEBUG : Timestamp: 2021-02-05 14:52:41+0800
02-05 14:52:41.214 28333 28333 F DEBUG : pid: 27101, tid: 27232, name: Thread-14 >>> com.example.handtracking <<<
02-05 14:52:41.214 28333 28333 F DEBUG : uid: 10359
02-05 14:52:41.214 28333 28333 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
02-05 14:52:41.214 28333 28333 F DEBUG : Cause: null pointer dereference
02-05 14:52:41.214 28333 28333 F DEBUG : Abort message: 'JNI DETECTED ERROR IN APPLICATION: use of deleted global reference 0x2c962'
02-05 14:52:41.214 28333 28333 F DEBUG : r0 98101eb6 r1 c4bcaa2c r2 00000000 r3 00000001
02-05 14:52:41.214 28333 28333 F DEBUG : r4 00000000 r5 c4bcaa2c r6 f78d2000 r7 f72f3180
02-05 14:52:41.214 28333 28333 F DEBUG : r8 ef95fe70 r9 00000000 r10 00000000 r11 ef95fe78
02-05 14:52:41.214 28333 28333 F DEBUG : ip f72f2460 sp c4bca958 lr f2a292bd pc f2a1a38e
02-05 14:52:41.227 28333 28333 F DEBUG :
02-05 14:52:41.227 28333 28333 F DEBUG : backtrace:
02-05 14:52:41.227 28333 28333 F DEBUG : #00 pc 003a838e /apex/com.android.runtime/lib/libart.so (art::Thread::RequestCheckpoint(art::Closure*)+18) (BuildId: fa86ed71a3b185df1f595d815aeef198)
02-05 14:52:41.227 28333 28333 F DEBUG : #1 pc 003b72b9 /apex/com.android.runtime/lib/libart.so (art::ThreadList::RunCheckpoint(art::Closure*, art::Closure*)+140) (BuildId: fa86ed71a3b185df1f595d815aeef198)
02-05 14:52:41.227 28333 28333 F DEBUG : #2 pc 003b6a75 /apex/com.android.runtime/lib/libart.so (art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits>&, bool)+1552) (BuildId: fa86ed71a3b185df1f595d815aeef198)
02-05 14:52:41.227 28333 28333 F DEBUG : #3 pc 00376e0f /apex/com.android.runtime/lib/libart.so (art::Runtime::Abort(char const*)+1058) (BuildId: fa86ed71a3b185df1f595d815aeef198)
02-05 14:52:41.227 28333 28333 F DEBUG : #04 pc 0000855f /system/lib/libbase.so (android::base::LogMessage::~LogMessage()+406) (BuildId: a28585ee446ea17e3e6fcf9c907fff2a)
02-05 14:52:41.227 28333 28333 F DEBUG : #05 pc 0028877f /apex/com.android.runtime/lib/libart.so (art::JavaVMExt::JniAbort(char const*, char const*)+1194) (BuildId: fa86ed71a3b185df1f595d815aeef198)
02-05 14:52:41.227 28333 28333 F DEBUG : #06 pc 00288921 /apex/com.android.runtime/lib/libart.so (art::JavaVMExt::JniAbortF(char const*, char const*, ...)+64) (BuildId: fa86ed71a3b185df1f595d815aeef198)
02-05 14:52:41.227 28333 28333 F DEBUG : #07 pc 003ac27b /apex/com.android.runtime/lib/libart.so (art::Thread::DecodeJObject(_jobject*) const+486) (BuildId: fa86ed71a3b185df1f595d815aeef198)
02-05 14:52:41.228 28333 28333 F DEBUG : #08 pc 0027d8f5 /apex/com.android.runtime/lib/libart.so (art::(anonymous namespace)::ScopedCheck::CheckInstance(art::ScopedObjectAccess&, art::(anonymous namespace)::ScopedCheck::InstanceKind, _jobject*, bool)+80) (BuildId: fa86ed71a3b185df1f595d815aeef198)
02-05 14:52:41.228 28333 28333 F DEBUG : #09 pc 0027ce1d /apex/com.android.runtime/lib/libart.so (art::(anonymous namespace)::ScopedCheck::CheckPossibleHeapValue(art::ScopedObjectAccess&, char, art::(anonymous namespace)::JniValueType)+424) (BuildId: fa86ed71a3b185df1f595d815aeef198)
02-05 14:52:41.228 28333 28333 F DEBUG : #10 pc 0027c667 /apex/com.android.runtime/lib/libart.so (art::(anonymous namespace)::ScopedCheck::Check(art::ScopedObjectAccess&, bool, char const*, art::(anonymous namespace)::JniValueType*)+634) (BuildId: fa86ed71a3b185df1f595d815aeef198)
02-05 14:52:41.228 28333 28333 F DEBUG : #11 pc 00280545 /apex/com.android.runtime/lib/libart.so (art::(anonymous namespace)::CheckJNI::CheckCallArgs(art::ScopedObjectAccess&, art::(anonymous namespace)::ScopedCheck&, _JNIEnv*, _jobject*, _jclass*, _jmethodID*, art::InvokeType, art::(anonymous namespace)::VarArgs const*)+100) (BuildId: fa86ed71a3b185df1f595d815aeef198)
02-05 14:52:41.228 28333 28333 F DEBUG : #12 pc 0027f8bf /apex/com.android.runtime/lib/libart.so (art::(anonymous namespace)::CheckJNI::CallMethodV(char const*, _JNIEnv*, _jobject*, _jclass*, _jmethodID*, std::__va_list, art::Primitive::Type, art::InvokeType)+542) (BuildId: fa86ed71a3b185df1f595d815aeef198)
02-05 14:52:41.228 28333 28333 F DEBUG : #13 pc 00271a45 /apex/com.android.runtime/lib/libart.so (art::(anonymous namespace)::CheckJNI::CallVoidMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list)+44) (BuildId: fa86ed71a3b185df1f595d815aeef198)
02-05 14:52:41.228 28333 28333 F DEBUG : #14 pc 00410191 /data/app/com.example.handtracking-Xa2_tL6ddQRF2TMZngKgcg==/lib/arm/libmediapipe_jni.so (_JNIEnv::CallVoidMethod(_jobject*, _jmethodID*, ...)+32)
02-05 14:52:41.228 28333 28333 F DEBUG : #15 pc 00417061 /data/app/com.example.handtracking-Xa2_tL6ddQRF2TMZngKgcg==/lib/arm/libmediapipe_jni.so
02-05 14:52:41.228 28333 28333 F DEBUG : #16 pc 00773871 /data/app/com.example.handtracking-Xa2_tL6ddQRF2TMZngKgcg==/lib/arm/libmediapipe_jni.so (mediapipe::GlTextureBuffer::~GlTextureBuffer()+88)
02-05 14:52:41.228 28333 28333 F DEBUG : #17 pc 0041c499 /data/app/com.example.handtracking-Xa2_tL6ddQRF2TMZngKgcg==/lib/arm/libmediapipe_jni.so (std::__ndk1::__shared_ptr_pointer<mediapipe::GlTextureBuffer*, std::__ndk1::default_deletemediapipe::GlTextureBuffer, std::__ndk1::allocatormediapipe::GlTextureBuffer>::__on_zero_shared()+8)
02-05 14:52:41.228 28333 28333 F DEBUG : #18 pc 0041c13f /data/app/com.example.handtracking-Xa2_tL6ddQRF2TMZngKgcg==/lib/arm/libmediapipe_jni.so (std::__ndk1::shared_ptrmediapipe::GlTextureBuffer::~shared_ptr()+42)
02-05 14:52:41.228 28333 28333 F DEBUG : #19 pc 0041c195 /data/app/com.example.handtracking-Xa2_tL6ddQRF2TMZngKgcg==/lib/arm/libmediapipe_jni.so (mediapipe::packet_internal::Holdermediapipe::GpuBuffer::~Holder()+20)
02-05 14:52:41.228 28333 28333 F DEBUG : #20 pc 0041c1b1 /data/app/com.example.handtracking-Xa2_tL6ddQRF2TMZngKgcg==/lib/arm/libmediapipe_jni.so (mediapipe::packet_internal::Holdermediapipe::GpuBuffer::~Holder()+4)
02-05 14:52:41.228 28333 28333 F DEBUG : #21 pc 0041057b /data/app/com.example.handtracking-Xa2_tL6ddQRF2TMZngKgcg==/lib/arm/libmediapipe_jni.so (std::__ndk1::shared_ptrmediapipe::packet_internal::HolderBase::~shared_ptr()+42)
02-05 14:52:41.228 28333 28333 F DEBUG : #22 pc 0047bfab /data/app/com.example.handtracking-Xa2_tL6ddQRF2TMZngKgcg==/lib/arm/libmediapipe_jni.so (std::__ndk1::deque<mediapipe::Packet, std::__ndk1::allocatormediapipe::Packet>::pop_front()+22)
02-05 14:52:41.228 28333 28333 F DEBUG : #23 pc 0078120d /data/app/com.example.handtracking-Xa2_tL6ddQRF2TMZngKgcg==/lib/arm/libmediapipe_jni.so (mediapipe::InputStreamHandler::ClearCurrentInputs(mediapipe::CalculatorContext*)+64)
02-05 14:52:41.228 28333 28333 F DEBUG : #24 pc 00778b1d /data/app/com.example.handtracking-Xa2_tL6ddQRF2TMZngKgcg==/lib/arm/libmediapipe_jni.so (mediapipe::CalculatorNode::ProcessNode(mediapipe::CalculatorContext*)+824)
02-05 14:52:41.228 28333 28333 F DEBUG : #25 pc 0076b963 /data/app/com.example.handtracking-Xa2_tL6ddQRF2TMZngKgcg==/lib/arm/libmediapipe_jni.so (mediapipe::internal::SchedulerQueue::RunCalculatorNode(mediapipe::CalculatorNode*, mediapipe::CalculatorContext*)+230)
02-05 14:52:41.228 28333 28333 F DEBUG : #26 pc 0076b54b /data/app/com.example.handtracking-Xa2_tL6ddQRF2TMZngKgcg==/lib/arm/libmediapipe_jni.so (mediapipe::internal::SchedulerQueue::RunNextTask()+194)
02-05 14:52:41.228 28333 28333 F DEBUG : #27 pc 00787f63 /data/app/com.example.handtracking-Xa2_tL6ddQRF2TMZngKgcg==/lib/arm/libmediapipe_jni.so
02-05 14:52:41.228 28333 28333 F DEBUG : #28 pc 007855ed /data/app/com.example.handtracking-Xa2_tL6ddQRF2TMZngKgcg==/lib/arm/libmediapipe_jni.so (mediapipe::GlContext::DedicatedThread::ThreadBody()+176)
02-05 14:52:41.228 28333 28333 F DEBUG : #29 pc 00785265 /data/app/com.example.handtracking-Xa2_tL6ddQRF2TMZngKgcg==/lib/arm/libmediapipe_jni.so (mediapipe::GlContext::DedicatedThread::ThreadBody(void*)+4)
02-05 14:52:41.228 28333 28333 F DEBUG : #30 pc 000999e3 /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+20) (BuildId: 5b9573d8558318f136143219452e5210)
02-05 14:52:41.228 28333 28333 F DEBUG : #31 pc 000540d3 /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30) (BuildId: 5b9573d8558318f136143219452e5210)

Can someone help me or give me advice?

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

1 participant