我正在使用WebView,我已设法显示自定义的ActionMode菜单。突然间,每次WebView上都有长按,我就会崩溃。我无法理解背后的原因主要是因为我不知道这个错误代表什么。
A/chromium: [FATAL:jni_android.cc(236)] Please include Java exception stack in crash report
可以找到完整的堆栈跟踪here
任何想法?
答案 0 :(得分:1)
回溯如下,它会在您的webview.apk地址中止,您可以尝试使用addr2line
从地址0x0000000002b5f3c8
获取符号webview.apk(需要完整的符号)才能看到它的位置:
02-08 16:48:53.575 30753-30753/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
02-08 16:48:53.575 30753-30753/? A/DEBUG: Build fingerprint: 'Android/sdk_google_phone_x86_64/generic_x86_64:7.1/NPF26K/3479480:userdebug/test-keys'
02-08 16:48:53.575 30753-30753/? A/DEBUG: Revision: '0'
02-08 16:48:53.575 30753-30753/? A/DEBUG: ABI: 'x86_64'
02-08 16:48:53.575 30753-30753/? A/DEBUG: pid: 30263, tid: 30263, name: ols.schoolsdemo >>>com.amr.demo <<<
02-08 16:48:53.575 30753-30753/? A/DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
02-08 16:48:53.576 30753-30753/? A/DEBUG: Abort message: '[FATAL:jni_android.cc(236)] Please include Java exception stack in crash report
'
02-08 16:48:53.576 30753-30753/? A/DEBUG: rax 0000000000000000 rbx 000079fce8a1dbe8 rcx ffffffffffffffff rdx 0000000000000006
02-08 16:48:53.576 30753-30753/? A/DEBUG: rsi 0000000000007637 rdi 0000000000007637
02-08 16:48:53.576 30753-30753/? A/DEBUG: r8 0000000000000323 r9 000079fcd4c46f60 r10 0000000000000008 r11 0000000000000202
02-08 16:48:53.576 30753-30753/? A/DEBUG: r12 0000000000007637 r13 0000000000000006 r14 000079fce46e8000 r15 00007fff52ffe618
02-08 16:48:53.576 30753-30753/? A/DEBUG: cs 0000000000000033 ss 000000000000002b
02-08 16:48:53.576 30753-30753/? A/DEBUG: rip 000079fce4681ba7 rbp 000000000000000b rsp 00007fff52ffdcb8 eflags 0000000000000202
02-08 16:48:53.577 30753-30753/? A/DEBUG: backtrace:
02-08 16:48:53.577 30753-30753/? A/DEBUG: #00 pc 000000000008dba7 /system/lib64/libc.so (tgkill+7)
02-08 16:48:53.577 30753-30753/? A/DEBUG: #01 pc 000000000008a641 /system/lib64/libc.so (pthread_kill+65)
02-08 16:48:53.577 30753-30753/? A/DEBUG: #02 pc 00000000000302c1 /system/lib64/libc.so (raise+17)
02-08 16:48:53.577 30753-30753/? A/DEBUG: #03 pc 00000000000287fd /system/lib64/libc.so (abort+77)
02-08 16:48:53.577 30753-30753/? A/DEBUG: #04 pc 0000000002b5f3c8 /system/app/webview/webview.apk (offset 0x3ddb000)