Skip to content

WebView recently started crashing on Android on some devices #430

@lukebaker

Description

@lukebaker

Starting on March 14, our app started seeing crash reports from users that have this backtrace:

backtrace:
  #00  pc 0000000001d86b06  /data/app/com.google.android.webview-1gfF7Rp8MIUc8tMyCVn5pg==/lib/arm/libwebviewchromium.so

Our last release was on February 7, so we haven't introduced any changes. Additionally, it doesn't appear to be related to the content that we're showing as all the content we've been showing for the past month also shows the problem.

I was able to duplicate it on the following:

  • Android 5.1.1 running Chrome 72.0.3526.121
  • Android 9 running Chrome 73.0.3683.75

The WebView is inside of a ScrollView with other non-WebView components. On screen load the WebView is visible, but if we scroll down so that the WebView content is fully off the screen, the app will crash.

If I remove the overflow: "hidden" fix, the app will not crash, but the WebView doesn't render properly within the content. Setting the style of the WebView to include opacity: 0.99 also does not render the content properly (i.e., it still needs whatever the overflow: "hidden" fix does).

Here is what I see in logcat:

F/libc    ( 2321): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x210 in tid 2422 (RenderThread)
I/DEBUG   (  358): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG   (  358): UUID: d5116ccd-12dd-45df-a8a0-73da73812fc5
I/DEBUG   (  358): Build fingerprint: 'Sony/D5503/D5503:5.1.1/14.6.A.1.236/2031203603:user/release-keys'
I/DEBUG   (  358): Revision: '0'
I/DEBUG   (  358): ABI: 'arm'
I/DEBUG   (  358): pid: 2321, tid: 2422, name: RenderThread  >>> org.blah.app <<<
I/DEBUG   (  358): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x210
I/DEBUG   (  358):     r0 04000000  r1 00000001  r2 00000000  r3 00000001
I/DEBUG   (  358):     r4 a1172168  r5 00000010  r6 a1172164  r7 00000210
I/DEBUG   (  358):     r8 b6e10e04  r9 9521fbcc  sl 00000000  fp a11725ac
I/DEBUG   (  358):     ip 00000001  sp a1172138  lr 00000031  pc a9f7cafc  cpsr 20010030
I/DEBUG   (  358): 
I/DEBUG   (  358): backtrace:
I/DEBUG   (  358):     #00 pc 01d86afc  /data/app/com.google.android.webview-2/lib/arm/libwebviewchromium.so

I wonder if it is related to #429, but that description does not fit what I see exactly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions