[Android] IMA SDK is causing the whole app to crash if a WebView render process crashes

360 views
Skip to first unread message

Yevhen Huzyk

unread,
Dec 8, 2022, 6:08:02 AM12/8/22
to Interactive Media Ads SDK
Hi,

We have one of the top crashes in our app related to the WebView render process crash which is caused by the IMA SDK that is not handling it. The WebView rendering process might crash for a variety of reasons and in case where it is not handled by ALL of the WebViewClients implemented in the app or in the libraries used by the app - the app will crash because the render process is shared.

The crash stack trace looks approximately like this:

SIGTRAP: Trace/breakpoint trap

0  libmonochrome.so +0x2827d28     0x7617f90d28
1  libmonochrome.so +0x4c81e60     0x761a3eae64
2  libmonochrome.so +0x332c2d0     0x7618a952d4
3  libmonochrome.so +0x2237404     0x76179a0408
4  libmonochrome.so +0x22357d4     0x761799e7d8
5  libmonochrome.so +0x2c12178     0x761837b17c
6  libmonochrome.so +0x2c120fc     0x761837b100
7  libmonochrome.so +0x2c12048     0x761837b04c
8  libutils.so +0x18070            android::Looper::pollInner(int)
9  libutils.so +0x17c74            android::Looper::pollOnce(int, int*, int*, void**)
10 libandroid_runtime.so +0x13fcc0 android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long, int)
11 boot-framework.oat +0x2bf1d8    art_jni_trampoline
12 boot-framework.oat +0x76881c    android.os.MessageQueue.next
13 boot-framework.oat +0x765654    android.os.Looper.loop
14 boot-framework.oat +0x4eaf80    android.app.ActivityThread.main
15 libart.so +0x1365b4             art_quick_invoke_static_stub
16 libart.so +0x1450c8             art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)
17 libart.so +0x4b1604             art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)
18 libart.so +0x4b304c             art::InvokeMethod(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)
19 libart.so +0x43ed9c             art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)
20 boot.oat +0xc2c30               art_jni_trampoline
21 boot-framework.oat +0x9d9274    com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run
22 boot-framework.oat +0x9e15ac    com.android.internal.os.ZygoteInit.main
23 libart.so +0x1365b4             art_quick_invoke_static_stub
24 libart.so +0x1450c8             art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)
25 libart.so +0x4b1604             art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)
26 libart.so +0x4b1264             art::InvokeWithVarArgs(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)
27 libart.so +0x3bba34             art::JNI::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)
28 libandroid_runtime.so +0xc59d8  _JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)
29 libandroid_runtime.so +0xc887c  android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)
30 app_process64 +0x3598           main
31 libc.so +0x7e868                __libc_init

I've shared the sample app for you to check. It is the modified project from the IMA library samples.

Steps to reproduce:
1. Launch the sample app.
2. Launch the ad playback.
3. Push the floating action button which is launching the WebView with "chrome://crash" URL.
4. Observe the crash.

To handle this crash the WebViewClient used in the IMA library has to override the onRenderProcessGone method and return "true" there which is not the case currently.

Can you please fix it and override this method in the WebViewClient ?

IMA SDK

unread,
Dec 9, 2022, 4:18:17 AM12/9/22
to ima...@googlegroups.com

Hi Yevhen,

 

Thank you for reaching out to us.

 

Upon checking your sample app provided, I wasn't able to replicate the whole app crashing upon following the steps to replicate you've provided. With that, can you provide us a screen recording of your replication and device name and versions affected on this?

 

Regards,

Google Logo
Princess Pamela
IMA SDK Team
 


ref:_00D1U1174p._5004Q2h0mxk:ref

Yevhen Huzyk

unread,
Dec 9, 2022, 4:49:38 AM12/9/22
to Interactive Media Ads SDK
Sure, I've attached the video and a stacktrace. This is an emulator of Pixel 5 API 31.
stacktrace.txt

IMA SDK

unread,
Dec 9, 2022, 2:03:18 PM12/9/22
to ima...@googlegroups.com
Hi Yevhen,

Thank you for getting back to us. I've relayed this to a wider team for further investigation. I'll update this thread the soonest I hear back from them.

Regards,
Google Logo
Teejay Wennie
IMA SDK Team
 


ref:_00D1U1174p._5004Q2h0mxk:ref

Yevhen Huzyk

unread,
Jan 10, 2023, 2:20:34 PM1/10/23
to Interactive Media Ads SDK
Hi,

Do you have any update on this?

Regards,
Yevhen

IMA SDK

unread,
Jan 10, 2023, 8:32:11 PM1/10/23
to ima...@googlegroups.com

Hello Yevhen,

 

Thank you for getting back to us. Currently our team are looking into some changes we can improve from the SDK side. We will let you know once we have more information we can share.

 

Regards,

Google Logo
Michael Angelo
IMA SDK Team
 


ref:_00D1U1174p._5004Q2h0mxk:ref

Yevhen Huzyk

unread,
Feb 20, 2023, 11:57:24 AM2/20/23
to Interactive Media Ads SDK
Hello,


Do you have any update on this?

Best regards,
Yevhen

IMA SDK

unread,
Feb 20, 2023, 1:24:19 PM2/20/23
to ima...@googlegroups.com

Hello Yevhen,

 

Thank you for patiently waiting. For now, we don't have much information to share but I can assure you that our team is actively working on the changes we can improve on the SDK side to help with your issue. We will be sure to get back to you with more information. We really appreciate your kind understanding on this.


Regards,

Google Logo
Edessa
IMA SDK Team
 


ref:_00D1U1174p._5004Q2h0mxk:ref

Yevhen Huzyk

unread,
Apr 10, 2023, 9:55:49 AM4/10/23
to Interactive Media Ads SDK
Hello,

Do you have any updates on this one?

Best regards,
Yevhen

IMA SDK

unread,
Apr 11, 2023, 4:01:01 AM4/11/23
to ima...@googlegroups.com

Hi Yevhen,

Your concern is still under investigation. Rest assured we'll keep you posted on any updates regarding this.

Regards,

Google Logo IMA SDK Team


ref:_00D1U1174p._5004Q2h0mxk:ref

Yevhen Huzyk

unread,
Sep 7, 2023, 5:30:47 AM9/7/23
to Interactive Media Ads SDK
Hey guys!

Do you have any news on this one?

Thank you!

IMA SDK

unread,
Sep 7, 2023, 8:18:19 AM9/7/23
to ima...@googlegroups.com

Hi Yevhen,

Our team is continuously working on this. We really appreciate your patience while this concern is being investigated. Please allow me to follow up on our team on your behalf to expedite the investigation. We will get back to you once the information is available. 

This message is in relation to case "ref:_00D1U1174p._5004Q2h0mxk:ref"

Thanks,

 
Google Logo IMA SDK Team


Reply all
Reply to author
Forward
0 new messages