Android System Webview crashes

Which version of system do you use? Khadas official images, self built images, or others?

Khadas official Android 11 64bit

Please describe your issue below:

We are experiencing crashes in the webview. The included webview has version 83.0.4103.120, packageName com.android.webview, which is quite old (May 2020).

A newer version of the webview (108.0.5359.128) is available from Play store but cannot be used on the system since the packageName, com.google.android.webview, does not match the webviewprovider packageNames.

Is there a way to install a newer version of the webview on the vim4 board or allow it to use the ones provided from Play Store?

Post a console log of your issue below:

12-21 09:12:18.647 11359 11390 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
12-21 09:12:18.647 11359 11390 F DEBUG   : Build fingerprint: 'OnePlus/OnePlus6/OnePlus6:8.1.0/OPM1.171019.011/06140300:user/release-keys'
12-21 09:12:18.647 11359 11390 F DEBUG   : Revision: '0'
12-21 09:12:18.647 11359 11390 F DEBUG   : ABI: 'arm'
12-21 09:12:18.647 11359 11390 F DEBUG   : Timestamp: 2022-12-21 09:12:18+0000
12-21 09:12:18.647 11359 11390 F DEBUG   : pid: 11359, tid: 11390, name: ocessService0:0  >>> com.android.webview:sandboxed_process0:org.chromium.content.app.SandboxedProcessService0:0 <<<
12-21 09:12:18.647 11359 11390 F DEBUG   : uid: 99001
12-21 09:12:18.648 11359 11390 F DEBUG   : signal 5 (SIGTRAP), code -6 (SI_TKILL), fault addr --------
12-21 09:12:18.648 11359 11390 F DEBUG   :     r0  00000000  r1  c9237c90  r2  00000444  r3  dea86f20
12-21 09:12:18.648 11359 11390 F DEBUG   :     r4  dea86f20  r5  d5552cd4  r6  00000000  r7  e61913b8
12-21 09:12:18.648 11359 11390 F DEBUG   :     r8  d55529c0  r9  d5552cd4  r10 b33e392c  r11 d5552b70
12-21 09:12:18.648 11359 11390 F DEBUG   :     ip  c68e4f3f  sp  d5552968  lr  c704fca1  pc  c8185108
12-21 09:12:18.648 11359 11390 F DEBUG   : 
12-21 09:12:18.648 11359 11390 F DEBUG   : backtrace:
12-21 09:12:18.648 11359 11390 F DEBUG   :       #00 pc 022e7108  /product/app/webview/webview.apk!libwebviewchromium.so (offset 0x4fca000) (BuildId: bf7bc8b9207ce682bfa9c27240394adfa9bfc088)

There is also a crashpad minidump I can post if that helps.

I have just installed the latest 29/12-2020 version of Android using oowow. It looks as the new release use the same version of system WebView. I still get the crash in libwebviewchromium.so.

Hello @Tomas

@goenjoy will help you about this issue.

Hi,@Tomas, could you provide a higher-level error message or the usage of calling webview?such as exception message,app if possible.I don’t know how to reproduce the crash.

1 Like

Hi @PeterLin,

Thanks for reaching out! Yesterday I had problems logging in to the forum while working from home. But now I am back at the office.

I have tried to capture the error using chrome://inspect remotely but the recording stops as soon as I encounter the crash and no data is saved. The only log I can see is the logcat output, pasted below. The crashpad output was too long to paste here, I can email if needed.

The webview is a thin wrapper loading a transparent UI on top of a natively rendered GLES surface. I will continue to work on getting a minimal sample apk in place.

Logcat output

01-11 08:27:03.275 15605 15605 D ffboard : FlatFrog Board ZCanvas: css 3072 x 1728, device 9216 x 5184. UI scale: 3
01-11 08:27:03.334 395 934 D gps_ql : Error connecting rild-nmea (Connection refused)
01-11 08:27:03.334 395 934 D gps_ql : fail to open GPS channel !
01-11 08:27:03.350 389 1465 I android.hardware.bluetooth@1.0-service-droidlogic: wole_config_cback, status = 0, opcode=0xfe54
01-11 08:27:03.355 416 512 W APM::AudioPolicyEngine: getDevicesForStrategy() unknown strategy: -1
01-11 08:27:03.355 640 1030 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4
01-11 08:27:03.514 15768 15768 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 10135 <<<<<<
01-11 08:27:03.517 15768 15768 I AndroidRuntime: Using default boot image
01-11 08:27:03.517 15768 15768 I AndroidRuntime: Leaving lock profiling enabled
01-11 08:27:03.521 15768 15768 I app_process64: Core platform API reporting enabled, enforcing=false
01-11 08:27:03.513 15768 15768 I app_process64: type=1400 audit(0.0:1747): avc: denied { read } for name=“u:object_r:device_config_runtime_native_boot_prop:s0” dev=“tmpfs” ino=22165 scontext=u:r:untrusted_app:s0:c135,c256,c512,c768 tcontext=u:object_r:device_config_runtime_native_boot_prop:s0 tclass=file permissive=1 app=com.flatfrog.FFBoardWrapper
01-11 08:27:03.517 15768 15768 I app_process64: type=1400 audit(0.0:1751): avc: denied { lock } for path=“/apex/com.android.art/javalib/arm64/boot.art” dev=“dm-0” ino=134 scontext=u:r:untrusted_app:s0:c135,c256,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=1 app=com.flatfrog.FFBoardWrapper
01-11 08:27:03.627 15768 15768 D app_process64: Time zone APEX ICU file found: /apex/com.android.tzdata/etc/icu/icu_tzdata.dat
01-11 08:27:03.627 15768 15768 D app_process64: I18n APEX ICU file found: /apex/com.android.i18n/etc/icu/icudt66l.dat
01-11 08:27:03.640 15768 15768 I app_process64: The ClassLoaderContext is a special shared library.
01-11 08:27:03.660 15768 15768 W app_process64: JNI RegisterNativeMethods: attempt to register 0 native methods for android.media.AudioAttributes
01-11 08:27:03.667 15768 15768 D AndroidRuntime: Calling main entry org.chromium.components.crash.browser.CrashpadMain
01-11 08:27:03.677 15768 15768 E chromium: [0111/082703.676755:ERROR:exception_handler_server.cc(102)] capget: Invalid argument (22)
01-11 08:27:03.688 15768 15768 E chromium: [0111/082703.688795:ERROR:process_memory_linux.cc(42)] open: No such file or directory (2)
01-11 08:27:03.705 15768 15768 I main : type=1400 audit(0.0:1752): avc: denied { getsched } for scontext=u:r:untrusted_app:s0:c135,c256,c512,c768 tcontext=u:r:isolated_app:s0:c512,c768 tclass=process permissive=1 app=com.flatfrog.FFBoardWrapper
01-11 08:27:04.001 482 510 D RIL RILU: find_pci_device is 0
01-11 08:27:04.005 482 510 E RIL RILU: cannot find ttyname for AT Port
01-11 08:27:04.005 482 510 D RIL RILC: USB can’t find at device
01-11 08:27:04.035 15768 15768 E chromium: [0111/082704.035276:ERROR:file_io_posix.cc(143)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: Permission denied (13)
01-11 08:27:04.035 15768 15768 E chromium: [0111/082704.035672:ERROR:ptrace_client.cc(377)] Broker Open: access denied
01-11 08:27:04.113 3011 3011 W HidlServiceManagement: Waited one second for android.hardware.radio@1.1::IRadio/slot1
01-11 08:27:04.113 269 269 I hwservicemanager: Since android.hardware.radio@1.1::IRadio/slot1 is not registered, trying to start it as a lazy HAL.
01-11 08:27:04.114 3011 3011 I HidlServiceManagement: getService: Trying again for android.hardware.radio@1.1::IRadio/slot1…
01-11 08:27:04.114 269 15785 W libc : Unable to set property “ctl.interface_start” to “android.hardware.radio@1.1::IRadio/slot1”: error code: 0x20
--------- beginning of crash
01-11 08:27:04.133 15768 15768 F crashpad: -----BEGIN CRASHPAD MINIDUMP-----

<<< snipped 61 lines of CRASHPAD output >>>

01-11 08:27:04.139 15768 15768 F crashpad: -----END CRASHPAD MINIDUMP-----
01-11 08:27:04.150 389 1465 I android.hardware.bluetooth@1.0-service-droidlogic: wole_config_cback, status = 0, opcode=0xfe54
01-11 08:27:04.158 15768 15768 E chromium: [0111/082704.158392:ERROR:socket.cc(181)] incorrect payload size 0
01-11 08:27:04.159 15768 15768 D AndroidRuntime: Shutting down VM
01-11 08:27:04.159 15639 15672 E libc : failed to connect to tombstoned: Operation not permitted
01-11 08:27:04.185 15639 15672 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-11 08:27:04.186 15639 15672 F DEBUG : Build fingerprint: ‘OnePlus/OnePlus6/OnePlus6:8.1.0/OPM1.171019.011/06140300:user/release-keys’
01-11 08:27:04.186 15639 15672 F DEBUG : Revision: ‘0’
01-11 08:27:04.186 15639 15672 F DEBUG : ABI: ‘arm’
01-11 08:27:04.187 15639 15672 F DEBUG : Timestamp: 2023-01-11 08:27:04+0000
01-11 08:27:04.187 15639 15672 F DEBUG : pid: 15639, tid: 15672, name: ocessService0:0 >>> com.android.webview:sandboxed_process0:org.chromium.content.app.SandboxedProcessService0:0 <<<
01-11 08:27:04.187 15639 15672 F DEBUG : uid: 99078
01-11 08:27:04.187 15639 15672 F DEBUG : signal 5 (SIGTRAP), code -6 (SI_TKILL), fault addr --------
01-11 08:27:04.187 15639 15672 F DEBUG : vm_pid:15639
01-11 08:27:04.188 15639 15672 F DEBUG : r0 00000000, PFN:-------- r1 c8459c90, PFN: 1517593 r2 00000444, PFN:-------- r3 dda69a70, PFN: 1626029
01-11 08:27:04.188 15639 15672 F DEBUG : r4 dda69a70, PFN: 1626029 r5 d45a4cd4, PFN: 1533563 r6 00000000, PFN:-------- r7 e5193418, PFN: 1544506
01-11 08:27:04.188 15639 15672 F DEBUG : r8 d45a49c0, PFN: 1533563 r9 d45a4cd4, PFN: 1533563 r10 b001489c, PFN: 1525075 r11 d45a4b70, PFN: 1533563
01-11 08:27:04.189 15639 15672 F DEBUG : ip c5b06f3f, PFN: 1633714 sp d45a4968, PFN: 1533563 lr c6271ca1, PFN: 1225175 pc c73a7108, PFN: 1524676
01-11 08:27:04.189 15639 15672 F DEBUG :
01-11 08:27:04.189 15639 15672 F DEBUG : backtrace:
01-11 08:27:04.189 15639 15672 F DEBUG : #00 pc 022e7108 /product/app/webview/webview.apk!libwebviewchromium.so (offset 0x4fca000) (BuildId: bf7bc8b9207ce682bfa9c27240394adfa9bfc088)
01-11 08:27:04.271 0 0 W [ 3319.021275@3] audit: audit_lost=1141 audit_rate_limit=5 audit_backlog_limit=64
01-11 08:27:04.271 0 0 E [ 3319.021493@3] audit: rate limit exceeded
01-11 08:27:04.265 15639 15639 I CrRendererMain: type=1400 audit(0.0:1753): avc: denied { read } for name=“u:object_r:media_variant_prop:s0” dev=“tmpfs” ino=22221 scontext=u:r:isolated_app:s0:c512,c768 tcontext=u:object_r:media_variant_prop:s0 tclass=file permissive=1
01-11 08:27:04.334 395 934 D gps_ql : Error connecting rild-nmea (Connection refused)
01-11 08:27:04.334 395 934 D gps_ql : fail to open GPS channel !
01-11 08:27:04.410 640 2831 I ActivityManager: Process com.android.webview:sandboxed_process0:org.chromium.content.app.SandboxedProcessService0:0 (pid 15639) has died: fg BTOP
01-11 08:27:04.410 640 668 I libprocessgroup: Successfully killed process cgroup uid 99078 pid 15639 in 0ms
01-11 08:27:04.410 1135 1135 I Zygote : Process 15639 exited due to signal 5 (Trap)
01-11 08:27:04.410 640 2831 W ActivityManager: Scheduling restart of crashed service com.flatfrog.FFBoardWrapper/org.chromium.content.app.SandboxedProcessService0:0 in 1000ms for connection

As a side note we can see similar issues loading the web page on windows desktop if we use Chrome 83.0.4103.116. We do not have these kind of problems with latest versions of Chrome or Edge.

/Tomas

My impression is that the crash happen when the loaded page in the webview starts communicating with our backend server. Some message passed from the backend to the client in the webserver trigger a bug in chrome.

hi,@Tomas .I still can’t judge the cause of the crash through the information you provided.I created a app that contains webview ui view to load web resource.And it seem run normally. What version is the firmware?I try my best to reproduce the crash.At last,please provide the app If your app is progressing.

I have now created a (not so small) sample application that causes the webview (version 83) to crash. Can I upload/email an apk somewhere. I can also upload a zip with the requires java-code if needed.

Hi all, I wanted to buy a VIM1S to run my Home Assistant Dashboard. Since my 32 inch touch monitor has to run in portrait mode and I want to install the Fully Browser Kiosk app because it is the only app that really allows a lot of automations.

I have an Android TV box here so far, it has an AOSP Android 11 with an outdated webview (also with a V83 webview) so the app is not displayed fullscreen in portrait mode.
A test with a Raspberry pi 4 and Lineageos and current Webview works without problems but I can’t use the Pi because it crashes my Ubiquiti surveillance camera app. So I am looking for alternatives.
Is there any chance to get a new webview version?

@Tomas Please send the app and code to my email.My email is peter.lin@wesion.com.

Hi @PeterLin ,
I have sent you an email with the sample code and an apk.

Sorry,@Tomas ,I did not receive your email.Could you send email to peter.lin@wesion.com again?

@Brot123 We have managed to install version 108 on the vim4 in order to test if a newer version resolved our issue (which it did). The new version of the webview worked well for us, but rooting the system is not viable long-term for us.

The steps we did for testing the new version of the webview were:

  1. Install Magisk (like super-su) GitHub - topjohnwu/Magisk: The Magic Mask for Android
  2. Install riru GitHub - RikkaApps/Riru: Inject into zygote process
  3. Install LSPosed GitHub - LSPosed/LSPosed: LSPosed Framework
  4. Install AnyWebView module in LSPosed (either through in-app browser or from GitHub - neoblackxt/AnyWebView: Any WebView is OK!)

If you are unable to install the modules (.zip) in Magisk for some reason, try doing it in a root adb shell with the ‘magisk’ command.

1 Like

@PeterLin I sent you another email with only the source code since the APK was quite large. Did you get my latest email?

@Tomas Still did not receive the email.Please send to my another email 3570692734@qq.com again or upload the resources to netdisc.

@PeterLin Ok. I have forwarded my original emails to the new adress.

@Tomas I think your email service may have some problem.Mail never received.Try to upload the resources to netdisc?

@PeterLin What is the url of netdisc?

@Tomas Choose your usual network disk that can free download resources preferably and upload the apk and source code.