3.16 and 3.17 crashes in libwebviewchromium.so

3.16 and 3.17 crashes in libwebviewchromium.so
0.0 0

#1

We are seeing tons of these crashes in Play Console in 3.16 and also 3.17. We don’t have anything that uses the webview. Not sure why it would crash here :frowning:

Any ideas anyone?

Huawei MediaPad (hwt1701), Android 4.4
Report 1

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> com.company.mygame <<<

backtrace:
  #00  pc 00000000001a2f28  /system/lib/libwebviewchromium.so
  #01  pc 000000000001e74c  /system/lib/libdvm.so (dvmPlatformInvoke+112)
  #02  pc 000000000004f9fd  /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+484)
  #03  pc 0000000000027b28  /system/lib/libdvm.so
  #04  pc 000000000002f130  /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
  #05  pc 000000000002c614  /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+188)
  #06  pc 0000000000062d39  /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+340)
  #07  pc 000000000004e6f9  /system/lib/libdvm.so
  #08  pc 00000000001a30ed  /system/lib/libwebviewchromium.so
  #09  pc 00000000001a3bdb  /system/lib/libwebviewchromium.so
  #10  pc 000000000019ad83  /system/lib/libwebviewchromium.so
  #11  pc 000000000019c975  /system/lib/libwebviewchromium.so
  #12  pc 000000000019a791  /system/lib/libwebviewchromium.so
  #13  pc 00000000002df7e5  /system/lib/libwebviewchromium.so
  #14  pc 00000000002e0ea9  /system/lib/libwebviewchromium.so
  #15  pc 00000000002df4d3  /system/lib/libwebviewchromium.so
  #16  pc 00000000002dfbc3  /system/lib/libwebviewchromium.so
  #17  pc 0000000000349211  /system/lib/libwebviewchromium.so
  #18  pc 0000000000352e3f  /system/lib/libwebviewchromium.so
  #19  pc 000000000034e547  /system/lib/libwebviewchromium.so
  #20  pc 0000000000df8253  /system/lib/libwebviewchromium.so
  #21  pc 0000000000b3861f  /system/lib/libwebviewchromium.so
  #22  pc 0000000000b6eb8d  /system/lib/libwebviewchromium.so
  #23  pc 0000000000b685af  /system/lib/libwebviewchromium.so
  #24  pc 0000000000b67c65  /system/lib/libwebviewchromium.so
  #25  pc 0000000000b45447  /system/lib/libwebviewchromium.so
  #26  pc 0000000000b454d3  /system/lib/libwebviewchromium.so
  #27  pc 0000000000b4d167  /system/lib/libwebviewchromium.so
  #28  pc 0000000000b697c5  /system/lib/libwebviewchromium.so
  #29  pc 0000000000b69a59  /system/lib/libwebviewchromium.so
  #30  pc 0000000000b65cd7  /system/lib/libwebviewchromium.so
  #31  pc 0000000000b658e7  /system/lib/libwebviewchromium.so

#2

I am still using cocos v3.12 and I also had a lot of same crashes. 99% of them were on android 4.… The only solution I found was to disable hardware acceleration for android 4.. After adding this “fix” I see no crashes.


#3

@kds GREAT!

Did you disable hardware acceleration on the application or activity level?
https://developer.android.com/guide/topics/graphics/hardware-accel

I am thinking turning hardware acceleration off at activity level and toggle that on/off base on android 4 or not.
What you think?

<application android:hardwareAccelerated="true">
    <activity ... />
    <activity android:hardwareAccelerated="false" />
</application>

getWindow().setFlags(
    WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED,
    WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED);

#4

I am using admob and this is the only place where webview is used in my games. So, I disable hardware acceleration only for “com.google.android.gms.ads.AdActivity”. I am doing it in manifest through resources.


#5

@kds Thank you!


#6

No problem, let me know if it helped.


#7

@kds Thanks, I will!

For others here’s what we did https://stackoverflow.com/questions/13850259/is-there-a-way-to-disable-hardware-acceleration-only-for-android-4-0-3


#8

Which version of play-services-ads are you using? I’m experiencing this with 11.8


#9

We haven’t deploy the fix yet so not sure if it work or not. I will get back when this happen.

As for play-services-ads it’s the current version that comes with SdkBox.


#10

I’m finding it impossible to specifically turn hardware accelerated rendering off for com.google.android.gms.ads.AdActivity using Android Manifest. At best, I can turn it off for the entire application, but even then Interstitial Ads still uses Accelerated Rendering.

I tested this, by Developer Options (hidden android menu) -> Show GPU View updates.
This will flick the screen where the GPU renders.

I’m just disabling admob for 4.4 and seeing if the issues persists. Then I’ll try Google Play Game Services.