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
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
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.
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.
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.
I disabled admob from rendering on API 19 (4.4 kitkat) the issue resolved (100% confirmed) 50k installs. I’m trying to understand why this happens, probably memory leak related.
So this issue in particular in my case is caused by admob. Which kind of sucks cause that’s 14%+ less revenue. I’m not sure if it’s Banner or Inter or both.
@wow4201 first of all that’s AWESOME you found a fix and sucks in revenue man! You mind sharing how you disabled admob for API 19? I tested the other fix and doesn’t seem to work for us.
I don’t code with cocos2d I use react-native. I just insert logic in my code to prevent rendering or triggering admob inter. Good luck! I just found this forum by searching this crash
@kds Yes I will try to confirm and get back. I am using combination of SDKBOX admob plugin and a custom one I built. Maybe the SDKBOX also need android:hardwareAccelerated to be set false.
@yinjimmy do you how I can set android:hardwareAccelerated for com.google.android.gms.ads.AdActivity that SDKBOX using for Admob plugin?