Closed
Bug 937274
Opened 11 years ago
Closed 11 years ago
Crash in GestureEventListener::HandlePinchGestureEvent(), line 260
Categories
(Core :: Panning and Zooming, defect)
Tracking
()
RESOLVED
FIXED
mozilla28
People
(Reporter: botond, Assigned: botond)
Details
Attachments
(1 file, 1 obsolete file)
4.98 KB,
patch
|
botond
:
review+
|
Details | Diff | Splinter Review |
This shows up in recent m-c.
STR:
1. Run B2G browser, load a page.
2. Zoom in and out a few times. The crash reproduces intermittently, but fairly frequently.
Some debugging reveals that the GestureEventListener sees a MULTITOUCH_END, clears mTouches in HandleInputEvent(), and then calls HandlePinchGestureEvent() in the last line of HandleInputEvent(), which expects mTouches to be nonempty.
Assignee | ||
Comment 1•11 years ago
|
||
Investigating this bug led me to discover a related issue with PINCHGESTURE_END events, for which I filed bug 937343. I think I can fix this bug independently of that one.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → botond
Assignee | ||
Comment 2•11 years ago
|
||
In addition to fixing the crash, this patch actually fixes the issue in bug 937343, though not in the nicest way (we still store a value that's a touch point in a field called mFocusPoint).
Try push: https://tbpl.mozilla.org/?tree=Try&rev=cc2def03af9d
Attachment #830475 -
Flags: review?(bugmail.mozilla)
Comment 3•11 years ago
|
||
Comment on attachment 830475 [details] [diff] [review]
bug937274.patch
Review of attachment 830475 [details] [diff] [review]:
-----------------------------------------------------------------
Presumably you'll put in a patch in bug 937343 that removes the bad use of focus point and kicks off a MULTITOUCH_START instead?
Also the ApzcPinch function in TestAsyncPanZoomController.cpp should probably be updated to have -1 on the spans although leaving them as-is won't cause the test to fail or anything.
Attachment #830475 -
Flags: review?(bugmail.mozilla) → review+
Assignee | ||
Comment 4•11 years ago
|
||
(In reply to Kartikaya Gupta (email:kats@mozilla.com) from comment #3)
> Comment on attachment 830475 [details] [diff] [review]
> bug937274.patch
>
> Review of attachment 830475 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> Presumably you'll put in a patch in bug 937343 that removes the bad use of
> focus point and kicks off a MULTITOUCH_START instead?
Yeah, unless someone has a better suggestion.
> Also the ApzcPinch function in TestAsyncPanZoomController.cpp should
> probably be updated to have -1 on the spans although leaving them as-is
> won't cause the test to fail or anything.
Good catch, I will do that.
Assignee | ||
Comment 5•11 years ago
|
||
Updated TestAsyncPanZoomController as per Kats' suggestion. Carrying r+.
Attachment #830913 -
Flags: review+
Assignee | ||
Updated•11 years ago
|
Attachment #830475 -
Attachment is obsolete: true
Assignee | ||
Comment 6•11 years ago
|
||
(In reply to Botond Ballo [:botond] from comment #2)
> Try push: https://tbpl.mozilla.org/?tree=Try&rev=cc2def03af9d
Looks clean.
https://hg.mozilla.org/integration/mozilla-inbound/rev/548b80dc1998
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
You need to log in
before you can comment on or make changes to this bug.
Description
•