Closed Bug 720092 Opened 9 years ago Closed 9 years ago

java.lang.IndexOutOfBoundsException: getChars (0 ... 88168) ends beyond length 0

Categories

(Firefox for Android :: General, defect, P1)

ARM
Android
defect

Tracking

()

RESOLVED FIXED
Firefox 12
Tracking Status
firefox11 --- fixed
firefox12 --- fixed
fennec 11+ ---

People

(Reporter: mfinkle, Assigned: dougt)

References

Details

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

Crash Data

Attachments

(1 file)

This is one of the types of TouchMemory errors.

java.lang.IndexOutOfBoundsException: getChars (0 ... 88168) ends beyond length 0
	at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java:943)
	at android.text.SpannableStringBuilder.getChars(SpannableStringBuilder.java:847)
	at android.text.SpannableStringBuilder.toString(SpannableStringBuilder.java:869)
	at org.mozilla.gecko.GeckoInputConnection.getExtractedText(GeckoInputConnection.java:201)
	at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:318)
	at com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:86)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:150)
	at org.mozilla.gecko.GeckoApp$31.run(GeckoApp.java:1547)
Blocks: 719373
Severity: normal → critical
Crash Signature: [@ TouchBadMemory]
Keywords: crash
OS: Windows 7 → Android
Hardware: x86_64 → ARM
Whiteboard: [native-crash]
alex, dupe as appropriate
Assignee: nobody → alexp
tracking-fennec: --- → 11+
Priority: -- → P1
Duplicate of this bug: 717932
Duplicate of this bug: 720085
As mentioned in the bug 720085, the following issue might be related
http://code.google.com/p/android/issues/detail?id=5164
Crash Signature: [@ TouchBadMemory] → [@ TouchBadMemory] [@ mozalloc_abort | dexDataMapAlloc]
Depends on: 722044
Attached patch patch v.1Splinter Review
Assignee: alexp → doug.turner
Attachment #593128 - Flags: review?(alexp)
Attachment #593128 - Flags: review?(alexp) → review+
https://hg.mozilla.org/mozilla-central/rev/bbc7014db2de
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Comment on attachment 593128 [details] [diff] [review]
patch v.1

[Triage Comment]
simple try-catch to catch the condition and not crash
Attachment #593128 - Flags: approval-mozilla-beta+
Attachment #593128 - Flags: approval-mozilla-aurora+
It landed just before 12.0 becomes Aurora: http://hg.mozilla.org/mozilla-central/rev/801015738a12.
An Aurora approval means it will land twice in 12.0.
Target Milestone: --- → Firefox 12
Duplicate of this bug: 724425
No longer depends on: 722044
No longer blocks: 719373
Crash Signature: [@ TouchBadMemory] [@ mozalloc_abort | dexDataMapAlloc] → [@ java.lang.IndexOutOfBoundsException: getChars (0 ... 88168) ends beyond length 0 at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java)]
You need to log in before you can comment on or make changes to this bug.