Last Comment Bug 760396 - java.lang.IndexOutOfBoundsException: getChars (a ... b) ends beyond length c or has end before start at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java) at android.view.inputmethod.BaseInputConnection.replaceText
: java.lang.IndexOutOfBoundsException: getChars (a ... b) ends beyond length c ...
Status: NEW
[native-crash]
: crash
Product: Firefox for Android
Classification: Client Software
Component: Keyboards and IME (show other bugs)
: 14 Branch
: ARM Android
: -- critical (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
Mentors:
Depends on: 765831 769520 805162
Blocks: 772225
  Show dependency treegraph
 
Reported: 2012-06-01 02:59 PDT by Scoobidiver (away)
Modified: 2015-10-13 07:30 PDT (History)
1 user (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---
affected
affected


Attachments

Description Scoobidiver (away) 2012-06-01 02:59:38 PDT
There are 46 crashes in 14.0b3 making it #42 top crasher. The stack is different from bug 747629 and bug 749571.

java.lang.IndexOutOfBoundsException: replace (0 ... 10) ends beyond length 0
	at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java:1016)
	at android.text.SpannableStringBuilder.change(SpannableStringBuilder.java:295)
	at android.text.SpannableStringBuilder.change(SpannableStringBuilder.java:290)
	at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:453)
	at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:430)
	at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:37)
	at android.view.inputmethod.BaseInputConnection.replaceText(BaseInputConnection.java:890)
	at android.view.inputmethod.BaseInputConnection.setComposingText(BaseInputConnection.java:639)
	at org.mozilla.gecko.GeckoInputConnection.setComposingText(GeckoInputConnection.java:293)
	at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:318)
	at com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:75)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:130)
	at android.app.ActivityThread.main(ActivityThread.java:3806)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:507)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
	at dalvik.system.NativeStart.main(Native Method)

More reports at:
https://crash-stats.mozilla.com/query/query?product=FennecAndroid&version=ALL%3AALL&range_value=1&range_unit=weeks&query_search=signature&query_type=contains&query=android.text.SpannableStringBuilder.checkRange&do_query=1
Comment 1 Chris Peterson [:cpeterson] 2012-06-20 10:30:06 PDT
My fix for bug 765831 (part-5-clamp-composing-span.patch) should fix this SpannableStringBuilder exception.
Comment 2 Scoobidiver (away) 2012-06-22 06:21:41 PDT
(In reply to Chris Peterson (:cpeterson) from comment #1)
> My fix for bug 765831 (part-5-clamp-composing-span.patch) should fix this
> SpannableStringBuilder exception.
It does not. See bp-7417aa10-2614-4359-a332-2f94b2120621.
Comment 3 Chris Peterson [:cpeterson] 2012-07-16 15:34:18 PDT
The fix for bug 769520, which landed in build Nightly 16 (2012-07-10), should have fixed these IndexOutOfBoundsExceptions. I'm resolving this bug as FIXED because I do not see any IndexOutOfBoundsExceptions in Socorro for builds >= Nightly 16 (2012-07-10).
Comment 4 Scoobidiver (away) 2012-09-09 00:15:46 PDT
Reopening because of the backout of bug 769250.

Note You need to log in before you can comment on or make changes to this bug.