app起来后必现crash
【版本信息】
4.5.75
【平台信息】
Android
【预期的表现】
正常启动
【实际的情况】
app起来就崩溃了
【Demo及附件】
07-28 16:29:22.990 30280 30280 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
07-28 16:29:22.990 30280 30280 F DEBUG : Build fingerprint: 'userdebug/test-keys'
07-28 16:29:22.990 30280 30280 F DEBUG : Kernel Release: '6.12.38-android16-5-maybe-dirty-4k'
07-28 16:29:22.990 30280 30280 F DEBUG : Revision: '0'
07-28 16:29:22.990 30280 30280 F DEBUG : ABI: 'arm64'
07-28 16:29:22.990 30280 30280 F DEBUG : Timestamp: 2026-07-28 16:29:22.721444170+0800
07-28 16:29:22.990 30280 30280 F DEBUG : Process uptime: 8s
07-28 16:29:22.990 30280 30280 F DEBUG : Executable: /system/bin/app_process64
07-28 16:29:22.990 30280 30280 F DEBUG : Cmdline: com.ai.voice
07-28 16:29:22.990 30280 30280 F DEBUG : pid: 29984, tid: 30256, name: tgfx_JNIEnviron >>> com.ai.voice <<<
07-28 16:29:22.990 30280 30280 F DEBUG : uid: 10086
07-28 16:29:22.990 30280 30280 F DEBUG : tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE)
07-28 16:29:22.990 30280 30280 F DEBUG : pac_enabled_keys: 000000000000000f (PR_PAC_APIAKEY, PR_PAC_APIBKEY, PR_PAC_APDAKEY, PR_PAC_APDBKEY)
07-28 16:29:22.990 30280 30280 F DEBUG : esr: 0000000092000006 (Data Abort Exception 0x24)
07-28 16:29:22.990 30280 30280 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000004 (read)
07-28 16:29:22.990 30280 30280 F DEBUG : Cause: null pointer dereference
07-28 16:29:22.990 30280 30280 F DEBUG : x0 0000000000000001 x1 0000000000000004 x2 b400e3137cae44e0 x3 b400e3139cb891e0
07-28 16:29:22.990 30280 30280 F DEBUG : x4 0000e310d14ffb58 x5 0000e31331e2d32a x6 0019615800196278 x7 00195c0000195b9a
07-28 16:29:22.990 30280 30280 F DEBUG : x8 00000000031399ec x9 0000000000000096 x10 0000000000000000 x11 0000000000000096
07-28 16:29:22.990 30280 30280 F DEBUG : x12 0000e31334acda18 x13 0000e31334acda78 x14 0000e31334acdaf8 x15 0000000000100000
07-28 16:29:22.990 30280 30280 F DEBUG : x16 0000000000000001 x17 0000e315f6b1c0a0 x18 0000e31085cc8000 x19 0000000000000000
07-28 16:29:22.990 30280 30280 F DEBUG : x20 b400e3137cae44e0 x21 b400e3139cb892a0 x22 b400e3141cb96e50 x23 0000000000000000
07-28 16:29:22.990 30280 30280 F DEBUG : x24 0000000000000000 x25 0000e3133540d3c0 x26 0000000000004d66 x27 00000000ffffffd8
07-28 16:29:22.990 30280 30280 F DEBUG : x28 0000000000000000 x29 0000e310d14ff940
07-28 16:29:22.990 30280 30280 F DEBUG : lr 0000e315f6b1c0c4 sp 0000e310d14ff940 pc 0000e315f6b226b0 pst 0000000040001000
07-28 16:29:22.990 30280 30280 F DEBUG : esr 0000000092000006
07-28 16:29:22.990 30280 30280 F DEBUG : 28 total frames
07-28 16:29:22.990 30280 30280 F DEBUG : backtrace:
07-28 16:29:22.990 30280 30280 F DEBUG : #00 pc 00000000000196b0 /system/lib64/libutils.so (__aarch64_ldadd4_relax+16) (BuildId: 0db79b3de357d54691f75fb5324a904b)
07-28 16:29:22.990 30280 30280 F DEBUG : #01 pc 00000000000130c0 /system/lib64/libutils.so (android::RefBase::incStrong(void const*) const+32) (BuildId: 0db79b3de357d54691f75fb5324a904b)
07-28 16:29:22.990 30280 30280 F DEBUG : #02 pc 000000000012e428 /system/lib64/libandroid_runtime.so (android::nativeRelease(_JNIEnv*, _jclass*, long)+32) (BuildId: 1b5e7618ff9adf478b6936ee643da3d8)
07-28 16:29:22.990 30280 30280 F DEBUG : #03 pc 00000000008356fc /system/framework/arm64/boot-framework.oat (art_jni_trampoline+108) (BuildId: 355d09839be14cbf9d26125756e806adf7967460)
07-28 16:29:22.990 30280 30280 F DEBUG : #04 pc 00000000006ab644 /system/framework/arm64/boot-framework.oat (android.view.Surface.release+116) (BuildId: 355d09839be14cbf9d26125756e806adf7967460)
07-28 16:29:22.990 30280 30280 F DEBUG : #05 pc 00000000002cdb94 /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+612) (BuildId: 83622df832a76ca8e6dafe2a34784c5b)
07-28 16:29:22.990 30280 30280 F DEBUG : #06 pc 00000000002cba9c /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithVarArgs<_jmethodID*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+896) (BuildId: 83622df832a76ca8e6dafe2a34784c5b)
07-28 16:29:22.990 30280 30280 F DEBUG : #07 pc 00000000005fcbe4 /apex/com.android.art/lib64/libart.so (art::JNI
感谢您的反馈。 根据堆栈分析,问题与 Surface 生命周期管理有关,建议升级到最新的 v4.5.81 版本,该版本包含了多个相关的修复。 如果升级后问题仍然存在,麻烦提供可以复现问题的 demo,我们进一步排查。