making JNI calls without being attached?

新手上路,请多包涵

问题描述

在华为平板Android 端,用海康动态库SDK预览视频,注册回调函数后,解码回调函数中将视频帧存到公共变量中。 同时开启Timer 定时器,定时将视频帧传到JNI接口中处理。 该JNI接口用opencv处理识别视频帧中的二维码。

问题: 在网络状态良好情况下,PAD端程序不会报异常;但是无线网络存在信道干扰严重或者网络突然中断情况下,JNI接口处理数据报异常。

android studio 自动捕获异常:

2022-08-10 14:58:47.754 20721-20857/ A/ocessvideofram: java_vm_ext.cc:570] JNI DETECTED ERROR IN APPLICATION: a thread (tid 20857 is making JNI calls without being attached
2022-08-10 14:58:47.754 20721-20857/ A/ocessvideofram: java_vm_ext.cc:570]     in call to GetObjectClass

打印的日志信息为

2022-08-10 14:58:47.993 20721-20857/ A/ocessvideofram: runtime.cc:630] Runtime aborting...
2022-08-10 14:58:47.993 20721-20857/ A/ocessvideofram: runtime.cc:630] Dumping all threads without mutator lock held
2022-08-10 14:58:47.993 20721-20857/ A/ocessvideofram: runtime.cc:630] All threads:
2022-08-10 14:58:47.993 20721-20857/ A/ocessvideofram: runtime.cc:630] DALVIK THREADS (33):
2022-08-10 14:58:47.993 20721-20857/ A/ocessvideofram: runtime.cc:630] "Thread-2009" prio=10 tid=23 Runnable
2022-08-10 14:58:47.993 20721-20857/ A/ocessvideofram: runtime.cc:630]   | group="" sCount=0 dsCount=0 flags=0 obj=0x12d80000 self=0xdaf00e00
2022-08-10 14:58:47.993 20721-20857/ A/ocessvideofram: runtime.cc:630]   | sysTid=20857 nice=-10 cgrp=default sched=0/0 handle=0xbf583230
2022-08-10 14:58:47.993 20721-20857/ A/ocessvideofram: runtime.cc:630]   | state=R schedstat=( 109387302 48413175 2601 ) utm=2 stm=8 core=5 HZ=100
2022-08-10 14:58:47.993 20721-20857/ A/ocessvideofram: runtime.cc:630]   | stack=0xbf504000-0xbf506000 stackSize=512KB
2022-08-10 14:58:47.993 20721-20857/ A/ocessvideofram: runtime.cc:630]   | held mutexes= "abort lock" "mutator lock"(shared held)
2022-08-10 14:58:47.993 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #00 pc 0030371f  /apex/com.android.runtime/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, int, BacktraceMap*, char const*, art::ArtMethod*, void*, bool)+78)
2022-08-10 14:58:47.993 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #01 pc 003ae3cf  /apex/com.android.runtime/lib/libart.so (art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool, BacktraceMap*, bool) const+362)
2022-08-10 14:58:47.993 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #02 pc 003aab83  /apex/com.android.runtime/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool, BacktraceMap*, bool) const+34)
2022-08-10 14:58:47.993 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #03 pc 003c36b9  /apex/com.android.runtime/lib/libart.so (art::DumpCheckpoint::Run(art::Thread*)+588)
2022-08-10 14:58:47.993 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #04 pc 003bde3d  /apex/com.android.runtime/lib/libart.so (art::ThreadList::RunCheckpoint(art::Closure*, art::Closure*)+296)
2022-08-10 14:58:47.993 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #05 pc 003bd569  /apex/com.android.runtime/lib/libart.so (art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool)+1408)
2022-08-10 14:58:47.993 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #06 pc 0037d75b  /apex/com.android.runtime/lib/libart.so (art::Runtime::Abort(char const*)+1054)
2022-08-10 14:58:47.993 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #07 pc 000084c7  /system/lib/libbase.so (android::base::LogMessage::~LogMessage()+390)
2022-08-10 14:58:47.993 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #08 pc 0028c15d  /apex/com.android.runtime/lib/libart.so (art::JavaVMExt::JniAbort(char const*, char const*)+1212)
2022-08-10 14:58:47.993 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #09 pc 0027fbe5  /apex/com.android.runtime/lib/libart.so (art::(anonymous namespace)::CheckAttachedThread(char const*)+104)
2022-08-10 14:58:47.993 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #10 pc 00273de7  /apex/com.android.runtime/lib/libart.so (art::(anonymous namespace)::CheckJNI::GetObjectClass(_JNIEnv*, _jobject*)+30)
2022-08-10 14:58:47.993 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #11 pc 0003a083  /data/app/-c0FOmyocJCWYJWlgKoKeKA==/base.apk!libhcnetsdk.so (offset 2c28000) (_JNIEnv::GetObjectClass(_jobject*)+6)
2022-08-10 14:58:47.993 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #12 pc 00061de1  /data/app/-c0FOmyocJCWYJWlgKoKeKA==/base.apk!libhcnetsdk.so (offset 2c28000) (RealDataCallBack_V30+144)
2022-08-10 14:58:47.993 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #13 pc 0001bb23  /data/app/-c0FOmyocJCWYJWlgKoKeKA==/base.apk!libHCPreview.so (offset 2e43000) (NetSDK::CUserCallBack::GetStreamV30Hik(void const*, unsigned int, unsigned int)+80)
2022-08-10 14:58:47.993 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #14 pc 0001bb69  /data/app/-c0FOmyocJCWYJWlgKoKeKA==/base.apk!libHCPreview.so (offset 2e43000) (NetSDK::CUserCallBack::UserGetStreamV30Hik(void const*, unsigned int, unsigned int, void*)+20)
2022-08-10 14:58:47.993 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #15 pc 00018611  /data/app/-c0FOmyocJCWYJWlgKoKeKA==/base.apk!libHCPreview.so (offset 2e43000) (NetSDK::CGetStreamBase::PushDateToGetStreamCB_WithoutLock(void const*, unsigned int, unsigned int, unsigned int)+196)
2022-08-10 14:58:47.993 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #16 pc 00018733  /data/app/-c0FOmyocJCWYJWlgKoKeKA==/base.apk!libHCPreview.so (offset 2e43000) (NetSDK::CGetStreamBase::PushDateToGetStreamCB(void const*, unsigned int, unsigned int, unsigned int)+130)
2022-08-10 14:58:47.993 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #17 pc 00017a77  /data/app/-c0FOmyocJCWYJWlgKoKeKA==/base.apk!libHCPreview.so (offset 2e43000) (NetSDK::CGetStreamBase::GetStreamData(void*, void const*, unsigned int, unsigned int)+150)
2022-08-10 14:58:47.993 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #18 pc 00016bc1  /data/app/-c0FOmyocJCWYJWlgKoKeKA==/base.apk!libHCPreview.so (offset 2e43000) (NetSDK::CGetRTSPStream::ProcessRTPData(void*, void const*, unsigned int, unsigned int)+16)
2022-08-10 14:58:47.993 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #19 pc 000148c7  /data/app/-c0FOmyocJCWYJWlgKoKeKA==/base.apk!libHCPreview.so (offset 2e43000) (NetSDK::CRtspProtocolInstance::CallRecvDataCBFunc(void const*, unsigned int, unsigned int)+86)
2022-08-10 14:58:47.993 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #20 pc 000148f9  /data/app/-c0FOmyocJCWYJWlgKoKeKA==/base.apk!libHCPreview.so (offset 2e43000) (NetSDK::proc_heartbeat_timeout(int, void*, void*, void*, void*)+24)
2022-08-10 14:58:47.993 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #21 pc 00014997  /data/app/-c0FOmyocJCWYJWlgKoKeKA==/base.apk!libHCPreview.so (offset 2e43000) (NetSDK::msg_cbf(int, int, void*, void*, void*, void*)+90)
2022-08-10 14:58:47.993 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #22 pc 00068343  /data/app/-c0FOmyocJCWYJWlgKoKeKA==/base.apk!libHCCore.so (offset 12dc000) (???)
2022-08-10 14:58:47.993 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #23 pc 0006d569  /data/app/-c0FOmyocJCWYJWlgKoKeKA==/base.apk!libHCCore.so (offset 12dc000) (???)
2022-08-10 14:58:47.993 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #24 pc 0006e8a3  /data/app/-c0FOmyocJCWYJWlgKoKeKA==/base.apk!libHCCore.so (offset 12dc000) (???)
2022-08-10 14:58:47.993 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #25 pc 0006e91b  /data/app/-c0FOmyocJCWYJWlgKoKeKA==/base.apk!libHCCore.so (offset 12dc000) (???)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #26 pc 000aa8db  /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+20)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #27 pc 000619b3  /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   (no managed stack frames)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630] 
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630] "main" prio=10 tid=1 Native
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   | group="" sCount=1 dsCount=0 flags=1 obj=0x71858100 self=0xeda5ce00
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   | sysTid=20721 nice=-10 cgrp=default sched=0/0 handle=0xedf6bdc0
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   | state=S schedstat=( 4603724929 64287385 1722 ) utm=447 stm=13 core=5 HZ=100
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   | stack=0xff012000-0xff014000 stackSize=8192KB
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   | held mutexes=
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   kernel: (couldn't read /proc/self/task/20721/stack)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #00 pc 0009a538  /apex/com.android.runtime/lib/bionic/libc.so (__epoll_pwait+20)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #01 pc 0006a0c1  /apex/com.android.runtime/lib/bionic/libc.so (epoll_wait+16)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #02 pc 00010803  /system/lib/libutils.so (android::Looper::pollInner(int)+118)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #03 pc 00010713  /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+30)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #04 pc 000d332b  /system/lib/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long long, int)+24)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   at android.os.MessageQueue.nativePollOnce(Native method)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   at android.os.MessageQueue.next(MessageQueue.java:336)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   at android.os.Looper.loop(Looper.java:174)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   at android.app.ActivityThread.main(ActivityThread.java:7397)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   at java.lang.reflect.Method.invoke(Native method)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:935)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630] 
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630] "Jit thread pool worker thread 0" prio=10 tid=2 Native
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   | group="" sCount=1 dsCount=0 flags=1 obj=0x13145998 self=0xdaf00000
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   | sysTid=20727 nice=0 cgrp=default sched=0/0 handle=0xdae05d90
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   | state=S schedstat=( 215768846 33171724 361 ) utm=19 stm=2 core=1 HZ=100
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   | stack=0xdad07000-0xdad09000 stackSize=1023KB
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   | held mutexes=
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   kernel: (couldn't read /proc/self/task/20727/stack)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #00 pc 0005ba2c  /apex/com.android.runtime/lib/bionic/libc.so (syscall+28)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #01 pc 000e4841  /apex/com.android.runtime/lib/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+80)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #02 pc 003c49c9  /apex/com.android.runtime/lib/libart.so (art::ThreadPool::GetTask(art::Thread*)+172)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #03 pc 003c4155  /apex/com.android.runtime/lib/libart.so (art::ThreadPoolWorker::Run()+72)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #04 pc 003c3da7  /apex/com.android.runtime/lib/libart.so (art::ThreadPoolWorker::Callback(void*)+90)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #05 pc 000aa8db  /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+20)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #06 pc 000619b3  /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   (no managed stack frames)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630] 
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630] "Signal Catcher" prio=10 tid=7 WaitingInMainSignalCatcherLoop
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   | group="" sCount=1 dsCount=0 flags=1 obj=0x13140000 self=0xe6745a00
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   | sysTid=20732 nice=0 cgrp=default sched=0/0 handle=0xdad01230
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   | state=S schedstat=( 20822611 12122085 113 ) utm=2 stm=0 core=1 HZ=100
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   | stack=0xdac06000-0xdac08000 stackSize=1008KB
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   | held mutexes=
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   kernel: (couldn't read /proc/self/task/20732/stack)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #00 pc 0009a868  /apex/com.android.runtime/lib/bionic/libc.so (__rt_sigtimedwait+12)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #01 pc 00068ee3  /apex/com.android.runtime/lib/bionic/libc.so (sigwait+82)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #02 pc 00396503  /apex/com.android.runtime/lib/libart.so (art::SignalCatcher::WaitForSignal(art::Thread*, art::SignalSet&)+178)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #03 pc 003956ff  /apex/com.android.runtime/lib/libart.so (art::SignalCatcher::Run(void*)+186)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #04 pc 000aa8db  /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+20)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #05 pc 000619b3  /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   (no managed stack frames)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630] 
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630] "ADB-JDWP Connection Control Thread" prio=10 tid=8 WaitingInMainDebuggerLoop
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   | group="" sCount=1 dsCount=0 flags=1 obj=0x13140078 self=0xdaf2d400
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   | sysTid=20733 nice=0 cgrp=default sched=0/0 handle=0xdac00230
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   | state=S schedstat=( 85114690 10426142 123 ) utm=8 stm=0 core=5 HZ=100
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   | stack=0xdab05000-0xdab07000 stackSize=1008KB
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   | held mutexes=
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   kernel: (couldn't read /proc/self/task/20733/stack)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #00 pc 0009a710  /apex/com.android.runtime/lib/bionic/libc.so (__ppoll+20)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #01 pc 0006760b  /apex/com.android.runtime/lib/bionic/libc.so (poll+54)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #02 pc 0000711d  /apex/com.android.runtime/lib/libadbconnection.so (adbconnection::AdbConnectionState::RunPollLoop(art::Thread*)+640)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #03 pc 00005bb9  /apex/com.android.runtime/lib/libadbconnection.so (adbconnection::CallbackFunction(void*)+776)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #04 pc 000aa8db  /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+20)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #05 pc 000619b3  /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   (no managed stack frames)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630] 
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630] "HeapTaskDaemon" prio=10 tid=9 WaitingForTaskProcessor
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   | group="" sCount=1 dsCount=0 flags=1 obj=0x13145800 self=0xd79f7600
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   | sysTid=20734 nice=4 cgrp=default sched=0/0 handle=0xc3cec230
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   | state=S schedstat=( 5456739494 442955728 1378 ) utm=484 stm=61 core=7 HZ=100
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   | stack=0xc3be9000-0xc3beb000 stackSize=1040KB
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   | held mutexes=
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   kernel: (couldn't read /proc/self/task/20734/stack)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #00 pc 0005ba30  /apex/com.android.runtime/lib/bionic/libc.so (syscall+32)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #01 pc 000e4b5f  /apex/com.android.runtime/lib/libart.so (art::ConditionVariable::TimedWait(art::Thread*, long long, int)+102)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #02 pc 001d4a25  /apex/com.android.runtime/lib/libart.so (art::gc::TaskProcessor::GetTask(art::Thread*)+244)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #03 pc 001d5099  /apex/com.android.runtime/lib/libart.so (art::gc::TaskProcessor::RunAllTasks(art::Thread*)+48)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   at dalvik.system.VMRuntime.runHeapTasks(Native method)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   at java.lang.Daemons$HeapTaskDaemon.runInternal(Daemons.java:523)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   at java.lang.Daemons$Daemon.run(Daemons.java:137)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   at java.lang.Thread.run(Thread.java:919)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630] 
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630] "ReferenceQueueDaemon" prio=10 tid=10 Waiting
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   | group="" sCount=1 dsCount=0 flags=1 obj=0x131400f0 self=0xd79f8400
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   | sysTid=20735 nice=4 cgrp=default sched=0/0 handle=0xc3be3230
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   | state=S schedstat=( 86227618 12409894 292 ) utm=8 stm=0 core=5 HZ=100
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   | stack=0xc3ae0000-0xc3ae2000 stackSize=1040KB
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   | held mutexes=
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   kernel: (couldn't read /proc/self/task/20735/stack)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #00 pc 0005ba2c  /apex/com.android.runtime/lib/bionic/libc.so (syscall+28)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #01 pc 000e4841  /apex/com.android.runtime/lib/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+80)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #02 pc 002fffc9  /apex/com.android.runtime/lib/libart.so (art::Monitor::Wait(art::Thread*, long long, int, bool, art::ThreadState)+484)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #03 pc 003013ff  /apex/com.android.runtime/lib/libart.so (art::Monitor::Wait(art::Thread*, art::ObjPtr<art::mirror::Object>, long long, int, bool, art::ThreadState)+182)
2022-08-10 14:58:47.994 20721-20857/ A/ocessvideofram: runtime.cc:630]   native: #04 pc 00315cb5  /apex/com.android.runtime/lib/libart.so (art::Object_waitJI(_JNIEnv*, _jobject*, long long, int)+36)
2022-08-10 14:58:47.995 20721-20857/ A/ocessvideofram: runtime.cc:630]   at java.lang.Object.wait(Native method)
2022-08-10 14:58:47.995 20721-20857/ A/ocessvideofram: runtime.cc:630]   - waiting on <0x037183d4> (a java.lang.Class<java.lang.ref.ReferenceQueue>)
2022-08-10 14:58:47.995 20721-20857/ A/ocessvideofram: runtime.cc:630]   at java.lang.Object.wait(Object.java:442)
2022-08-10 14:58:47.995 20721-20857/ A/ocessvideofram: runtime.cc:630]   at java.lang.Object.wait(Object.java:568)
阅读 2.2k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题