Closed Bug 800498 Opened 14 years ago Closed 13 years ago

crash in mozilla::widget::TaskbarPreview::MainWindowHook

Categories

(Core :: Widget: Win32, defect)

x86
Windows 7
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla19
Tracking Status
firefox17 --- wontfix
firefox18 --- verified
firefox19 --- verified
firefox-esr17 18+ verified

People

(Reporter: mkaply, Assigned: mkaply)

References

Details

(Keywords: crash)

Crash Data

Attachments

(1 file)

We were looking into reenabling this feature and we ran into this crash again in a different part of the code. See: https://crash-stats.mozilla.com/report/index/db14682a-8cbb-4693-b373-a1ccd2121011
Blocks: 744992
Well same part of code. It appears that preview is null now.
Severity: normal → critical
Crash Signature: @ mozilla::widget::TaskbarPreview::MainWindowHook(void*, HWND__*, unsigned int, unsigned int, long, long*)]
Keywords: crash
Hardware: x86_64 → x86
Can someone who understands this code: http://mxr.mozilla.org/mozilla-central/source/widget/windows/WindowHook.cpp#120 Tell me where context actually comes from? Or cb for that matter? The crash here is that context is null. I'm trying to figure out where it comes from, but I have no idea how these window hooks work...
OK I got this crash bp-4342c47f-d8c2-4742-b0b1-dca5c2121016 looking at a youtube video using flash plugin.
So to provide a little more detail from the extension end. The actual call that is causing the crash is: let controller = gTaskbarService.getOverlayIconController(docshell); We obtained the docshell like this: let docshell = window.QueryInterface(Ci.nsIInterfaceRequestor) .getInterface(Ci.nsIWebNavigation).QueryInterface(Ci.nsIDocShellTreeItem) .treeOwner.QueryInterface(Ci.nsIInterfaceRequestor) .getInterface(Ci.nsIXULWindow).docShell; and I've verified it is a valid docshell. The window is coming from our front end code. We copied our code from here: https://github.com/sid0/overlay-extension/blob/master/bootstrap.js
Attached patch Wallpaper patch — — Splinter Review
So after much failure, I can't recreate this crash at all on builds I build myself. Release builds always crash. Someone suggests PGO, but I've tested PGO and non PGO and both failure. Any changes to our code workaround the problem implying it's a timing issue. So my suggestion (unfortunately) is to wallpaper around the crash.
Attachment #677003 - Flags: review?
Attachment #677003 - Flags: review? → review?(scoobidiver)
You should ask to someone else for reviewing the patch. I know nothing about the Firefox code.
Attachment #677003 - Flags: review?(scoobidiver) → review?(jmathies)
Comment on attachment 677003 [details] [diff] [review] Wallpaper patch shouldn't be any harm in this since I assume aContext is not expected to be null.
Attachment #677003 - Flags: review?(jmathies) → review+
Assignee: nobody → mozilla
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
Comment on attachment 677003 [details] [diff] [review] Wallpaper patch I know this is a longshot, but I'd like to try to get this on Firefox 17. This crash is random and is preventing turning on a particular feature for web.de (task bar icon). If it doesn't go into FF 17, we'll end up having to leave the feature turned off because we want to support the FF 17 ESR. This is incredibly low risk - just a null check.
Attachment #677003 - Flags: approval-mozilla-beta?
Attachment #677003 - Flags: approval-mozilla-aurora?
Comment on attachment 677003 [details] [diff] [review] Wallpaper patch Instead of taking this untracked issue for 17 at the final hour, I'm more comfortable uplifting it to the first dot release of ESR (17.0.1esr) that ships with 18 and will mark the flags as such.
Attachment #677003 - Flags: approval-mozilla-beta?
Attachment #677003 - Flags: approval-mozilla-beta-
Attachment #677003 - Flags: approval-mozilla-aurora?
Attachment #677003 - Flags: approval-mozilla-aurora+
As mentioned in comment 10 - we will take an uplift of this to ESR17 (it's now 17.0.2 because of chemspill during 17 release). Please nominate for approval-mozilla-esr17 asap to get this into the build that ships with the 18 release.
Comment on attachment 677003 [details] [diff] [review] Wallpaper patch [Approval Request Comment] If this is not a sec:{high,crit} bug, please state case for ESR consideration: User impact if declined: Fix Landed on Version: Risk to taking this patch (and alternatives if risky): String or UUID changes made by this patch: See https://wiki.mozilla.org/Release_Management/ESR_Landing_Process for more info.
Attachment #677003 - Flags: approval-mozilla-esr17?
Attachment #677003 - Flags: approval-mozilla-esr17? → approval-mozilla-esr17+
Ioana, this is not a verification, because we have removed the feature from the addon that triggered the bug. We would like *certainty* that the bug is gone, in order to re-enable the feature, but currently, we can't.
Status: VERIFIED → RESOLVED
Closed: 14 years ago → 13 years ago
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: