Closed Bug 937274 Opened 11 years ago Closed 11 years ago

Crash in GestureEventListener::HandlePinchGestureEvent(), line 260

Categories

(Core :: Panning and Zooming, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla28

People

(Reporter: botond, Assigned: botond)

Details

Attachments

(1 file, 1 obsolete file)

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.
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: nobody → botond
Attached patch bug937274.patch (obsolete) — Splinter Review
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 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+
(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.
Attached patch bug937274.patchSplinter Review
Updated TestAsyncPanZoomController as per Kats' suggestion. Carrying r+.
Attachment #830913 - Flags: review+
Attachment #830475 - Attachment is obsolete: true
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.

Attachment

General

Created:
Updated:
Size: