Closed
Bug 821979
Opened 12 years ago
Closed 12 years ago
java.lang.IllegalArgumentException: invalid selection offsets at org.mozilla.gecko.GeckoEditable$Action.newSetSelection(GeckoEditable.java)
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox20 fixed)
RESOLVED
FIXED
Firefox 20
Tracking | Status | |
---|---|---|
firefox20 | --- | fixed |
People
(Reporter: scoobidiver, Assigned: jchen)
References
Details
(Keywords: crash, Whiteboard: [native-crash])
Crash Data
Attachments
(1 file)
1.21 KB,
patch
|
blassey
:
review+
|
Details | Diff | Splinter Review |
There's one crash in 20.0a1/20121214 after the fix of bug 814886: bp-90848fc8-ebcc-424f-9c64-a9ab42121215.
java.lang.IllegalArgumentException: invalid selection offsets
at org.mozilla.gecko.GeckoEditable$Action.newSetSelection(GeckoEditable.java:138)
at org.mozilla.gecko.GeckoEditable.setSpan(GeckoEditable.java:764)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at org.mozilla.gecko.GeckoEditable.invoke(GeckoEditable.java:719)
at $Proxy0.setSpan(Native Method)
at android.text.Selection.setSelection(Selection.java:78)
at android.view.inputmethod.BaseInputConnection.setSelection(BaseInputConnection.java:487)
at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:288)
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:4447)
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/report/list?signature=java.lang.IllegalArgumentException%3A+invalid+selection+offsets+at+org.mozilla.gecko.GeckoEditable%24Action.newSetSelection%28GeckoEditable.java%29
Assignee | ||
Comment 1•12 years ago
|
||
Asking Brad to review since I'm already asking Chris to review a couple other patches
This is a speculative fix. I could not reproduce and the stack is not helpful, but I think the fact that we specify -1 as the initial selection offsets is causing some IMEs to calculate wrong selection offsets (even though -1 is a valid value according to the docs). This patch makes it return the actual selection offsets so hopefully this crash will no longer appear.
Attachment #694109 -
Flags: review?(blassey.bugs)
Updated•12 years ago
|
Attachment #694109 -
Flags: review?(blassey.bugs) → review+
Assignee | ||
Comment 2•12 years ago
|
||
Assignee: nobody → nchen
Status: NEW → ASSIGNED
Flags: in-testsuite-
Comment 3•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 20
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
•