Crashes on Android

770 views
Skip to first unread message

Andrey Etherwind

unread,
Sep 17, 2014, 12:11:11 PM9/17/14
to ima...@googlegroups.com
Got two crash reports from our users on the latest sdk (ima-android-sdk-beta8). Can't reproduce by myself.

Device: Huawei Ascend G510, Android 4.4.4, rooted
Stack trace:
java.lang.IllegalStateException: This API not supported on Android 4.3 and earlier
       at android.webkit.WebViewClassic.evaluateJavaScript(WebViewClassic.java:2674)
       at android.webkit.WebView.evaluateJavascript(WebView.java:905)
       at com.google.ads.interactivemedia.v3.b.t.a(IMASDK:82)
       at com.google.ads.interactivemedia.v3.b.s.b(IMASDK:495)
       at com.google.ads.interactivemedia.v3.b.s.b(IMASDK:490)
       at com.google.ads.interactivemedia.v3.b.s.a(IMASDK:255)
       at com.google.ads.interactivemedia.v3.b.s.a(IMASDK:216)
       at com.google.ads.interactivemedia.v3.b.s.a(IMASDK:194)
       at com.google.ads.interactivemedia.v3.b.t.b(IMASDK:103)
       at com.google.ads.interactivemedia.v3.b.t$1.shouldOverrideUrlLoading(IMASDK:47)
       at android.webkit.CallbackProxy.uiOverrideUrlLoading(CallbackProxy.java:264)
       at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:378)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:136)
       at android.app.ActivityThread.main(ActivityThread.java:5146)
       at java.lang.reflect.Method.invokeNative(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:515)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:732)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:566)
       at dalvik.system.NativeStart.main(NativeStart.java)

Device: Huawei Ascend G510, Android 4.4.2, rooted
Stack trace:
java.lang.IllegalStateException: This API not supported on Android 4.3 and earlier
       at android.webkit.WebViewClassic.evaluateJavaScript(WebViewClassic.java:2669)
       at android.webkit.WebView.evaluateJavascript(WebView.java:896)
       at com.google.ads.interactivemedia.v3.b.t.a(IMASDK:82)
       at com.google.ads.interactivemedia.v3.b.s.b(IMASDK:495)
       at com.google.ads.interactivemedia.v3.b.s.b(IMASDK:490)
       at com.google.ads.interactivemedia.v3.b.s.a(IMASDK:255)
       at com.google.ads.interactivemedia.v3.b.s.a(IMASDK:216)
       at com.google.ads.interactivemedia.v3.b.s.a(IMASDK:194)
       at com.google.ads.interactivemedia.v3.b.t.b(IMASDK:103)
       at com.google.ads.interactivemedia.v3.b.t$1.shouldOverrideUrlLoading(IMASDK:47)
       at android.webkit.CallbackProxy.uiOverrideUrlLoading(CallbackProxy.java:264)
       at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:378)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:136)
       at android.app.ActivityThread.main(ActivityThread.java:5088)
       at java.lang.reflect.Method.invokeNative(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:515)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:607)
       at dalvik.system.NativeStart.main(NativeStart.java)

Andrey Etherwind

unread,
Sep 17, 2014, 12:32:19 PM9/17/14
to ima...@googlegroups.com
One more crash.
Device: ZTE Blade III, Android 4.4.4, rooted
Stack trace same as the first.

Bret McGowen

unread,
Sep 17, 2014, 2:54:24 PM9/17/14
to ima...@googlegroups.com
Hi  Andrey,

Do you have any more information about the setup of these devices? Are there any relevant crash reports from non-rooted devices? When running on KitKat (API 19) and above devices the SDK is using WebView.evaluateJavascript but for pre-KitKat devices it should be using a previously available API method. The confusing part here is that the devices are reporting themselves as 4.4+ but that API doesn't seem to be available. We're having trouble reproducing the issue, so any additional environment/device data you could send us would be useful.

Cheers,
Bret McGowen
IMA SDK Team

Andrey Etherwind

unread,
Sep 17, 2014, 3:06:58 PM9/17/14
to ima...@googlegroups.com
No. Got 4 crashes from 3 devices today. You are right.
Found explanation here https://plus.google.com/102445430941707435245/posts/EM2L7NxibJE

--
You received this message because you are subscribed to a topic in the Google Groups "Interactive Media Ads SDK" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ima-sdk/_jlq5qAmqRQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ima-sdk+u...@googlegroups.com.
To post to this group, send email to ima...@googlegroups.com.
Visit this group at http://groups.google.com/group/ima-sdk.
For more options, visit https://groups.google.com/d/optout.

Bret McGowen

unread,
Sep 17, 2014, 6:27:24 PM9/17/14
to ima...@googlegroups.com
Thanks for the info Andy. We'll take a look and see if there's fix from on our end. The issue is that the two API methods behave slightly differently regarding encoding so we can't just go back to the previous version unilaterally.

Thanks,
Bret

Andrey Etherwind

unread,
Sep 22, 2014, 11:41:17 AM9/22/14
to ima...@googlegroups.com
The list of affected devices grows. For now:
HUAWEI ASCEND G510 Android 4.4.2, 4.4.4
HUAWEI ASCEND G300 Android 4.4.4
ALCATEL OT 995 Android 4.4.4
LG E610 Android 4.4.2
ZTE BLADE III Android 4.4.3, 4.4.4

Bret McGowen

unread,
Sep 22, 2014, 11:49:31 AM9/22/14
to ima...@googlegroups.com
Hi Andrey,

Thanks for the list of affected devices. We're still looking at the issue but please continue to update with any additional devices or any other information that might be helpful.

Thanks!

Hans van der Gragt

unread,
Oct 26, 2014, 4:11:46 PM10/26/14
to ima...@googlegroups.com
GT-I8150 (Samsung, cm_ancora)
Rooted device with custom ROM.

Bret McGowen

unread,
Oct 27, 2014, 10:34:21 AM10/27/14
to ima...@googlegroups.com
Hi Hans,

Thanks for the update. We believe we've identified a fix and plan to have it implemented in an upcoming release, but I don't have a timeline for release yet.

Theo van den Bogaart

unread,
Dec 17, 2014, 8:08:38 AM12/17/14
to ima...@googlegroups.com
For what it's worth I've gotten the same exception on a Huawei G525 Ascend with this custom ROM installed: http://www.needrom.com/download/mokee-os-android-4-4-4-kitkat-g525-u00/

The fix hasn't made it into release as of yet?


Bret McGowen

unread,
Dec 30, 2014, 6:02:04 PM12/30/14
to ima...@googlegroups.com
Hi Theo,

We have a fix identified and will be in the next release. Stay tuned to our release history page or subscribe to our release notes forum thread for updates.

Happy Holidays,

gi...@google.com

unread,
Jun 1, 2016, 5:49:29 AM6/1/16
to Interactive Media Ads SDK
Reply all
Reply to author
Forward
0 new messages