Closed Bug 353716 Opened 18 years ago Closed 17 years ago

crash on quit [@ nsMacEventHandler::HandleMouseMoveEvent] or [@ nsMacEventHandler::ConvertOSEventToMouseEvent]

Categories

(Core Graveyard :: Widget: Mac, defect)

x86
macOS
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: moco, Assigned: mark)

References

()

Details

(Keywords: crash, fixed1.8.1.4)

Crash Data

Attachments

(5 files)

crash on quit [@nsMacEventHandler::HandleMouseMoveEvent]

this was with my debug, mac os x, trunk build

Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.9a1) Gecko/20060921 Minefield/3.0a1

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x4a7400a2

0x158e9ff1 in nsMacEventHandler::HandleMouseMoveEvent (this=0x34128680, aOSEvent=@0xbfffee10) at /Users/sspitzer/Desktop/trunk/mozilla/widget/src/mac/nsMacEventHandler.cpp:1679
1679              lastWidgetPointed->GetBounds(bounds);
(gdb) print lastWidgetPointed
$1 = (nsWindow *) 0x20000
(gdb) where

I'll attach the full stack.

so far, I haven't been able to reproduce it.
Reproducible?
> Reproducible?

sorry mark, not yet.  :(
Assignee: nobody → joshmoz
Severity: normal → critical
Component: General → Widget: Mac
Keywords: crash
Product: Firefox → Core
QA Contact: general → mac
Summary: crash on quit [@nsMacEventHandler::HandleMouseMoveEvent] → crash on quit [@ nsMacEventHandler::HandleMouseMoveEvent]
josh / mark, does that second crash report look like a different issue, or the the same as my stack attached as comment #1?  (The top of the stack looks similar).
A user (quix) reported this stack trace, which seems similar to the ones on this bug. This was with Firefox 2; he didn't know what the trigger was, but had been switching back to the app when it crashed.
*** Bug 360047 has been marked as a duplicate of this bug. ***
Possibly related: bug 368907 which describes a nsMacEventHandler::HandleMouseMoveEvent crash on window close.
This is a pretty popular crash on Mac with over 100 crashes thus far for Fx 2.0.0.2. Most of the comments in talkback indicate it's happening either when closing a window (as bug 368907 mentions) or on quit, most usually when doing a restart of Firefox for an extension install or update. Looking through a good portion of the crashes in the query below, I didn't see any on 10.3, but that could just be a consequence of most people on 10.4 by now. It's pretty universal across all minor releases of 10.4, however.

Talkback query: http://tinyurl.com/yukrtp
Blocks: 368907
Blocks: 376012
Fairly reliable testcase:

From a browser window, get the location bar autocomplete popup to show by starting to type something autocompletable (like "m") in the location bar.  With the popup displayed, begin moving the mouse cursor (within the window?).  With the popup displayed and the cursor moving, press command-W to close the window.
widget/src/mac/nsMacEventHandler.cpp:
1640   WindowRef wind = reinterpret_cast<WindowRef>(mTopLevelWidget->GetNativeData(NS_NATIVE_DISPLAY));
Caused by a conjunction of bug 344238 and bug 344570 (10.4-only after bug 345388).  A description is in the patch to follow.  The patch will fix this bug, and bug 368907.  I don't know about bug 376012.
Assignee: joshmoz → mark
Blocks: 344238, 344570
Attached patch FixSplinter Review
Attachment #260243 - Flags: review?(joshmoz)
Summary: crash on quit [@ nsMacEventHandler::HandleMouseMoveEvent] → crash on quit [@ nsMacEventHandler::HandleMouseMoveEvent] or [@ nsMacEventHandler::ConvertOSEventToMouseEvent]
Attachment #260243 - Flags: review?(joshmoz) → review+
Attachment #260243 - Flags: superreview?(vladimir)
Attachment #260243 - Flags: superreview?(vladimir) → superreview+
Comment on attachment 260243 [details] [diff] [review]
Fix

1.8.1-only, this is a Mac topcrasher.
Attachment #260243 - Flags: approval1.8.1.4?
Comment on attachment 260243 [details] [diff] [review]
Fix

approved for 1.8.1.4, a=dveditz for release-drivers
Attachment #260243 - Flags: approval1.8.1.4? → approval1.8.1.4+
Checked in on MOZILLA_1_8_BRANCH.
Status: NEW → RESOLVED
Closed: 17 years ago
Keywords: fixed1.8.1.4
Resolution: --- → FIXED
Product: Core → Core Graveyard
Crash Signature: [@ nsMacEventHandler::HandleMouseMoveEvent] [@ nsMacEventHandler::ConvertOSEventToMouseEvent]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: