Closed
Bug 767791
Opened 13 years ago
Closed 6 years ago
java.lang.IndexOutOfBoundsException: getChars (0 ... <n>) ends beyond length 0 at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java) at org.mozilla.gecko.GeckoInputConnection.getExtractedText
Categories
(Firefox for Android Graveyard :: Keyboards and IME, defect, P2)
Tracking
(blocking-fennec1.0 -)
RESOLVED
WONTFIX
Tracking | Status | |
---|---|---|
blocking-fennec1.0 | --- | - |
People
(Reporter: scoobidiver, Unassigned)
References
Details
(Keywords: crash, Whiteboard: [native-crash])
Crash Data
Attachments
(2 files)
4.50 KB,
patch
|
blassey
:
review+
|
Details | Diff | Splinter Review |
3.20 KB,
patch
|
blassey
:
review+
|
Details | Diff | Splinter Review |
This bug was filed from the Socorro interface and is
report bp-883d1a79-4730-4c4b-a9a7-6b4e02120624 .
=============================================================
java.lang.IndexOutOfBoundsException: getChars (0 ... 9309) ends beyond length 0
at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java:945)
at android.text.SpannableStringBuilder.getChars(SpannableStringBuilder.java:839)
at android.text.SpannableStringBuilder.toString(SpannableStringBuilder.java:862)
at org.mozilla.gecko.GeckoInputConnection.getExtractedText(GeckoInputConnection.java:230)
at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:266)
at com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:77)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4424)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)
More reports at:
https://crash-stats.mozilla.com/query/query?product=FennecAndroid&version=FennecAndroid%3A16.0a1&query_search=signature&query_type=contains&query=android.text.SpannableStringBuilder.checkRange&do_query=1
Updated•13 years ago
|
Assignee: nobody → cpeterson
Status: NEW → ASSIGNED
blocking-fennec1.0: --- → ?
status-firefox16:
--- → affected
Target Milestone: --- → Firefox 16
Comment 1•13 years ago
|
||
Part 1: Do not call Editable.toString() if Editable has no text.
This is an Android bug. Editable.toString() may randomly crash because SpannableStringBuilder.getChars() does not account for its mGapLength when checking its [start, end) copy range. This seems to happen most often when length is 0 and the end index is very large.
Attachment #636786 -
Flags: review?(blassey.bugs)
Comment 2•13 years ago
|
||
Part 2: Selection ranges exclude end index, so write [a,b), not (a,b].
This patch just fixes some typos in comments and log messages.
Attachment #636787 -
Flags: review?(blassey.bugs)
Updated•13 years ago
|
Attachment #636786 -
Flags: review?(blassey.bugs) → review+
Updated•13 years ago
|
Attachment #636787 -
Flags: review?(blassey.bugs) → review+
Updated•12 years ago
|
blocking-fennec1.0: ? → -
Comment 3•12 years ago
|
||
* part 1 may not be necessary after bug 769520 lands.
* part 2 landed: https://hg.mozilla.org/integration/mozilla-inbound/rev/301d38e920a0
Whiteboard: [native-crash] → [native-crash], [leave open]
Comment 4•12 years ago
|
||
Comment 5•12 years ago
|
||
I believe my fix for bug 769520 will fix these IndexOutOfBoundsExceptions, but I will watch Socorro topcrashes for a few days before resolving this bug.
Updated•12 years ago
|
Priority: -- → P2
Comment 6•12 years ago
|
||
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:
--- → fixed
Updated•12 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [native-crash], [leave open] → [native-crash]
Reporter | ||
Comment 7•12 years ago
|
||
It happens after the backout of bug 769520: bp-e1d3866d-b87f-49c4-9797-ec85f2120906.
Status: RESOLVED → REOPENED
status-firefox17:
--- → fixed
status-firefox18:
--- → affected
Resolution: FIXED → ---
Reporter | ||
Updated•12 years ago
|
status-firefox15:
fixed → ---
status-firefox16:
fixed → ---
status-firefox17:
fixed → ---
status-firefox18:
affected → ---
Target Milestone: Firefox 16 → ---
Updated•11 years ago
|
Assignee: cpeterson → nobody
Status: REOPENED → NEW
Updated•9 years ago
|
Crash Signature: android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java) ] → android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java) ]
[@ java.lang.IndexOutOfBoundsException: getChars ends beyond length 0 at android.text.SpannableStringBuilder.checkRange]
Comment 8•6 years ago
|
||
Closing because no crash reported since 12 weeks.
Status: NEW → RESOLVED
Closed: 12 years ago → 6 years ago
Resolution: --- → WONTFIX
Comment 9•6 years ago
|
||
Closing because no crash reported since 12 weeks.
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•