The default bug view has changed. See this FAQ.

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

NEW
Unassigned

Status

()

Firefox for Android
Keyboards and IME
--
critical
5 years ago
2 years ago

People

(Reporter: Scoobidiver (away), Unassigned)

Tracking

({crash})

14 Branch
ARM
Android
crash
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox16 affected, firefox17 affected)

Details

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

(Reporter)

Description

5 years ago
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
status-firefox14: --- → affected
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
Last Resolved: 5 years ago
status-firefox16: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 16
(Reporter)

Updated

5 years ago
status-firefox15: --- → affected
(Reporter)

Comment 2

5 years ago
(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 → ---
(Reporter)

Updated

5 years ago
status-firefox16: fixed → affected
(Reporter)

Updated

5 years ago
Crash Signature: [@ java.lang.IndexOutOfBoundsException: replace (0 ... 10) ends beyond length 0 at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java) ] [@ java.lang.IndexOutOfBoundsException: replace (0 ... 9) ends beyond length 0 at andr… → [@ java.lang.IndexOutOfBoundsException: replace (0 ... 10) ends beyond length 0 at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java) ] [@ java.lang.IndexOutOfBoundsException: replace (0 ... 9) ends beyond length 0 at andr…
Target Milestone: Firefox 16 → ---
Blocks: 772225
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).
status-firefox15: affected → fixed
status-firefox16: affected → fixed
(Reporter)

Updated

5 years ago
Depends on: 769520
Status: REOPENED → RESOLVED
Last Resolved: 5 years ago5 years ago
Resolution: --- → FIXED
(Reporter)

Comment 4

5 years ago
Reopening because of the backout of bug 769250.
Status: RESOLVED → REOPENED
status-firefox14: affected → ---
status-firefox15: fixed → ---
status-firefox16: fixed → ---
Resolution: FIXED → ---
(Reporter)

Updated

4 years ago
status-firefox16: --- → affected
status-firefox17: --- → affected
Depends on: 805162
Assignee: cpeterson → nobody
Status: REOPENED → NEW

Updated

2 years ago
Crash Signature: [@ java.lang.IndexOutOfBoundsException: replace (0 ... 10) ends beyond length 0 at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java) ] [@ java.lang.IndexOutOfBoundsException: replace (0 ... 9) ends beyond length 0 at andr… → [@ java.lang.IndexOutOfBoundsException: replace (0 ... 10) ends beyond length 0 at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java) ] [@ java.lang.IndexOutOfBoundsException: replace (0 ... 9) ends beyond length 0 at andr…
You need to log in before you can comment on or make changes to this bug.