The Beginning: start_kernel()

本文深入解析Start_kernel过程中涉及的所有函数调用,为读者提供了一个针对特定内核版本的全面分析。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

--------- beginning of crash 06-15 04:08:26.793 996 996 F libc : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 996 (init), pid 996 (init) 06-15 04:08:26.809 996 996 F libc : crash_dump helper failed to exec, or was killed 06-15 04:08:46.925 5241 5241 F libc : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 5241 (init), pid 5241 (init) 06-15 04:08:47.009 5241 5241 F libc : crash_dump helper failed to exec, or was killed 06-15 04:19:49.126 20112 30927 F libc : Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 30927 (Signal Catcher), pid 20112 (m.obric.camera2) 06-15 04:19:50.637 430 430 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 06-15 04:19:50.637 430 430 F DEBUG : Build fingerprint: 'unknown/pacific/pacific:15/0.8.0.0/94:user/test-keys' 06-15 04:19:50.637 430 430 F DEBUG : Revision: '0' 06-15 04:19:50.637 430 430 F DEBUG : ABI: 'arm64' 06-15 04:19:50.637 430 430 F DEBUG : Timestamp: 2025-06-15 04:19:49.413255468+0800 06-15 04:19:50.637 430 430 F DEBUG : Process uptime: 396s 06-15 04:19:50.637 430 430 F DEBUG : Cmdline: com.obric.camera2 06-15 04:19:50.637 430 430 F DEBUG : pid: 20112, tid: 30927, name: Signal Catcher >>> com.obric.camera2 <<< 06-15 04:19:50.637 430 430 F DEBUG : uid: 10057 06-15 04:19:50.637 430 430 F DEBUG : tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE) 06-15 04:19:50.637 430 430 F DEBUG : pac_enabled_keys: 000000000000000f (PR_PAC_APIAKEY, PR_PAC_APIBKEY, PR_PAC_APDAKEY, PR_PAC_APDBKEY) 06-15 04:19:50.637 430 430 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- 06-15 04:19:50.637 430 430 F DEBUG : Abort message: 'Caused HeapTaskDaemon failure : SuspendAll timeout: Unsuspended threads: Thread[2,tid=30927,Runnable,Thread*=0x717887c630,peer=0x158c02d0,"Signal Catcher"], Info for Thread[2,tid=30927,Runnable,Thread*=0x717887c630,peer=0x158c02d0,"Signal Catcher"]:Signal Catcher tid: 30927, state&flags: 0x9, priority: 10, barrier value: 1, Target states: [30927 (Signal Catcher) S 1585 1585 0 0 -1 4194368 53581 0 210 0 455 116 0 0 0 -20 120 0 6, 30927 (Signal Catcher) S 1585 1585 0 0 -1 4194368 53581 0 210 0 455 116 0 0 0 -20 120 0 6]1@481294200252 Final wait time: 2.023s' 06-15 04:19:50.637 430 430 F DEBUG : x0 fffffffffffffffc x1 0000000000000089 x2 0000000000000010 x3 00000070108fdd18 06-15 04:19:50.637 430 430 F DEBUG : x4 0000000000000000 x5 00000000ffffffff x6 00000000ffffffff x7 7365786574756d20 06-15 04:19:50.637 430 430 F DEBUG : x8 0000000000000062 x9 590991cad317e6aa x10 ffffffffffd13893 x11 0000000033e148f4 06-15 04:19:50.637 430 430 F DEBUG : x12 00000000684dd964 x13 000000007fffffff x14 0000000000052a7a x15 000000031f353f17 06-15 04:19:50.637 430 430 F DEBUG : x16 00000072c251a0d8 x17 00000072c24c6f00 x18 000000701078c000 x19 0000000000000010 06-15 04:19:50.637 430 430 F DEBUG : x20 00000070108fdd18 x21 0000007178a68578 x22 0000000000000089 x23 00000070108ff860 06-15 04:19:50.637 430 430 F DEBUG : x24 00000070108ff8c0 x25 0000000000000000 x26 00000000ee3c61b7 x27 0000000000000001 06-15 04:19:50.637 430 430 F DEBUG : x28 0000000000000000 x29 00000070108fdd30 06-15 04:19:50.637 430 430 F DEBUG : lr 00000072c249f5b8 sp 00000070108fdd10 pc 00000072c24c6f24 pst 0000000060001000 06-15 04:19:50.637 430 430 F DEBUG : 18 total frames 06-15 04:19:50.637 430 430 F DEBUG : backtrace: 06-15 04:19:50.637 430 430 F DEBUG : #00 pc 000000000008bf24 /apex/com.android.runtime/lib64/bionic/libc.so (syscall+36) (BuildId: 5f5c1386426a2756c92c6d45ddc06654) 06-15 04:19:50.637 430 430 F DEBUG : #01 pc 00000000000645b4 /apex/com.android.runtime/lib64/bionic/libc.so (__futex_wait_ex(void volatile*, bool, int, bool, timespec const*)+148) (BuildId: 5f5c1386426a2756c92c6d45ddc06654) 06-15 04:19:50.637 430 430 F DEBUG : #02 pc 0000000000072f48 /apex/com.android.runtime/lib64/bionic/libc.so (pthread_cond_timedwait+136) (BuildId: 5f5c1386426a2756c92c6d45ddc06654) 06-15 04:19:50.637 430 430 F DEBUG : #03 pc 00000000000b0aec /apex/com.android.art/lib64/libc++.so (std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>)+96) (BuildId: 53e0091d25a788802d2d3a5324f79b527df4913f) 06-15 04:19:50.637 430 430 F DEBUG : #04 pc 0000000000093530 /apex/com.android.art/lib64/libunwindstack.so (unwindstack::ThreadEntry::Wait(unwindstack::WaitType)+140) (BuildId: c12353edf5bb03325316f4802d7fa4b4) 06-15 04:19:50.637 430 430 F DEBUG : #05 pc 00000000000939e4 /apex/com.android.art/lib64/libunwindstack.so (unwindstack::ThreadUnwinder::SendSignalToThread(int, int)+296) (BuildId: c12353edf5bb03325316f4802d7fa4b4) 06-15 04:19:50.637 430 430 F DEBUG : #06 pc 0000000000093bec /apex/com.android.art/lib64/libunwindstack.so (unwindstack::ThreadUnwinder::UnwindWithSignal(int, int, std::__1::unique_ptr<unwindstack::Regs, std::__1::default_delete<unwindstack::Regs>>*, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>> const*, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>> const*)+104) (BuildId: c12353edf5bb03325316f4802d7fa4b4) 06-15 04:19:50.637 430 430 F DEBUG : #07 pc 00000000000606f4 /apex/com.android.art/lib64/libunwindstack.so (unwindstack::AndroidLocalUnwinder::InternalUnwind(std::__1::optional<int>, unwindstack::AndroidUnwinderData&)+364) (BuildId: c12353edf5bb03325316f4802d7fa4b4) 06-15 04:19:50.637 430 430 F DEBUG : #08 pc 00000000007a3be0 /apex/com.android.art/lib64/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, unwindstack::AndroidLocalUnwinder&, int, char const*, art::ArtMethod*, void*, bool)+184) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:19:50.637 430 430 F DEBUG : #09 pc 000000000087fe1c /apex/com.android.art/lib64/libart.so (art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, unwindstack::AndroidLocalUnwinder&, bool, bool) const+360) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:19:50.637 430 430 F DEBUG : #10 pc 00000000008a21d0 /apex/com.android.art/lib64/libart.so (art::DumpCheckpoint::Run(art::Thread*)+1204) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:19:50.637 430 430 F DEBUG : #11 pc 000000000089932c /apex/com.android.art/lib64/libart.so (art::ThreadList::RunCheckpoint(art::Closure*, art::Closure*, bool, bool)+2964) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:19:50.637 430 430 F DEBUG : #12 pc 0000000000897e10 /apex/com.android.art/lib64/libart.so (art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool)+920) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:19:50.637 430 430 F DEBUG : #13 pc 0000000000897a1c /apex/com.android.art/lib64/libart.so (art::ThreadList::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char>>&)+1436) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:19:50.637 430 430 F DEBUG : #14 pc 0000000000848318 /apex/com.android.art/lib64/libart.so (art::Runtime::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char>>&)+60) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:19:50.637 430 430 F DEBUG : #15 pc 0000000000869f38 /apex/com.android.art/lib64/libart.so (art::SignalCatcher::Run(void*)+5484) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:19:50.637 430 430 F DEBUG : #16 pc 0000000000073cd0 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204) (BuildId: 5f5c1386426a2756c92c6d45ddc06654) 06-15 04:19:50.637 430 430 F DEBUG : #17 pc 0000000000065bb0 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+68) (BuildId: 5f5c1386426a2756c92c6d45ddc06654) 06-15 04:25:49.660 3607 3607 F libc : Fatal signal 6 (SIGABRT), code 128 (SI_KERNEL) in tid 3607 (system_server), pid 3607 (system_server) 06-15 04:25:50.946 11521 11521 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 06-15 04:25:50.946 11521 11521 F DEBUG : Build fingerprint: 'unknown/pacific/pacific:15/0.8.0.0/94:user/test-keys' 06-15 04:25:50.946 11521 11521 F DEBUG : Revision: '0' 06-15 04:25:50.946 11521 11521 F DEBUG : ABI: 'arm64' 06-15 04:25:50.946 11521 11521 F DEBUG : Timestamp: 2025-06-15 04:25:50.026572831+0800 06-15 04:25:50.946 11521 11521 F DEBUG : Process uptime: 1036s 06-15 04:25:50.946 11521 11521 F DEBUG : Cmdline: system_server 06-15 04:25:50.946 11521 11521 F DEBUG : pid: 3607, tid: 3607, name: system_server >>> system_server <<< 06-15 04:25:50.946 11521 11521 F DEBUG : uid: 1000 06-15 04:25:50.946 11521 11521 F DEBUG : tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE) 06-15 04:25:50.946 11521 11521 F DEBUG : pac_enabled_keys: 000000000000000f (PR_PAC_APIAKEY, PR_PAC_APIBKEY, PR_PAC_APDAKEY, PR_PAC_APDBKEY) 06-15 04:25:50.946 11521 11521 F DEBUG : signal 6 (SIGABRT), code 128 (SI_KERNEL), fault addr -------- 06-15 04:25:50.946 11521 11521 F DEBUG : x0 b4000071b8893c60 x1 0000000000000080 x2 00000000000007d3 x3 0000000000000000 06-15 04:25:50.947 11521 11521 F DEBUG : x4 0000000000000000 x5 0000000000000000 x6 0000000000000000 x7 000000702465b92c 06-15 04:25:50.947 11521 11521 F DEBUG : x8 0000000000000062 x9 aae30b8c88d99a37 x10 0000000000000001 x11 0000000000008001 06-15 04:25:50.947 11521 11521 F DEBUG : x12 0000000000000004 x13 000000007fffffff x14 0000000000056ae6 x15 0000000344f4d1c1 06-15 04:25:50.947 11521 11521 F DEBUG : x16 0000007024a22a20 x17 00000072c24c6f00 x18 00000072efc34000 x19 b4000071b8893c50 06-15 04:25:50.947 11521 11521 F DEBUG : x20 0000000000000000 x21 00000000000007d3 x22 0000007024c0e390 x23 00000070240537d5 06-15 04:25:50.947 11521 11521 F DEBUG : x24 00000072eef598c0 x25 0000000000000001 x26 00000072eef598c0 x27 0000000000fffff7 06-15 04:25:50.947 11521 11521 F DEBUG : x28 b4000070a88b5e80 x29 0000007ff5cfcd50 06-15 04:25:50.947 11521 11521 F DEBUG : lr 000000702447cb68 sp 0000007ff5cfcd40 pc 00000072c24c6f20 pst 0000000060001000 06-15 04:25:50.947 11521 11521 F DEBUG : 33 total frames 06-15 04:25:50.947 11521 11521 F DEBUG : backtrace: 06-15 04:25:50.947 11521 11521 F DEBUG : #00 pc 000000000008bf20 /apex/com.android.runtime/lib64/bionic/libc.so (syscall+32) (BuildId: 5f5c1386426a2756c92c6d45ddc06654) 06-15 04:25:50.947 11521 11521 F DEBUG : #01 pc 000000000047cb64 /apex/com.android.art/lib64/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+140) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:25:50.947 11521 11521 F DEBUG : #02 pc 000000000066c880 /apex/com.android.art/lib64/libart.so (art::JNI<false>::CallObjectMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list)+492) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:25:50.947 11521 11521 F DEBUG : #03 pc 00000000000df234 /system/lib64/libandroid_runtime.so (_JNIEnv::CallObjectMethod(_jobject*, _jmethodID*, ...)+124) (BuildId: 8be94ccb8d309e803b6ab32930a3b12b) 06-15 04:25:50.947 11521 11521 F DEBUG : #04 pc 00000000001fe4b4 /system/lib64/libandroid_runtime.so ((anonymous namespace)::Receiver::handleEvent(int, int, void*)+100) (BuildId: 8be94ccb8d309e803b6ab32930a3b12b) 06-15 04:25:50.947 11521 11521 F DEBUG : #05 pc 00000000000142e8 /system/lib64/libutils.so (android::Looper::pollInner(int)+1236) (BuildId: bb46aaa986a05e541482395c328d50a0) 06-15 04:25:50.947 11521 11521 F DEBUG : #06 pc 0000000000013db0 /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+124) (BuildId: bb46aaa986a05e541482395c328d50a0) 06-15 04:25:50.947 11521 11521 F DEBUG : #07 pc 000000000019e220 /system/lib64/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long, int)+48) (BuildId: 8be94ccb8d309e803b6ab32930a3b12b) 06-15 04:25:50.947 11521 11521 F DEBUG : #08 pc 000000000037fd40 [anon_shmem:dalvik-jit-code-cache] (offset 0x2000000) (art_jni_trampoline+112) 06-15 04:25:50.947 11521 11521 F DEBUG : #09 pc 0000000000034e58 [anon_shmem:dalvik-zygote-jit-code-cache] (offset 0x2000000) (android.os.MessageQueue.next+264) 06-15 04:25:50.947 11521 11521 F DEBUG : #10 pc 00000000008e10ec [anon_shmem:dalvik-zygote-jit-code-cache] (offset 0x2000000) (android.os.Looper.loopOnce+92) 06-15 04:25:50.947 11521 11521 F DEBUG : #11 pc 000000000005a4ec [anon_shmem:dalvik-zygote-jit-code-cache] (offset 0x2000000) (android.os.Looper.loop+252) 06-15 04:25:50.947 11521 11521 F DEBUG : #12 pc 0000000000209408 /apex/com.android.art/lib64/libart.so (nterp_helper+152) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:25:50.947 11521 11521 F DEBUG : #13 pc 00000000002a2e80 /system/framework/services.jar (com.android.server.SystemServer.run+1276) 06-15 04:25:50.947 11521 11521 F DEBUG : #14 pc 000000000020a2c4 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:25:50.947 11521 11521 F DEBUG : #15 pc 00000000002a27ea /system/framework/services.jar (com.android.server.SystemServer.main+10) 06-15 04:25:50.947 11521 11521 F DEBUG : #16 pc 0000000000210a40 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+640) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:25:50.947 11521 11521 F DEBUG : #17 pc 0000000000472050 /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+216) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:25:50.947 11521 11521 F DEBUG : #18 pc 000000000082cf80 /apex/com.android.art/lib64/libart.so (_jobject* art::InvokeMethod<(art::PointerSize)8>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)+2108) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:25:50.947 11521 11521 F DEBUG : #19 pc 00000000007995a8 /apex/com.android.art/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*) (.__uniq.165753521025965369065708152063621506277)+36) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:25:50.947 11521 11521 F DEBUG : #20 pc 0000000000226f70 /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:25:50.947 11521 11521 F DEBUG : #21 pc 000000000020a320 /apex/com.android.art/lib64/libart.so (nterp_helper+4016) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:25:50.947 11521 11521 F DEBUG : #22 pc 000000000020d112 /system/framework/framework.jar (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+18) 06-15 04:25:50.947 11521 11521 F DEBUG : #23 pc 000000000020b0e4 /apex/com.android.art/lib64/libart.so (nterp_helper+7540) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:25:50.947 11521 11521 F DEBUG : #24 pc 0000000000211a06 /system/framework/framework.jar (com.android.internal.os.ZygoteInit.main+558) 06-15 04:25:50.947 11521 11521 F DEBUG : #25 pc 0000000000210a40 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+640) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:25:50.947 11521 11521 F DEBUG : #26 pc 0000000000472050 /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+216) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:25:50.947 11521 11521 F DEBUG : #27 pc 000000000082d918 /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithVarArgs<_jmethodID*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+472) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:25:50.947 11521 11521 F DEBUG : #28 pc 00000000006f4248 /apex/com.android.art/lib64/libart.so (art::JNI<true>::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+560) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:25:50.947 11521 11521 F DEBUG : #29 pc 00000000000e2f9c /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+108) (BuildId: 8be94ccb8d309e803b6ab32930a3b12b) 06-15 04:25:50.947 11521 11521 F DEBUG : #30 pc 00000000000fa244 /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+916) (BuildId: 8be94ccb8d309e803b6ab32930a3b12b) 06-15 04:25:50.947 11521 11521 F DEBUG : #31 pc 00000000000047d8 /system/bin/app_process64 (main+1816) (BuildId: a3e8d583af2cdcff29751370d5826827) 06-15 04:25:50.947 11521 11521 F DEBUG : #32 pc 000000000005b9e4 /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+120) (BuildId: 5f5c1386426a2756c92c6d45ddc06654) 06-15 04:26:31.344 4216 4216 E AndroidRuntime: FATAL EXCEPTION: main 06-15 04:26:31.344 4216 4216 E AndroidRuntime: Process: com.obric.assistant:interactor, PID: 4216 06-15 04:26:31.344 4216 4216 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.345 6667 13825 E AndroidRuntime: FATAL EXCEPTION: DataStallThread 06-15 04:26:31.345 6667 13825 E AndroidRuntime: Process: com.bytedance.radioservice, PID: 6667 06-15 04:26:31.345 6667 13825 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.347 12431 12539 E AndroidRuntime: FATAL EXCEPTION: [GT]ColdPool#5 06-15 04:26:31.347 12431 12539 E AndroidRuntime: Process: com.tencent.mm, PID: 12431 06-15 04:26:31.347 12431 12539 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.361 12431 12528 E AndroidRuntime: FATAL EXCEPTION: [GT]HotPool#3 06-15 04:26:31.361 12431 12528 E AndroidRuntime: Process: com.tencent.mm, PID: 12431 06-15 04:26:31.361 12431 12528 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.371 12431 12181 E AndroidRuntime: FATAL EXCEPTION: [GT]HotPool#8 06-15 04:26:31.371 12431 12181 E AndroidRuntime: Process: com.tencent.mm, PID: 12431 06-15 04:26:31.371 12431 12181 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.376 4068 4068 E AndroidRuntime: FATAL EXCEPTION: main 06-15 04:26:31.376 4068 4068 E AndroidRuntime: Process: com.android.systemui, PID: 4068 06-15 04:26:31.376 4068 4068 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.392 5764 8003 E AndroidRuntime: FATAL EXCEPTION: long-time-task-thread-4 06-15 04:26:31.392 5764 8003 E AndroidRuntime: Process: com.obric.memorydata, PID: 5764 06-15 04:26:31.392 5764 8003 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.393 26358 26358 E AndroidRuntime: FATAL EXCEPTION: main 06-15 04:26:31.393 26358 26358 E AndroidRuntime: Process: com.obric.feedback, PID: 26358 06-15 04:26:31.393 26358 26358 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.394 20846 20846 E AndroidRuntime: FATAL EXCEPTION: main 06-15 04:26:31.394 20846 20846 E AndroidRuntime: Process: com.android.launcher3, PID: 20846 06-15 04:26:31.394 20846 20846 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.398 11069 11069 E AndroidRuntime: FATAL EXCEPTION: main 06-15 04:26:31.398 11069 11069 E AndroidRuntime: Process: com.obric.mediametadataservice, PID: 11069 06-15 04:26:31.398 11069 11069 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.401 6234 7313 E AndroidRuntime: FATAL EXCEPTION: WsSurvivalHelper 06-15 04:26:31.401 6234 7313 E AndroidRuntime: Process: com.obric.matrix, PID: 6234 06-15 04:26:31.401 6234 7313 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.408 31180 31369 E AndroidRuntime: FATAL EXCEPTION: [GT]ColdPool#6 06-15 04:26:31.408 31180 31369 E AndroidRuntime: Process: com.tencent.mm:push, PID: 31180 06-15 04:26:31.408 31180 31369 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.427 31180 31180 E AndroidRuntime: FATAL EXCEPTION: main 06-15 04:26:31.427 31180 31180 E AndroidRuntime: Process: com.tencent.mm:push, PID: 31180 06-15 04:26:31.427 31180 31180 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.435 31180 31389 E AndroidRuntime: FATAL EXCEPTION: [GT]ColdPool#15 06-15 04:26:31.435 31180 31389 E AndroidRuntime: Process: com.tencent.mm:push, PID: 31180 06-15 04:26:31.435 31180 31389 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.436 31180 31280 E AndroidRuntime: FATAL EXCEPTION: [GT]ColdPool#2 06-15 04:26:31.436 31180 31280 E AndroidRuntime: Process: com.tencent.mm:push, PID: 31180 06-15 04:26:31.436 31180 31280 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.436 31180 31386 E AndroidRuntime: FATAL EXCEPTION: [GT]ColdPool#14 06-15 04:26:31.436 31180 31386 E AndroidRuntime: Process: com.tencent.mm:push, PID: 31180 06-15 04:26:31.436 31180 31386 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.443 4535 4535 E AndroidRuntime: FATAL EXCEPTION: main 06-15 04:26:31.443 4535 4535 E AndroidRuntime: Process: com.android.phone, PID: 4535 06-15 04:26:31.443 4535 4535 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.450 12431 12558 E AndroidRuntime: FATAL EXCEPTION: [GT]ColdPool#8 06-15 04:26:31.450 12431 12558 E AndroidRuntime: Process: com.tencent.mm, PID: 12431 06-15 04:26:31.450 12431 12558 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.452 12069 12069 E AndroidRuntime: FATAL EXCEPTION: main 06-15 04:26:31.452 12069 12069 E AndroidRuntime: Process: com.obric.weather, PID: 12069 06-15 04:26:31.452 12069 12069 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.456 12431 12697 E AndroidRuntime: FATAL EXCEPTION: default_matrix_thread 06-15 04:26:31.456 12431 12697 E AndroidRuntime: Process: com.tencent.mm, PID: 12431 06-15 04:26:31.456 12431 12697 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.457 12431 12522 E AndroidRuntime: FATAL EXCEPTION: [GT]HotPool#0 06-15 04:26:31.457 12431 12522 E AndroidRuntime: Process: com.tencent.mm, PID: 12431 06-15 04:26:31.457 12431 12522 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.458 6025 7427 E AndroidRuntime: FATAL EXCEPTION: Thread-6 06-15 04:26:31.458 6025 7427 E AndroidRuntime: Process: com.obric.cae, PID: 6025 06-15 04:26:31.458 6025 7427 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.470 31180 31408 E AndroidRuntime: FATAL EXCEPTION: default_matrix_thread 06-15 04:26:31.470 31180 31408 E AndroidRuntime: Process: com.tencent.mm:push, PID: 31180 06-15 04:26:31.470 31180 31408 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.470 12431 12530 E AndroidRuntime: FATAL EXCEPTION: [GT]HotPool#5 06-15 04:26:31.470 12431 12530 E AndroidRuntime: Process: com.tencent.mm, PID: 12431 06-15 04:26:31.470 12431 12530 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.490 12431 12431 E AndroidRuntime: FATAL EXCEPTION: main 06-15 04:26:31.490 12431 12431 E AndroidRuntime: Process: com.tencent.mm, PID: 12431 06-15 04:26:31.490 12431 12431 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.495 12431 12586 E AndroidRuntime: FATAL EXCEPTION: [GT]ColdPool#13 06-15 04:26:31.495 12431 12586 E AndroidRuntime: Process: com.tencent.mm, PID: 12431 06-15 04:26:31.495 12431 12586 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:26:31.502 12431 12532 E AndroidRuntime: FATAL EXCEPTION: [GT]HotPool#6 06-15 04:26:31.502 12431 12532 E AndroidRuntime: Process: com.tencent.mm, PID: 12431 06-15 04:26:31.502 12431 12532 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:27:20.283 18660 18660 F libc : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 18660 (init), pid 18660 (init) 06-15 04:27:20.325 18660 18660 F libc : crash_dump helper failed to exec, or was killed 06-15 04:34:31.899 13872 13872 F libc : Fatal signal 6 (SIGABRT), code 128 (SI_KERNEL) in tid 13872 (system_server), pid 13872 (system_server) 06-15 04:34:33.102 6200 6200 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 06-15 04:34:33.102 6200 6200 F DEBUG : Build fingerprint: 'unknown/pacific/pacific:15/0.8.0.0/94:user/test-keys' 06-15 04:34:33.102 6200 6200 F DEBUG : Revision: '0' 06-15 04:34:33.102 6200 6200 F DEBUG : ABI: 'arm64' 06-15 04:34:33.102 6200 6200 F DEBUG : Timestamp: 2025-06-15 04:34:32.331351694+0800 06-15 04:34:33.102 6200 6200 F DEBUG : Process uptime: 470s 06-15 04:34:33.102 6200 6200 F DEBUG : Cmdline: system_server 06-15 04:34:33.102 6200 6200 F DEBUG : pid: 13872, tid: 13872, name: system_server >>> system_server <<< 06-15 04:34:33.102 6200 6200 F DEBUG : uid: 1000 06-15 04:34:33.102 6200 6200 F DEBUG : tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE) 06-15 04:34:33.102 6200 6200 F DEBUG : pac_enabled_keys: 000000000000000f (PR_PAC_APIAKEY, PR_PAC_APIBKEY, PR_PAC_APDAKEY, PR_PAC_APDBKEY) 06-15 04:34:33.102 6200 6200 F DEBUG : signal 6 (SIGABRT), code 128 (SI_KERNEL), fault addr -------- 06-15 04:34:33.102 6200 6200 F DEBUG : x0 fffffffffffffffc x1 0000007fee5feea0 x2 0000000000000010 x3 0000000000002710 06-15 04:34:33.102 6200 6200 F DEBUG : x4 0000000000000000 x5 0000000000000008 x6 0000007fee5fdd30 x7 0006f4f48f1df93c 06-15 04:34:33.102 6200 6200 F DEBUG : x8 0000000000000016 x9 ffffffffffb9b170 x10 0000000000000009 x11 00000000000d800b 06-15 04:34:33.102 6200 6200 F DEBUG : x12 0000000000000006 x13 0000000000000005 x14 00000000000be490 x15 00000000ebad6a89 06-15 04:34:33.102 6200 6200 F DEBUG : x16 0000007488763c40 x17 000000747d31cf30 x18 0000007493608000 x19 b40000737fa9dd50 06-15 04:34:33.102 6200 6200 F DEBUG : x20 0000000000002710 x21 0000007fee5feea0 x22 0000000000002710 x23 0000007492d8c8c0 06-15 04:34:33.102 6200 6200 F DEBUG : x24 0000000000000030 x25 000000007fffffff x26 0000000000000001 x27 0000000000000006 06-15 04:34:33.102 6200 6200 F DEBUG : x28 0000007fee5ff090 x29 0000007fee5fefc0 06-15 04:34:33.102 6200 6200 F DEBUG : lr 0000007488756edc sp 0000007fee5fee60 pc 000000747d36a78c pst 0000000080001000 06-15 04:34:33.102 6200 6200 F DEBUG : 29 total frames 06-15 04:34:33.102 6200 6200 F DEBUG : backtrace: 06-15 04:34:33.102 6200 6200 F DEBUG : #00 pc 00000000000ca78c /apex/com.android.runtime/lib64/bionic/libc.so (__epoll_pwait+12) (BuildId: 5f5c1386426a2756c92c6d45ddc06654) 06-15 04:34:33.102 6200 6200 F DEBUG : #01 pc 0000000000013ed8 /system/lib64/libutils.so (android::Looper::pollInner(int)+196) (BuildId: bb46aaa986a05e541482395c328d50a0) 06-15 04:34:33.102 6200 6200 F DEBUG : #02 pc 0000000000013db0 /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+124) (BuildId: bb46aaa986a05e541482395c328d50a0) 06-15 04:34:33.102 6200 6200 F DEBUG : #03 pc 000000000019e220 /system/lib64/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long, int)+48) (BuildId: 8be94ccb8d309e803b6ab32930a3b12b) 06-15 04:34:33.102 6200 6200 F DEBUG : #04 pc 0000000000226f70 /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:34:33.102 6200 6200 F DEBUG : #05 pc 0000000000035038 [anon_shmem:dalvik-zygote-jit-code-cache] (offset 0x2000000) (android.os.MessageQueue.next+264) 06-15 04:34:33.102 6200 6200 F DEBUG : #06 pc 0000000000910abc [anon_shmem:dalvik-zygote-jit-code-cache] (offset 0x2000000) (android.os.Looper.loopOnce+92) 06-15 04:34:33.102 6200 6200 F DEBUG : #07 pc 000000000005b9fc [anon_shmem:dalvik-zygote-jit-code-cache] (offset 0x2000000) (android.os.Looper.loop+252) 06-15 04:34:33.102 6200 6200 F DEBUG : #08 pc 0000000000209408 /apex/com.android.art/lib64/libart.so (nterp_helper+152) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:34:33.102 6200 6200 F DEBUG : #09 pc 00000000002a2e80 /system/framework/services.jar (com.android.server.SystemServer.run+1276) 06-15 04:34:33.102 6200 6200 F DEBUG : #10 pc 000000000020a2c4 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:34:33.102 6200 6200 F DEBUG : #11 pc 00000000002a27ea /system/framework/services.jar (com.android.server.SystemServer.main+10) 06-15 04:34:33.102 6200 6200 F DEBUG : #12 pc 0000000000210a40 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+640) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:34:33.102 6200 6200 F DEBUG : #13 pc 0000000000472050 /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+216) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:34:33.102 6200 6200 F DEBUG : #14 pc 000000000082cf80 /apex/com.android.art/lib64/libart.so (_jobject* art::InvokeMethod<(art::PointerSize)8>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)+2108) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:34:33.102 6200 6200 F DEBUG : #15 pc 00000000007995a8 /apex/com.android.art/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*) (.__uniq.165753521025965369065708152063621506277)+36) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:34:33.102 6200 6200 F DEBUG : #16 pc 0000000000226f70 /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:34:33.102 6200 6200 F DEBUG : #17 pc 000000000020a320 /apex/com.android.art/lib64/libart.so (nterp_helper+4016) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:34:33.102 6200 6200 F DEBUG : #18 pc 000000000020d112 /system/framework/framework.jar (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+18) 06-15 04:34:33.102 6200 6200 F DEBUG : #19 pc 000000000020b0e4 /apex/com.android.art/lib64/libart.so (nterp_helper+7540) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:34:33.102 6200 6200 F DEBUG : #20 pc 0000000000211a06 /system/framework/framework.jar (com.android.internal.os.ZygoteInit.main+558) 06-15 04:34:33.102 6200 6200 F DEBUG : #21 pc 0000000000210a40 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+640) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:34:33.102 6200 6200 F DEBUG : #22 pc 0000000000472050 /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+216) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:34:33.102 6200 6200 F DEBUG : #23 pc 000000000082d918 /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithVarArgs<_jmethodID*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+472) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:34:33.102 6200 6200 F DEBUG : #24 pc 00000000006f4248 /apex/com.android.art/lib64/libart.so (art::JNI<true>::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+560) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:34:33.102 6200 6200 F DEBUG : #25 pc 00000000000e2f9c /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+108) (BuildId: 8be94ccb8d309e803b6ab32930a3b12b) 06-15 04:34:33.102 6200 6200 F DEBUG : #26 pc 00000000000fa244 /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+916) (BuildId: 8be94ccb8d309e803b6ab32930a3b12b) 06-15 04:34:33.102 6200 6200 F DEBUG : #27 pc 00000000000047d8 /system/bin/app_process64 (main+1816) (BuildId: a3e8d583af2cdcff29751370d5826827) 06-15 04:34:33.102 6200 6200 F DEBUG : #28 pc 000000000005b9e4 /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+120) (BuildId: 5f5c1386426a2756c92c6d45ddc06654) 06-15 04:34:33.511 23497 24117 E AndroidRuntime: FATAL EXCEPTION: DatabaseSyncService 06-15 04:34:33.511 23497 24117 E AndroidRuntime: Process: com.smartisanos.gallery, PID: 23497 06-15 04:34:33.511 23497 24117 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:34:33.519 19416 31631 E AndroidRuntime: FATAL EXCEPTION: DataStallThread 06-15 04:34:33.519 19416 31631 E AndroidRuntime: Process: com.bytedance.radioservice, PID: 19416 06-15 04:34:33.519 19416 31631 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:34:33.525 23759 23759 E AndroidRuntime: FATAL EXCEPTION: main 06-15 04:34:33.525 23759 23759 E AndroidRuntime: Process: com.obric.mediametadataservice, PID: 23759 06-15 04:34:33.525 23759 23759 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:34:33.562 27764 27764 E AndroidRuntime: FATAL EXCEPTION: main 06-15 04:34:33.562 27764 27764 E AndroidRuntime: Process: com.android.systemui, PID: 27764 06-15 04:34:33.562 27764 27764 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:34:33.570 17071 17071 E AndroidRuntime: FATAL EXCEPTION: main 06-15 04:34:33.570 17071 17071 E AndroidRuntime: Process: com.qti.qcc, PID: 17071 06-15 04:34:33.570 17071 17071 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:34:33.588 30577 30748 E AndroidRuntime: FATAL EXCEPTION: [GT]ColdPool#10 06-15 04:34:33.588 30577 30748 E AndroidRuntime: Process: com.tencent.mm, PID: 30577 06-15 04:34:33.588 30577 30748 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:34:33.619 20917 20917 E AndroidRuntime: FATAL EXCEPTION: main 06-15 04:34:33.619 20917 20917 E AndroidRuntime: Process: com.android.providers.weather, PID: 20917 06-15 04:34:33.619 20917 20917 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:34:33.641 29760 30119 E AndroidRuntime: FATAL EXCEPTION: WM.task-4 06-15 04:34:33.641 29760 30119 E AndroidRuntime: Process: com.android.rkpdapp, PID: 29760 06-15 04:34:33.641 29760 30119 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:34:33.644 16591 22658 E AndroidRuntime: FATAL EXCEPTION: pool-12-thread-1 06-15 04:34:33.644 16591 22658 E AndroidRuntime: Process: com.bytedance.os.mermaid, PID: 16591 06-15 04:34:33.644 16591 22658 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:34:33.670 30577 30776 E AndroidRuntime: FATAL EXCEPTION: [GT]ColdPool#14 06-15 04:34:33.670 30577 30776 E AndroidRuntime: Process: com.tencent.mm, PID: 30577 06-15 04:34:33.670 30577 30776 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause 06-15 04:35:16.613 11852 11852 F libc : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 11852 (init), pid 11852 (init) 06-15 04:35:16.682 11852 11852 F libc : crash_dump helper failed to exec, or was killed 06-15 04:36:05.261 12659 12670 F libc : Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 12670 (Signal Catcher), pid 12659 (com.obric.cae) 06-15 04:36:07.796 10043 10052 F libc : Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 10052 (Signal Catcher), pid 10043 (ndroid.systemui) 06-15 04:36:09.096 16114 16114 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 06-15 04:36:09.096 16114 16114 F DEBUG : Build fingerprint: 'unknown/pacific/pacific:15/0.8.0.0/94:user/test-keys' 06-15 04:36:09.096 16114 16114 F DEBUG : Revision: '0' 06-15 04:36:09.096 16114 16114 F DEBUG : ABI: 'arm64' 06-15 04:36:09.096 16114 16114 F DEBUG : Timestamp: 2025-06-15 04:36:06.131456971+0800 06-15 04:36:09.096 16114 16114 F DEBUG : Process uptime: 46s 06-15 04:36:09.096 16114 16114 F DEBUG : Cmdline: com.obric.cae 06-15 04:36:09.096 16114 16114 F DEBUG : pid: 12659, tid: 12670, name: Signal Catcher >>> com.obric.cae <<< 06-15 04:36:09.096 16114 16114 F DEBUG : uid: 1000 06-15 04:36:09.096 16114 16114 F DEBUG : tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE) 06-15 04:36:09.096 16114 16114 F DEBUG : pac_enabled_keys: 000000000000000f (PR_PAC_APIAKEY, PR_PAC_APIBKEY, PR_PAC_APDAKEY, PR_PAC_APDBKEY) 06-15 04:36:09.096 16114 16114 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- 06-15 04:36:09.096 16114 16114 F DEBUG : Abort message: 'Caused BootImagePollingThread failure : SuspendAll timeout: Unsuspended threads: Thread[2,tid=12670,Runnable,Thread*=0xb400007073e4ff50,peer=0x146408b0,"Signal Catcher"], Info for Thread[2,tid=12670,Runnable,Thread*=0xb400007073e4ff50,peer=0x146408b0,"Signal Catcher"]:Signal Catcher tid: 12670, state&flags: 0x9, priority: 10, barrier value: 1, Target states: [12670 (Signal Catcher) D 6404 6404 0 0 -1 4194368 7865 0 0 0 28 11 0 0 0 -20 31 0 161685 , 12670 (Signal Catcher) D 6404 6404 0 0 -1 4194368 7907 0 0 0 29 11 0 0 0 -20 31 0 161685 ]1@474460762748 Final wait time: 1.041s' 06-15 04:36:09.096 16114 16114 F DEBUG : x0 000000000000005f x1 0000006e780051f8 x2 0000000000001000 x3 0000000000000000 06-15 04:36:09.096 16114 16114 F DEBUG : x4 0000006e78005d24 x5 b400007063ecaf6c x6 65732f636f72702f x7 2f6b7361742f666c 06-15 04:36:09.096 16114 16114 F DEBUG : x8 000000000000003f x9 0000000000000000 x10 00000000ece8b1a8 x11 00000000ace540c2 06-15 04:36:09.096 16114 16114 F DEBUG : x12 373632312f6b7361 x13 70756f7267632f34 x14 0000000000000000 x15 0000000000000000 06-15 04:36:09.096 16114 16114 F DEBUG : x16 00000071428f0650 x17 00000071417024a0 x18 0000006e72c44000 x19 0000006e78006340 06-15 04:36:09.096 16114 16114 F DEBUG : x20 0000000000000077 x21 0000006e780078c0 x22 0000000000000077 x23 0000006e780078c0 06-15 04:36:09.096 16114 16114 F DEBUG : x24 0000006e78006329 x25 0000006e78006548 x26 000000712dfa65f0 x27 000000712dfa65b0 06-15 04:36:09.097 16114 16114 F DEBUG : x28 0000006e78006328 x29 0000006e78006200 06-15 04:36:09.097 16114 16114 F DEBUG : lr 00000071428d2274 sp 0000006e78005170 pc 00000071417024ac pst 0000000080001000 06-15 04:36:09.097 16114 16114 F DEBUG : 12 total frames 06-15 04:36:09.097 16114 16114 F DEBUG : backtrace: 06-15 04:36:09.097 16114 16114 F DEBUG : #00 pc 00000000000c94ac /apex/com.android.runtime/lib64/bionic/libc.so (read+12) (BuildId: 5f5c1386426a2756c92c6d45ddc06654) 06-15 04:36:09.097 16114 16114 F DEBUG : #01 pc 0000000000012270 /apex/com.android.art/lib64/libbase.so (android::base::ReadFdToString(android::base::borrowed_fd, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>*)+280) (BuildId: 8367396248ab14cf4164f2cfe0829082) 06-15 04:36:09.097 16114 16114 F DEBUG : #02 pc 00000000000123e0 /apex/com.android.art/lib64/libbase.so (android::base::ReadFileToString(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>*, bool)+192) (BuildId: 8367396248ab14cf4164f2cfe0829082) 06-15 04:36:09.097 16114 16114 F DEBUG : #03 pc 0000000000883f68 /apex/com.android.art/lib64/libart.so (art::Thread::DumpState(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, art::Thread const*, int)+1764) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:36:09.097 16114 16114 F DEBUG : #04 pc 00000000008a21b8 /apex/com.android.art/lib64/libart.so (art::DumpCheckpoint::Run(art::Thread*)+1180) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:36:09.097 16114 16114 F DEBUG : #05 pc 000000000089932c /apex/com.android.art/lib64/libart.so (art::ThreadList::RunCheckpoint(art::Closure*, art::Closure*, bool, bool)+2964) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:36:09.097 16114 16114 F DEBUG : #06 pc 0000000000897e10 /apex/com.android.art/lib64/libart.so (art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool)+920) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:36:09.097 16114 16114 F DEBUG : #07 pc 0000000000897a1c /apex/com.android.art/lib64/libart.so (art::ThreadList::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char>>&)+1436) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:36:09.097 16114 16114 F DEBUG : #08 pc 0000000000848318 /apex/com.android.art/lib64/libart.so (art::Runtime::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char>>&)+60) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:36:09.097 16114 16114 F DEBUG : #09 pc 0000000000869f38 /apex/com.android.art/lib64/libart.so (art::SignalCatcher::Run(void*)+5484) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:36:09.097 16114 16114 F DEBUG : #10 pc 0000000000073cd0 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204) (BuildId: 5f5c1386426a2756c92c6d45ddc06654) 06-15 04:36:09.097 16114 16114 F DEBUG : #11 pc 0000000000065bb0 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+68) (BuildId: 5f5c1386426a2756c92c6d45ddc06654) 06-15 04:36:10.991 16353 16353 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 06-15 04:36:10.991 16353 16353 F DEBUG : Build fingerprint: 'unknown/pacific/pacific:15/0.8.0.0/94:user/test-keys' 06-15 04:36:10.991 16353 16353 F DEBUG : Revision: '0' 06-15 04:36:10.991 16353 16353 F DEBUG : ABI: 'arm64' 06-15 04:36:10.991 16353 16353 F DEBUG : Timestamp: 2025-06-15 04:36:09.222489157+0800 06-15 04:36:10.991 16353 16353 F DEBUG : Process uptime: 65s 06-15 04:36:10.991 16353 16353 F DEBUG : Cmdline: com.android.systemui 06-15 04:36:10.991 16353 16353 F DEBUG : pid: 10043, tid: 10052, name: Signal Catcher >>> com.android.systemui <<< 06-15 04:36:10.991 16353 16353 F DEBUG : uid: 10147 06-15 04:36:10.991 16353 16353 F DEBUG : tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE) 06-15 04:36:10.991 16353 16353 F DEBUG : pac_enabled_keys: 000000000000000f (PR_PAC_APIAKEY, PR_PAC_APIBKEY, PR_PAC_APDAKEY, PR_PAC_APDBKEY) 06-15 04:36:10.991 16353 16353 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- 06-15 04:36:10.991 16353 16353 F DEBUG : Abort message: 'Caused BootImagePollingThread failure : SuspendAll timeout: Unsuspended threads: Thread[2,tid=10052,Runnable,Thread*=0xb400007073e552c0,peer=0x161c2338,"Signal Catcher"], Info for Thread[2,tid=10052,Runnable,Thread*=0xb400007073e552c0,peer=0x161c2338,"Signal Catcher"]:Signal Catcher tid: 10052, state&flags: 0x9, priority: 10, barrier value: 1, Target states: [10052 (Signal Catcher) D 6404 6404 0 0 -1 4194368 72694 715 0 0 864 114 0 1 0 -20 99 0 16, 10052 (Signal Catcher) S 6404 6404 0 0 -1 4194368 72694 715 0 0 864 114 0 1 0 -20 99 0 16]1@474460861052 Final wait time: 1.014s' 06-15 04:36:10.991 16353 16353 F DEBUG : x0 fffffffffffffffc x1 0000000000000089 x2 0000000000000010 x3 0000006e7701dd18 06-15 04:36:10.991 16353 16353 F DEBUG : x4 0000000000000000 x5 00000000ffffffff x6 00000000ffffffff x7 7365786574756d20 06-15 04:36:10.991 16353 16353 F DEBUG : x8 0000000000000062 x9 aacc454f7c510c3f x10 fffffffffffef005 x11 0000000031f4eed8 06-15 04:36:10.991 16353 16353 F DEBUG : x12 00000000684ddd36 x13 000000007fffffff x14 00000000000ca068 x15 000000077e673b1c 06-15 04:36:10.991 16353 16353 F DEBUG : x16 00000071417180d8 x17 00000071416c4f00 x18 0000006e73d6c000 x19 0000000000000010 06-15 04:36:10.991 16353 16353 F DEBUG : x20 0000006e7701dd18 x21 b4000070741074a8 x22 0000000000000089 x23 0000006e7701f860 06-15 04:36:10.991 16353 16353 F DEBUG : x24 0000006e7701f8c0 x25 0000000000000000 x26 00000000ee6a1a05 x27 0000000000000001 06-15 04:36:10.991 16353 16353 F DEBUG : x28 0000000000000000 x29 0000006e7701dd30 06-15 04:36:10.991 16353 16353 F DEBUG : lr 000000714169d5b8 sp 0000006e7701dd10 pc 00000071416c4f24 pst 0000000060001000 06-15 04:36:10.991 16353 16353 F DEBUG : 18 total frames 06-15 04:36:10.991 16353 16353 F DEBUG : backtrace: 06-15 04:36:10.991 16353 16353 F DEBUG : #00 pc 000000000008bf24 /apex/com.android.runtime/lib64/bionic/libc.so (syscall+36) (BuildId: 5f5c1386426a2756c92c6d45ddc06654) 06-15 04:36:10.991 16353 16353 F DEBUG : #01 pc 00000000000645b4 /apex/com.android.runtime/lib64/bionic/libc.so (__futex_wait_ex(void volatile*, bool, int, bool, timespec const*)+148) (BuildId: 5f5c1386426a2756c92c6d45ddc06654) 06-15 04:36:10.991 16353 16353 F DEBUG : #02 pc 0000000000072f48 /apex/com.android.runtime/lib64/bionic/libc.so (pthread_cond_timedwait+136) (BuildId: 5f5c1386426a2756c92c6d45ddc06654) 06-15 04:36:10.991 16353 16353 F DEBUG : #03 pc 00000000000b0aec /apex/com.android.art/lib64/libc++.so (std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>)+96) (BuildId: 53e0091d25a788802d2d3a5324f79b527df4913f) 06-15 04:36:10.991 16353 16353 F DEBUG : #04 pc 0000000000093530 /apex/com.android.art/lib64/libunwindstack.so (unwindstack::ThreadEntry::Wait(unwindstack::WaitType)+140) (BuildId: c12353edf5bb03325316f4802d7fa4b4) 06-15 04:36:10.991 16353 16353 F DEBUG : #05 pc 00000000000939e4 /apex/com.android.art/lib64/libunwindstack.so (unwindstack::ThreadUnwinder::SendSignalToThread(int, int)+296) (BuildId: c12353edf5bb03325316f4802d7fa4b4) 06-15 04:36:10.991 16353 16353 F DEBUG : #06 pc 0000000000093bec /apex/com.android.art/lib64/libunwindstack.so (unwindstack::ThreadUnwinder::UnwindWithSignal(int, int, std::__1::unique_ptr<unwindstack::Regs, std::__1::default_delete<unwindstack::Regs>>*, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>> const*, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>> const*)+104) (BuildId: c12353edf5bb03325316f4802d7fa4b4) 06-15 04:36:10.991 16353 16353 F DEBUG : #07 pc 00000000000606f4 /apex/com.android.art/lib64/libunwindstack.so (unwindstack::AndroidLocalUnwinder::InternalUnwind(std::__1::optional<int>, unwindstack::AndroidUnwinderData&)+364) (BuildId: c12353edf5bb03325316f4802d7fa4b4) 06-15 04:36:10.991 16353 16353 F DEBUG : #08 pc 00000000007a3be0 /apex/com.android.art/lib64/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, unwindstack::AndroidLocalUnwinder&, int, char const*, art::ArtMethod*, void*, bool)+184) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:36:10.991 16353 16353 F DEBUG : #09 pc 000000000087fe1c /apex/com.android.art/lib64/libart.so (art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, unwindstack::AndroidLocalUnwinder&, bool, bool) const+360) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:36:10.991 16353 16353 F DEBUG : #10 pc 00000000008a21d0 /apex/com.android.art/lib64/libart.so (art::DumpCheckpoint::Run(art::Thread*)+1204) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:36:10.991 16353 16353 F DEBUG : #11 pc 000000000089932c /apex/com.android.art/lib64/libart.so (art::ThreadList::RunCheckpoint(art::Closure*, art::Closure*, bool, bool)+2964) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:36:10.991 16353 16353 F DEBUG : #12 pc 0000000000897e10 /apex/com.android.art/lib64/libart.so (art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool)+920) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:36:10.991 16353 16353 F DEBUG : #13 pc 0000000000897a1c /apex/com.android.art/lib64/libart.so (art::ThreadList::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char>>&)+1436) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:36:10.991 16353 16353 F DEBUG : #14 pc 0000000000848318 /apex/com.android.art/lib64/libart.so (art::Runtime::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char>>&)+60) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:36:10.991 16353 16353 F DEBUG : #15 pc 0000000000869f38 /apex/com.android.art/lib64/libart.so (art::SignalCatcher::Run(void*)+5484) (BuildId: 29a487f0c8088464e14dcbff6c86797f) 06-15 04:36:10.991 16353 16353 F DEBUG : #16 pc 0000000000073cd0 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204) (BuildId: 5f5c1386426a2756c92c6d45ddc06654) 06-15 04:36:10.991 16353 16353 F DEBUG : #17 pc 0000000000065bb0 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+68) (BuildId: 5f5c1386426a2756c92c6d45ddc06654)
06-19
class KeyWordSpotter(torch.nn.Module): def __init__( self, ckpt_path, config_path, token_path, lexicon_path, threshold, min_frames=5, max_frames=250, interval_frames=50, score_beam=3, path_beam=20, gpu=-1, is_jit_model=False, ): super().__init__() os.environ['CUDA_VISIBLE_DEVICES'] = str(gpu) with open(config_path, 'r') as fin: configs = yaml.load(fin, Loader=yaml.FullLoader) dataset_conf = configs['dataset_conf'] # feature related self.sample_rate = 16000 self.wave_remained = np.array([]) self.num_mel_bins = dataset_conf['feature_extraction_conf'][ 'num_mel_bins'] self.frame_length = dataset_conf['feature_extraction_conf'][ 'frame_length'] # in ms self.frame_shift = dataset_conf['feature_extraction_conf'][ 'frame_shift'] # in ms self.downsampling = dataset_conf.get('frame_skip', 1) self.resolution = self.frame_shift / 1000 # in second # fsmn splice operation self.context_expansion = dataset_conf.get('context_expansion', False) self.left_context = 0 self.right_context = 0 if self.context_expansion: self.left_context = dataset_conf['context_expansion_conf']['left'] self.right_context = dataset_conf['context_expansion_conf'][ 'right'] self.feature_remained = None self.feats_ctx_offset = 0 # after downsample, offset exist. # model related if is_jit_model: model = torch.jit.load(ckpt_path) # For script model, only cpu is supported. device = torch.device('cpu') else: # Init model from configs model = init_model(configs['model']) load_checkpoint(model, ckpt_path) use_cuda = gpu >= 0 and torch.cuda.is_available() device = torch.device('cuda' if use_cuda else 'cpu') self.device = device self.model = model.to(device) self.model.eval() logging.info(f'model {ckpt_path} loaded.') self.token_table = read_token(token_path) logging.info(f'tokens {token_path} with ' f'{len(self.token_table)} units loaded.') self.lexicon_table = read_lexicon(lexicon_path) logging.info(f'lexicons {lexicon_path} with ' f'{len(self.lexicon_table)} units loaded.') self.in_cache = torch.zeros(0, 0, 0, dtype=torch.float) # decoding and detection related self.score_beam = score_beam self.path_beam = path_beam self.threshold = threshold self.min_frames = min_frames self.max_frames = max_frames self.interval_frames = interval_frames self.cur_hyps = [(tuple(), (1.0, 0.0, []))] self.hit_score = 1.0 self.hit_keyword = None self.activated = False self.total_frames = 0 # frame offset, for absolute time self.last_active_pos = -1 # the last frame of being activated self.result = {} def set_keywords(self, keywords): # 4. parse keywords tokens assert keywords is not None, \ 'at least one keyword is needed, ' \ 'multiple keywords should be splitted with comma(,)' keywords_str = keywords keywords_list = keywords_str.strip().replace(' ', '').split(',') keywords_token = {} keywords_idxset = {0} keywords_strset = {'<blk>'} keywords_tokenmap = {'<blk>': 0} for keyword in keywords_list: strs, indexes = query_token_set(keyword, self.token_table, self.lexicon_table) keywords_token[keyword] = {} keywords_token[keyword]['token_id'] = indexes keywords_token[keyword]['token_str'] = ''.join('%s ' % str(i) for i in indexes) [keywords_strset.add(i) for i in strs] [keywords_idxset.add(i) for i in indexes] for txt, idx in zip(strs, indexes): if keywords_tokenmap.get(txt, None) is None: keywords_tokenmap[txt] = idx token_print = '' for txt, idx in keywords_tokenmap.items(): token_print += f'{txt}({idx}) ' logging.info(f'Token set is: {token_print}') self.keywords_idxset = keywords_idxset self.keywords_token = keywords_token def accept_wave(self, wave): assert isinstance(wave, bytes), \ "please make sure the input format is bytes(raw PCM)" # convert bytes into float32 data = [] for i in range(0, len(wave), 2): value = struct.unpack('<h', wave[i:i + 2])[0] data.append(value) # here we don't divide 32768.0, # because kaldi.fbank accept original input wave = np.array(data) wave = np.append(self.wave_remained, wave) if wave.size < (self.frame_length * self.sample_rate / 1000) \ * self.right_context : self.wave_remained = wave return None wave_tensor = torch.from_numpy(wave).float().to(self.device) wave_tensor = wave_tensor.unsqueeze(0) # add a channel dimension feats = kaldi.fbank(wave_tensor, num_mel_bins=self.num_mel_bins, frame_length=self.frame_length, frame_shift=self.frame_shift, dither=0, energy_floor=0.0, sample_frequency=self.sample_rate) # update wave remained feat_len = len(feats) frame_shift = int(self.frame_shift / 1000 * self.sample_rate) self.wave_remained = wave[feat_len * frame_shift:] if self.context_expansion: assert feat_len > self.right_context, \ "make sure each chunk feat length is large than right context." # pad feats with remained feature from last chunk if self.feature_remained is None: # first chunk # pad first frame at the beginning, # replicate just support last dimension, so we do transpose. feats_pad = F.pad(feats.T, (self.left_context, 0), mode='replicate').T else: feats_pad = torch.cat((self.feature_remained, feats)) ctx_frm = feats_pad.shape[0] - (self.right_context + self.right_context) ctx_win = (self.left_context + self.right_context + 1) ctx_dim = feats.shape[1] * ctx_win feats_ctx = torch.zeros(ctx_frm, ctx_dim, dtype=torch.float32) for i in range(ctx_frm): feats_ctx[i] = torch.cat(tuple( feats_pad[i:i + ctx_win])).unsqueeze(0) # update feature remained, and feats self.feature_remained = \ feats[-(self.left_context + self.right_context):] feats = feats_ctx.to(self.device) if self.downsampling > 1: last_remainder = 0 if self.feats_ctx_offset == 0 \ else self.downsampling - self.feats_ctx_offset remainder = (feats.size(0) + last_remainder) % self.downsampling feats = feats[self.feats_ctx_offset::self.downsampling, :] self.feats_ctx_offset = remainder \ if remainder == 0 else self.downsampling - remainder return feats def decode_keywords(self, t, probs): absolute_time = t + self.total_frames # search next_hyps depend on current probs and hyps. next_hyps = ctc_prefix_beam_search(absolute_time, probs, self.cur_hyps, self.keywords_idxset, self.score_beam) # update cur_hyps. note: the hyps is sort by path score(pnb+pb), # not the keywords' probabilities. cur_hyps = next_hyps[:self.path_beam] self.cur_hyps = cur_hyps def execute_detection(self, t): absolute_time = t + self.total_frames hit_keyword = None start = 0 end = 0 # hyps for detection hyps = [(y[0], y[1][0] + y[1][1], y[1][2]) for y in self.cur_hyps] # detect keywords in decoding paths. for one_hyp in hyps: prefix_ids = one_hyp[0] # path_score = one_hyp[1] prefix_nodes = one_hyp[2] assert len(prefix_ids) == len(prefix_nodes) for word in self.keywords_token.keys(): lab = self.keywords_token[word]['token_id'] offset = is_sublist(prefix_ids, lab) if offset != -1: hit_keyword = word start = prefix_nodes[offset]['frame'] end = prefix_nodes[offset + len(lab) - 1]['frame'] for idx in range(offset, offset + len(lab)): self.hit_score *= prefix_nodes[idx]['prob'] break if hit_keyword is not None: self.hit_score = math.sqrt(self.hit_score) break duration = end - start if hit_keyword is not None: if self.hit_score >= self.threshold and \ self.min_frames <= duration <= self.max_frames \ and (self.last_active_pos == -1 or end - self.last_active_pos >= self.interval_frames): self.activated = True self.last_active_pos = end logging.info( f"Frame {absolute_time} detect {hit_keyword} " f"from {start} to {end} frame. " f"duration {duration}, score {self.hit_score}, Activated.") elif self.last_active_pos > 0 and \ end - self.last_active_pos < self.interval_frames: logging.info( f"Frame {absolute_time} detect {hit_keyword} " f"from {start} to {end} frame. " f"but interval {end-self.last_active_pos} " f"is lower than {self.interval_frames}, Deactivated. ") elif self.hit_score < self.threshold: logging.info(f"Frame {absolute_time} detect {hit_keyword} " f"from {start} to {end} frame. " f"but {self.hit_score} " f"is lower than {self.threshold}, Deactivated. ") elif self.min_frames > duration or duration > self.max_frames: logging.info( f"Frame {absolute_time} detect {hit_keyword} " f"from {start} to {end} frame. " f"but {duration} beyond range" f"({self.min_frames}~{self.max_frames}), Deactivated. ") self.result = { "state": 1 if self.activated else 0, "keyword": hit_keyword if self.activated else None, "start": start * self.resolution if self.activated else None, "end": end * self.resolution if self.activated else None, "score": self.hit_score if self.activated else None } def forward(self, wave_chunk): feature = self.accept_wave(wave_chunk) if feature is None or feature.size(0) < 1: return {} # # the feature is not enough to get result. feature = feature.unsqueeze(0) # add a batch dimension logits, self.in_cache = self.model(feature, self.in_cache) probs = logits.softmax(2) # (batch_size, maxlen, vocab_size) probs = probs[0].cpu() # remove batch dimension for (t, prob) in enumerate(probs): t *= self.downsampling self.decode_keywords(t, prob) self.execute_detection(t) if self.activated: self.reset() # since a chunk include about 30 frames, # once activated, we can jump the latter frames. # TODO: there should give another method to update result, # avoiding self.result being cleared. break # update frame offset self.total_frames += len(probs) * self.downsampling # For streaming kws, the cur_hyps should be reset if the time of # a possible keyword last over the max_frames value you set. # see this issue:https://github.com/duj12/kws_demo/issues/2 if len(self.cur_hyps) > 0 and len(self.cur_hyps[0][0]) > 0: keyword_may_start = int(self.cur_hyps[0][1][2][0]['frame']) if (self.total_frames - keyword_may_start) > self.max_frames: self.reset() return self.result def reset(self): self.cur_hyps = [(tuple(), (1.0, 0.0, []))] self.activated = False self.hit_score = 1.0 def reset_all(self): self.reset() self.wave_remained = np.array([]) self.feature_remained = None self.feats_ctx_offset = 0 # after downsample, offset exist. self.in_cache = torch.zeros(0, 0, 0, dtype=torch.float) self.total_frames = 0 # frame offset, for absolute time self.last_active_pos = -1 # the last frame of being activated self.result = {}请帮我缕清整个脉络
最新发布
07-10
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值