Closed
Bug 1248459
Opened 8 years ago
Closed 8 years ago
When using "Find in page", crash in java.lang.IllegalArgumentException: invalid selection notification range
Categories
(Firefox for Android Graveyard :: Keyboards and IME, defect)
Tracking
(firefox46 fixed, firefox47 fixed)
RESOLVED
FIXED
Firefox 47
People
(Reporter: jchen, Assigned: jchen)
References
Details
(Keywords: crash)
Crash Data
Attachments
(5 files, 1 obsolete file)
4.31 KB,
patch
|
snorp
:
review+
|
Details | Diff | Splinter Review |
2.97 KB,
patch
|
masayuki
:
review+
lizzard
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
1.36 KB,
patch
|
Margaret
:
review+
|
Details | Diff | Splinter Review |
2.46 KB,
patch
|
jchen
:
review+
lizzard
:
approval-mozilla-aurora+
lizzard
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
2.52 KB,
patch
|
jchen
:
review+
|
Details | Diff | Splinter Review |
This bug was filed from the Socorro interface and is report bp-8ab2f95b-e1ec-4398-84a6-b58702160209. ============================================================= There have been several new instances of this crash recently.
Assignee | ||
Comment 1•8 years ago
|
||
In order to debug the crash, this patch turns on logging for GeckoEditable and GeckoInputConnection for nightlies, and makes us fetch more lines of logcat when submitting crash reports.
Attachment #8719560 -
Flags: review?(snorp)
Attachment #8719560 -
Flags: review?(snorp) → review+
Assignee | ||
Updated•8 years ago
|
Keywords: leave-open
Comment 3•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/431dbfca93d0
Comment 4•8 years ago
|
||
I have a 100% reproducible testcase for this on Aurora, on the RAZRi + SwiftKey: 1) Open https://wiki.mozilla.org/Modules/All 2) Press "Find In page" in the menu 3) Enter a single letter Crashes 100% of the time.
Comment 5•8 years ago
|
||
I cannot reproduce this on Nightly, only on Aurora. But, I checked and the Aurora build is from the 15th, so it should have the fix from bug 1236705 already in it.
Assignee | ||
Comment 6•8 years ago
|
||
This will fix the wiki crash. During a query selection event, fail if the selection is outside of the editor's root content. This can happen if the placeholder text in an input field is somehow selected. The placeholder is in a separate element outside of the root content.
Attachment #8721457 -
Flags: review?(masayuki)
Comment 7•8 years ago
|
||
Comment on attachment 8721457 [details] [diff] [review] Don't query out-of-bounds selection (v1) Could you add automated test with synthesizeQuerySelectedText() in EventUtils.js? I'm not sure if this is right approach.
Flags: needinfo?(nchen)
Comment 8•8 years ago
|
||
I meant that it *might* be better to return [0-0] as the result.
Assignee | ||
Comment 9•8 years ago
|
||
Attachment #8723386 -
Flags: review?(masayuki)
Assignee | ||
Comment 10•8 years ago
|
||
(In reply to Masayuki Nakano [:masayuki] (Mozilla Japan) from comment #8) > I meant that it *might* be better to return [0-0] as the result. Perhaps. I think it's better to return failure because this is an edge case that should not happen normally.
Flags: needinfo?(nchen)
Assignee | ||
Comment 11•8 years ago
|
||
The other half of the equation: the finder component has a quirk that the first time it searches for a string it may find text that's normally not included in the search result (e.g. the placeholder text in an input element). I think rather than fixing the quirk, which seems risky, it's better to work around it by performing a fake dummy search when first showing the find bar. On desktop, we also (I think unintentionally) perform a dummy search when the find bar first appears.
Attachment #8723387 -
Flags: review?(margaret.leibovic)
Updated•8 years ago
|
Attachment #8723386 -
Flags: review?(masayuki) → review+
Updated•8 years ago
|
Attachment #8721457 -
Flags: review?(masayuki) → review+
Updated•8 years ago
|
Attachment #8723387 -
Flags: review?(margaret.leibovic) → review+
Comment 12•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/6aeedf17f577 https://hg.mozilla.org/integration/mozilla-inbound/rev/62d7f81e434a https://hg.mozilla.org/integration/mozilla-inbound/rev/3271fbe16bbb
Backed out the first two patches for mochitest-chrome-3 failures: https://treeherder.mozilla.org/logviewer.html#?job_id=22524656&repo=mozilla-inbound#L22259 https://hg.mozilla.org/integration/mozilla-inbound/rev/53003fb5d81a
Flags: needinfo?(nchen)
Assignee | ||
Comment 14•8 years ago
|
||
Added a fix in test_imestate so the test passes.
Attachment #8726298 -
Flags: review+
Assignee | ||
Updated•8 years ago
|
Attachment #8721457 -
Attachment is obsolete: true
Comment 15•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/8be0c24081c6 https://hg.mozilla.org/integration/mozilla-inbound/rev/9993092fc9c8
Assignee | ||
Updated•8 years ago
|
Flags: needinfo?(nchen)
Comment 16•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/8be0c24081c6 https://hg.mozilla.org/mozilla-central/rev/9993092fc9c8
Assignee | ||
Comment 17•8 years ago
|
||
Comment on attachment 8726298 [details] [diff] [review] Don't query out-of-bounds selection (v1.1) Uplift request for just this patch. Approval Request Comment [Feature/regressing bug #]: N/A [User impact if declined]: Random crashes when inputting text. [Describe test coverage new/current, TreeHerder]: New testcase added. [Risks and why]: Very small; the fix should have minimal impact. [String/UUID change made/needed]: None
Attachment #8726298 -
Flags: approval-mozilla-aurora?
Comment 18•8 years ago
|
||
Comment on attachment 8726298 [details] [diff] [review] Don't query out-of-bounds selection (v1.1) Android crash fix, please uplift to aurora. This should make it into the beta 1 build on Monday.
Attachment #8726298 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 20•8 years ago
|
||
I can still reproduce a crash in today's Nightly that links to this bug: bp-1bfb2476-44bf-48c1-954f-ca4e22160306 STR: 1. open a Github project site, issues or pull requests tab: https://github.com/mozilla/MozStumbler/issues 2. scroll to the bottom and choose "Desktop version" 3. click "Author" filter 4. input character or text into "Filter users" input 5. tapping enter on the keyboard crashes Fennec Nexus 4 running latest stock Android
Assignee | ||
Comment 21•8 years ago
|
||
(In reply to Liz Henry (:lizzard) (needinfo? me) from comment #19) > Jim, both patches should uplift, right? Attachment 8726298 [details] [diff] and the testcase in attachment 8723386 [details] [diff] [review].
Flags: needinfo?(nchen)
Comment 22•8 years ago
|
||
Comment on attachment 8723386 [details] [diff] [review] Add a test for querying out-of-bounds selection (v1) This should land in beta 46 - no rush as it is just a testcase, it can go into beta 2.
Attachment #8723386 -
Flags: approval-mozilla-beta+
Assignee | ||
Comment 23•8 years ago
|
||
(In reply to Christian Ascheberg from comment #20) > I can still reproduce a crash in today's Nightly that links to this bug: > bp-1bfb2476-44bf-48c1-954f-ca4e22160306 Thanks Christian! I'll make a separate bug for that cause of the crash.
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox46:
--- → affected
status-firefox47:
--- → fixed
Keywords: leave-open
Hardware: Unspecified → All
Resolution: --- → FIXED
Summary: crash in java.lang.IllegalArgumentException: invalid selection notification range at org.mozilla.gecko.GeckoEditable.onSelectionChange(GeckoEditable.java) → When using "Find in page", crash in java.lang.IllegalArgumentException: invalid selection notification range
Target Milestone: --- → Firefox 47
Comment 24•8 years ago
|
||
(In reply to Liz Henry (:lizzard) (needinfo? me) from comment #18) > Comment on attachment 8726298 [details] [diff] [review] > Don't query out-of-bounds selection (v1.1) > > Android crash fix, please uplift to aurora. > This should make it into the beta 1 build on Monday. liz so this has beta approval too (since it only has aurora approval so far ?
Flags: needinfo?(lhenry)
Comment 25•8 years ago
|
||
tomcat I thought it landed before the merge early on Monday. looks like it didn't. So, yes in beta 46 please !
Flags: needinfo?(lhenry)
Comment 26•8 years ago
|
||
Comment on attachment 8726298 [details] [diff] [review] Don't query out-of-bounds selection (v1.1) This should be on 46, looks like it may have missed the merge.
Attachment #8726298 -
Flags: approval-mozilla-beta+
Comment 27•8 years ago
|
||
bugherder uplift |
https://hg.mozilla.org/releases/mozilla-beta/rev/76bb8e1cef63 https://hg.mozilla.org/releases/mozilla-beta/rev/a00dbc1e2184
Assignee | ||
Comment 28•8 years ago
|
||
Turn off diagnostic logging because this bug has been fixed.
Attachment #8739154 -
Flags: review+
Comment 30•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/d668b4c53f69
Updated•3 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
•