HarmonyOS 鸿蒙Next中Flutter App打开webview崩溃
HarmonyOS 鸿蒙Next中Flutter App打开webview崩溃 报错信息如下
4906-25 21:23:49.958 21719 21719 F libc : Fatal signal 5 (SIGTRAP), code 1 (TRAP_BRKPT), fault addr 0x7f3b6dc3a0 in tid 21719 (linker64), pid 21719 (linker64)
5006-25 21:23:49.978 21722 21722 I crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstone
5106-25 21:23:49.983 21722 21722 I crash_dump64: performing dump of process 21719 (target tid = 21719)
5206-25 21:23:49.987 21722 21722 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
5306-25 21:23:49.987 21722 21722 F DEBUG : Build fingerprint: ‘HONOR/HLK-AL00/HWHLK-H:10/HONORHLK-AL00/103.0.0.165C00:user/release-keys’
5406-25 21:23:49.987 21722 21722 F DEBUG : Revision: ‘0’
5506-25 21:23:49.987 21722 21722 F DEBUG : ABI: ‘arm64’
5606-25 21:23:49.989 21722 21722 F DEBUG : SYSVMTYPE: Maple
5706-25 21:23:49.989 21722 21722 F DEBUG : APPVMTYPE: Art
5806-25 21:23:49.990 21722 21722 F DEBUG : Timestamp: 2023-06-25 21:23:49+0800
5906-25 21:23:49.990 21722 21722 F DEBUG : pid: 21719, tid: 21719, name: linker64 >>> /system/bin/linker64 <<<
6006-25 21:23:49.990 21722 21722 F DEBUG : uid: 12613
6106-25 21:23:49.990 21722 21722 F DEBUG : signal 5 (SIGTRAP), code 1 (TRAP_BRKPT), fault addr 0x7f3b6dc3a0
6206-25 21:23:49.990 21722 21722 F DEBUG : x0 0000007f3b75f3e8 x1 0000007f44c281b0 x2 0000000000000000 x3 0000007f3b6dc010
6306-25 21:23:49.990 21722 21722 F DEBUG : x4 0000007fc3adb1d2 x5 0000007fc3adb204 x6 0000000000000030 x7 0000000000000030
6406-25 21:23:49.990 21722 21722 F DEBUG : x8 0000007e00000000 x9 0000000400000000 x10 0000000000000220 x11 000000000000021f
6506-25 21:23:49.990 21722 21722 F DEBUG : x12 0000000000000001 x13 00000028862d0000 x14 0000000000000010 x15 0000007f451a939a
6606-25 21:23:49.990 21722 21722 F DEBUG : x16 0000007f430a49d8 x17 0000007f3b6d9f20 x18 0000007f45f74000 x19 0000007f44c281b0
6706-25 21:23:49.990 21722 21722 F DEBUG : x20 0000000000000001 x21 0000007fc3adb540 x22 0000000000000000 x23 0000000000000001
6806-25 21:23:49.990 21722 21722 F DEBUG : x24 0000007f45448020 x25 0000007f4665a000 x26 0000007f4665a5a8 x27 0000000000000001
6906-25 21:23:49.990 21722 21722 F DEBUG : x28 0000007f430a0da4 x29 0000007fc3adb390
7006-25 21:23:49.990 21722 21722 F DEBUG : sp 0000007fc3adb380 lr 0000007f4309275c pc 0000007f3b6dc3a0
7106-25 21:23:49.994 21722 21722 F DEBUG :
7206-25 21:23:49.994 21722 21722 F DEBUG : backtrace:
7306-25 21:23:49.994 21722 21722 F DEBUG : #00 pc 00000000001fd3a0 /system/product/app/HwTriWebviewLib/HwTriWebviewLib.apk!libbase.huawei.so (offset 0x655000) (base::internal::PartitionFree(base::allocator::AllocatorDispatch const*, void*, void*)+912) (BuildId: 03334a6331e243ca890865432a7d7019804f2add)
7406-25 21:23:49.994 21722 21722 F DEBUG : #01 pc 000000000000e758 /system/lib64/libhidl-gen-utils.so (android::FQName::setTo(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, unsigned long, unsigned long, 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>> const&)+156) (BuildId: 636e02bc9c603adae4632d37e82c2107)
7506-25 21:23:49.994 21722 21722 F DEBUG : #02 pc 000000000000dfe8 /system/lib64/libhidl-gen-utils.so (android::FQName::FQName(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>> const&, 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>> const&)+124) (BuildId: 636e02bc9c603adae4632d37e82c2107)
7606-25 21:23:49.994 21722 21722 F DEBUG : #03 pc 000000000001ce44 /system/lib64/libhidl-gen-utils.so (_GLOBAL__sub_I_FQName.cpp+160) (BuildId: 636e02bc9c603adae4632d37e82c2107)
7706-25 21:23:49.994 21722 21722 F DEBUG : #04 pc 0000000000051ba8 /apex/com.android.runtime/bin/linker64 (_dl__ZL10call_arrayIPFviPPcS1_EEvPKcPT_mbS5+276) (BuildId: 540087b1c625e01b9bd0ee878c75d7fe)
7806-25 21:23:49.994 21722 21722 F DEBUG : #05 pc 0000000000051dc4 /apex/com.android.runtime/bin/linker64 (__dl__ZN6soinfo17call_constructorsEv+376) (BuildId: 540087b1c625e01b9bd0ee878c75d7fe)
7906-25 21:23:49.994 21722 21722 F DEBUG : #06 pc 0000000000051cd0 /apex/com.android.runtime/bin/linker64 (__dl__ZN6soinfo17call_constructorsEv+132) (BuildId: 540087b1c625e01b9bd0ee878c75d7fe)
8006-25 21:23:49.994 21722 21722 F DEBUG : #07 pc 0000000000051cd0 /apex/com.android.runtime/bin/linker64 (__dl__ZN6soinfo17call_constructorsEv+132) (BuildId: 540087b1c625e01b9bd0ee878c75d7fe)
8106-25 21:23:49.994 21722 21722 F DEBUG : #08 pc 0000000000051cd0 /apex/com.android.runtime/bin/linker64 (__dl__ZN6soinfo17call_constructorsEv+132) (BuildId: 540087b1c625e01b9bd0ee878c75d7fe)
8206-25 21:23:49.994 21722 21722 F DEBUG : #09 pc 0000000000051cd0 /apex/com.android.runtime/bin/linker64 (__dl__ZN6soinfo17call_constructorsEv+132) (BuildId: 540087b1c625e01b9bd0ee878c75d7fe)
8306-25 21:23:49.994 21722 21722 F DEBUG : #10 pc 0000000000051cd0 /apex/com.android.runtime/bin/linker64 (__dl__ZN6soinfo17call_constructorsEv+132) (BuildId: 540087b1c625e01b9bd0ee878c75d7fe)
8406-25 21:23:49.994 21722 21722 F DEBUG : #11 pc 000000000003d9a0 /apex/com.android.runtime/bin/linker64 (__dl__Z9do_dlopenPKciPK17android_dlextinfoPKv+2428) (BuildId: 540087b1c625e01b9bd0ee878c75d7fe)
8506-25 21:23:49.995 21722 21722 F DEBUG : #12 pc 0000000000039160 /apex/com.android.runtime/bin/linker64 (__loader_dlopen+68) (BuildId: 540087b1c625e01b9bd0ee878c75d7fe)
8606-25 21:23:49.995 21722 21722 F DEBUG : #13 pc 0000000000001020 /apex/com.android.runtime/lib64/bionic/libdl.so (dlopen+12) (BuildId: ee5a54c32874d345e4d2f02a4cbace8a)
8706-25 21:23:49.995 21722 21722 F DEBUG : #14 pc 00000000000007c0 /system/product/app/HwTriWebviewLib/HwTriWebviewLib.apk (offset 0x925000) (BuildId: bc2869a472757ce2e15b8727d5a762c1a606c5bd)
8806-25 21:23:49.995 21722 21722 F DEBUG : #15 pc 000000000006b108 /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+108) (BuildId: b91c775ccc9b0556e91bc575a2511cd0)
8906-25 21:23:50.048 21722 21722 I crash_dump64: start log 21719 to faultlogger: No such file or directory
9006-25 21:23:50.049 21722 21722 D HiTraceC: entered HiTraceInit, Log Registered: 1
更多关于HarmonyOS 鸿蒙Next中Flutter App打开webview崩溃的实战教程也可以访问 https://www.itying.com/category-92-b0.html
您好,请您通过在线提单进一步解决: https://developer.huawei.com/consumer/cn/support/feedback/#/
感谢您的反馈和支持。
更多关于HarmonyOS 鸿蒙Next中Flutter App打开webview崩溃的实战系列教程也可以访问 https://www.itying.com/category-92-b0.html
没见过你们处理问题这么麻烦的,
手机型号:HUAWEIHLK-AL00
系统:鸿蒙3.0
在HarmonyOS鸿蒙Next中,Flutter App打开WebView时崩溃,可能是由于以下原因:
-
WebView兼容性问题:鸿蒙Next的WebView实现可能与Flutter的WebView插件不完全兼容。建议检查并更新Flutter和WebView插件到最新版本。
-
权限问题:确保应用已获取必要的网络权限,如
INTERNET
权限。 -
内存泄漏:WebView可能占用大量内存,导致应用崩溃。建议优化WebView的使用,及时释放资源。
-
系统API差异:鸿蒙OS与Android的API存在差异,可能导致WebView行为异常。建议查阅鸿蒙OS的官方文档,调整相关代码。
-
日志分析:查看崩溃日志,定位具体错误,针对性修复。
建议逐步排查以上问题,确保应用在鸿蒙Next上的稳定运行。