Crash in WebView - IllegalArgumentException: fromIndex(0) > toIndex(-1)

6 views
Skip to first unread message

Kajal Hargunani

unread,
6:58 AM (7 hours ago) 6:58 AM
to Google Mobile Ads SDK Developers

Hi,

We are encountering a recurring crash in our production app, and the stack trace shows it is occurring inside the Trichrome WebView (Chromium).

Fatal Exception:

Caused by java.lang.IllegalArgumentException: fromIndex(0) > toIndex(-1) at java.util.Arrays.rangeCheck(Arrays.java:727) at java.util.Arrays.binarySearch(Arrays.java:2268) at WV.d42.a(chromium-TrichromeWebViewGoogle6432.aab-stable-733905133:2) at WV.lm.run(chromium-TrichromeWebViewGoogle6432.aab-stable-733905133:448) at org.chromium.base.task.TaskRunnerImpl.runTask(chromium-TrichromeWebViewGoogle6432.aab-stable-733905133:31) at android.os.MessageQueue.nativePollOnce(MessageQueue.java) at android.os.MessageQueue.next(MessageQueue.java:335) at android.os.Looper.loopOnce(Looper.java:187) at android.os.Looper.loop(Looper.java:319) at android.app.ActivityThread.main(ActivityThread.java:9063) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:588) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)

Observations

  • The crash appears to be caused by an invalid index range being passed to Arrays.binarySearch inside WebView internal code.

  • This is happening entirely inside SDK/Chromium code and not triggered directly by our app logic.

Impact
We are also observing that the number of occurrences is increasing day by day, which is raising significant concern.

Thanks & Regards,
Kajal

Mobile Ads SDK Forum Advisor

unread,
10:19 AM (4 hours ago) 10:19 AM
to google-adm...@googlegroups.com

Hi,
Thank you for contacting the Mobile Ads SDK Support team.
Based on the stack trace you provided, we have not observed any direct references to Google Mobile Ads SDK classes in the crash stack. 
To assist you further in investigating this issue, could you please provide the following:

  • Stack trace from all threads
  • The Google Mobile Ads SDK version you are using
  • Any specific device models and Android OS versions that you have identified as most affected by this crash
  • (If reproducible) Sample project
  • (If reproducible) Steps to reproduce
Kindly provide the requested details via Reply privately to author option.

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

1. Navigate to

https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=500Ht00001u7P9YIAU&entry.80707362=00333589

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.


Thanks,
 
Google Logo Mobile Ads SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-09-24 14:18:53Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01u7P9Y:ref" (ADR-00333589)



Reply all
Reply to author
Forward
0 new messages