Closed Bug 760396 Opened 9 years ago Closed 2 years ago

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

Categories

(Firefox for Android Graveyard :: Keyboards and IME, defect)

14 Branch
ARM
Android
defect
Not set
critical

Tracking

(firefox16 affected, firefox17 affected)

RESOLVED WONTFIX
Tracking Status
firefox16 --- affected
firefox17 --- affected

People

(Reporter: scoobidiver, Unassigned)

References

Details

(Keywords: crash, Whiteboard: [native-crash])

Crash Data

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
Assignee: nobody → cpeterson
Component: General → IME
QA Contact: general → ime
Depends on: 765831
My fix for bug 765831 (part-5-clamp-composing-span.patch) should fix this SpannableStringBuilder exception.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 16
(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.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Crash Signature: android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java) ] [@ java.lang.IndexOutOfBoundsException: replace (15 ... 18) ends beyond length 0 at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java) ] → android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java) ] [@ java.lang.IndexOutOfBoundsException: replace (15 ... 18) ends beyond length 0 at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java) ] [@ java.lang.…
Target Milestone: Firefox 16 → ---
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).
Depends on: 769520
Status: REOPENED → RESOLVED
Closed: 9 years ago9 years ago
Resolution: --- → FIXED
Reopening because of the backout of bug 769250.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee: cpeterson → nobody
Status: REOPENED → NEW
Crash Signature: java.lang.IndexOutOfBoundsException: setSpan (6 ... 6) ends beyond length 3 at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java) ] → java.lang.IndexOutOfBoundsException: setSpan (6 ... 6) ends beyond length 3 at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java) ] [@ java.lang.IndexOutOfBoundsException: replace ends beyond length 0 at android.text.SpannableSt…
Closing because no crashes reported for 12 weeks.
Status: NEW → RESOLVED
Closed: 9 years ago2 years ago
Resolution: --- → WONTFIX
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.