HarmonyOS 鸿蒙Next Api11 使用Web组件加载网页,频繁崩溃,报cppcrash
HarmonyOS 鸿蒙Next Api11 使用Web组件加载网页,频繁崩溃,报cppcrash
Reason:Signal:SIGTRAP(TRAP_BRKPT)@0x00000006cabcd6e0
LastFatalMessage:[0425/151118.292748:FATAL:scoped_file.cc(43)] Check failed: . : Bad file descriptor (9)
Fault thread Info:
Tid:4180, Name:Chrome_IOThread
#00 pc 000000000478d6e0 /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#01 pc 000000000478dc2c /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#02 pc 000000000478dc50 /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#03 pc 000000000477f024 /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#04 pc 00000000047869b0 /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#05 pc 000000000264bc80 /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#06 pc 0000000002646ea0 /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#07 pc 0000000002646e4c /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#08 pc 0000000002669684 /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#09 pc 0000000002669400 /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#10 pc 0000000002658b34 /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#11 pc 0000000002654270 /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#12 pc 00000000026b9df0 /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#13 pc 00000000026bb010 /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#14 pc 00000000026b8bd0 /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#15 pc 000000000264c260 /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#16 pc 0000000004a51cc0 /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#17 pc 0000000004a54d98 /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#18 pc 0000000004a62a54 /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#19 pc 0000000002750a5c /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#20 pc 00000000024e7704 /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#21 pc 00000000024e7308 /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#22 pc 0000000002751048 /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#23 pc 0000000004a53db4 /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#24 pc 0000000004a57434 /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#25 pc 0000000004a55330 /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#26 pc 0000000004a59658 /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#27 pc 0000000004a59264 /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#28 pc 0000000004a57434 /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#29 pc 0000000004a518b0 /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#30 pc 0000000004a51ee4 /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#31 pc 00000000024f8804 /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#32 pc 0000000004a6683c /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#33 pc 00000000047e394c /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#34 pc 000000000482ec90 /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#35 pc 00000000047e5058 /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#36 pc 00000000047b6fc8 /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#37 pc 0000000004800c64 /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#38 pc 00000000039393e4 /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#39 pc 0000000004800dc0 /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#40 pc 000000000480fb24 /data/storage/el1/bundle/nweb/libs/arm64/libweb_engine.so(aa117efdf27c54aa7abfebf874118b75b027b27c)
#41 pc 00000000001a9034 /system/lib/ld-musl-aarch64.so.1(start+244)(22804f9f8561143341806b615b5a21f8)
#42 pc 000000000009de00 /system/lib/ld-musl-aarch64.so.1(22804f9f8561143341806b615b5a21f8)
谢谢,解决了, 原因是使用onInterceptRequest返回Raw资源时,Api9和Api11有一些区别,使用Api11的方式就好了
老哥,这是什么好意思啊,我的bugly里面全是这样的报错,一直都是webview的东西,这个怎么解决啊,好多用户在使用的出现崩溃
针对HarmonyOS鸿蒙Next Api11使用Web组件加载网页频繁崩溃并报cppcrash的问题,可能原因包括:
- 资源访问冲突:检查是否有多线程或异步操作同时访问Web组件资源,导致资源冲突。
- 内存问题:检查是否有内存泄漏或非法内存访问,这可以通过HarmonyOS的内存检测工具进行诊断。
- 兼容性问题:确认网页内容与鸿蒙系统的兼容性,特别是User-Agent的设置是否影响页面加载。
- 系统或应用bug:可能是系统或Web组件本身存在bug,建议查看HarmonyOS的更新日志和社区反馈。
如果问题依旧没法解决,请加我微信,我的微信是itying888,以便进一步分析和解决。