渲染进程使Webview Android Pie崩溃(9) [英] Render process crashing webview Android Pie (9)

查看:4703
本文介绍了渲染进程使Webview Android Pie崩溃(9)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试从资产文件夹中加载HTML文件,应用程序在Android v8.1之前都可以正常运行,并且在Android Pie(9)设备中崩溃.

Trying to load the HTML files from assets folder, app working fine up to Android v8.1 and getting crash in Android Pie (9) devices.

似乎WebView渲染过程根据调试日志崩溃,从而找到解决此问题的方法.

Seems like WebView render process getting crash according the debug logs, finding the ways to resolve this issue.

请帮助并提出建议...谢谢.

Please help and suggest...Thanks in advance.

从logcat:

2019-09-19 15:37:13.967 3313-3342/? E/libc: failed to connect to tombstoned: Operation not permitted
2019-09-19 15:37:14.100 4499-4499/? E/audit: type=1701 audit(1568887634.098:9979): auid=4294967295 uid=99281 gid=99281 ses=4294967295 subj=u:r:isolated_app:s0:c25,c257,c512,c768 pid=3313 comm="CrRendererMain" exe="/system/bin/app_process32" sig=5
2019-09-19 15:37:14.129 4924-4978/? E/libprocessgroup: Error encountered killing process cgroup uid 99281 pid 3313: No such file or directory
2019-09-19 15:37:14.147 3131-3131/? E/chromium: [ERROR:aw_browser_terminator.cc(125)] Renderer process (3313) crash detected (code 5).
2019-09-19 15:37:14.148 3131-3131/? A/chromium: [FATAL:crashpad_client_linux.cc(494)] Render process (3313)'s crash wasn't handled by all associated  webviews, triggering application crash.

---------崩溃开始

--------- beginning of crash

2019-09-19 15:37:14.149 3131-3131/? A/libc: Fatal signal 5 (SIGTRAP), code 1 (TRAP_BRKPT), fault addr 0x726bc83a50 in tid 3131 (s.ultrasyncplus), pid 3131 (s.ultrasyncplus)
2019-09-19 15:37:14.227 3410-3410/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2019-09-19 15:37:14.227 3410-3410/? A/DEBUG: Build fingerprint: 'samsung/crownltexx/crownlte:9/PPR1.180610.011/N960FXXS3CSFC:user/release-keys'
2019-09-19 15:37:14.227 3410-3410/? A/DEBUG: Revision: '28'
2019-09-19 15:37:14.227 3410-3410/? A/DEBUG: ABI: 'arm64'
2019-09-19 15:37:14.227 3410-3410/? A/DEBUG: pid: 3131, tid: 3131, name: s.ultrasyncplus  >>> com.uhssystems.ultrasyncplus <<<
2019-09-19 15:37:14.227 3410-3410/? A/DEBUG: signal 5 (SIGTRAP), code 1 (TRAP_BRKPT), fault addr 0x726bc83a50
2019-09-19 15:37:14.227 3410-3410/? A/DEBUG: Abort message: '[FATAL:crashpad_client_linux.cc(494)] Render process (3313)'s crash wasn't handled by all associated  webviews, triggering application crash.

推荐答案

方法1:该方法也适用于Android 9的所有域.像这样将此属性添加到清单中:

method 1 :This method works for all domains also with Android 9. Add this property to your Manifest like this:

 <application
    ...
   android:usesCleartextTraffic="true"
    ...>
 </application>

方法2.1:将@ xml/network_security_config添加到您的资源中:

method 2.1 : Add @xml/network_security_config into your resources:

    <?xml version="1.0" encoding="utf-8"?>
<network-security-config>
    <domain-config cleartextTrafficPermitted="true">
        <domain includeSubdomains="true">www.rcub.ac.in/</domain>
    </domain-config>
</network-security-config>

2.2:将此安全配置添加到清单中,如下所示:

2.2 : Add this security config to your Manifest like this:

<application
    ...
    android:networkSecurityConfig="@xml/network_security_config"
    ...>

    ...
</application>

您可以在 https://developer.android.com/中阅读更多内容. training/articles/security-config#CleartextTrafficPermitted

这篇关于渲染进程使Webview Android Pie崩溃(9)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆