Closed
Bug 1149761
Opened 10 years ago
Closed 10 years ago
Users reporting crash in gfxWindowsPlatform::InitD3D11Devices() after updating to Firefox 37
Categories
(Core :: Graphics, defect)
Tracking
()
People
(Reporter: philipp, Assigned: jrmuizel)
References
Details
(Keywords: crash, Whiteboard: gfx-noted)
Crash Data
Attachments
(2 files, 1 obsolete file)
(deleted),
patch
|
lmandel
:
approval-mozilla-aurora+
lmandel
:
approval-mozilla-beta+
lmandel
:
approval-mozilla-release+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
Details | Diff | Splinter Review |
This bug was filed from the Socorro interface and is
report bp-5c60f961-b644-4ad2-a32c-9810d2150331.
=============================================================
this seems to be a new startup crash and a regression in firefox 37 - numerous comments mention that it happened immediately after updating.
as per feedback of this sumo user the crash happens when you attempt to run firefox in safe mode as well: https://support.mozilla.org/en-US/questions/1054989
Comment 1•10 years ago
|
||
[Tracking Requested - why for this release]:
I'm nominating this just so it shows up on the radar of release management, in case this ends up being a larger issue.
tracking-firefox37:
--- → ?
Updated•10 years ago
|
Whiteboard: gfx-noted
Reporter | ||
Comment 2•10 years ago
|
||
a helpful user has narrowed it down to this regression range: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=8f6965ca&tochange=a4b4cd74
Comment 3•10 years ago
|
||
Lawrence, we may want to throttle while we're figuring this one out?
Flags: needinfo?(lmandel)
Flags: needinfo?(jmuizelaar)
Flags: needinfo?(bas)
Comment 4•10 years ago
|
||
Bas, this is "we failed to initialize D3D11 WARP device" where we call MOZ_CRASH.
Reporter | ||
Updated•10 years ago
|
Blocks: 1102499
Flags: needinfo?(lmandel)
Flags: needinfo?(jmuizelaar)
Flags: needinfo?(bas)
Flags: needinfo?
Assignee | ||
Comment 5•10 years ago
|
||
Flags: needinfo?
Attachment #8586405 -
Flags: review?(bas)
Assignee | ||
Comment 6•10 years ago
|
||
Comment 7•10 years ago
|
||
What's the "rank" of this crash? How common is it?
Reporter | ||
Comment 8•10 years ago
|
||
sorry about clearing the need info flags before (this may have been a bug in the BMO experimental modular interface). re-adding...
Flags: needinfo?(lmandel)
Flags: needinfo?(bas)
Comment 9•10 years ago
|
||
This is almost certainly caused by the stardock malware intercepting Windows DLLs and messing with the calls. I wonder if this is fixed by blacklisting the wblind and wbload DLLs. But for now we should take Jeff's patch.
Updated•10 years ago
|
Attachment #8586405 -
Flags: review?(bas) → review+
Comment 10•10 years ago
|
||
(In reply to Milan Sreckovic [:milan] from comment #7)
> What's the "rank" of this crash? How common is it?
Winthin the firs 24-48 hours, we do not have much in terms of ranks or anything, but early 37.0 release data suggests this is the #3 crash right now, with #1 being another gfx startup issue in bug 1137716, which actually was supposed to be fixed in 37 but still appears at the top with 12% of all crashes.
Comment 11•10 years ago
|
||
See https://crash-stats.mozilla.com/search/?product=Firefox&version=37.0&release_channel=release&process_type=browser&process_type=content&_facets=signature&_columns=date&_columns=signature&_columns=product&_columns=version&_columns=build_id&_columns=platform#facet-signature for a current search on 37.0 release crashes.
Updated•10 years ago
|
status-firefox37:
--- → affected
status-firefox38:
--- → affected
status-firefox39:
--- → affected
status-firefox40:
--- → affected
Flags: needinfo?(lmandel)
Updated•10 years ago
|
Assignee | ||
Comment 12•10 years ago
|
||
I installed Stardock window blinds on my machine and 37 causes the whole machine to hang and require a reboot. It would be interesting to see what happens for other people when window blinds is installed.
Comment 13•10 years ago
|
||
Assignee: nobody → jmuizelaar
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
Assignee | ||
Comment 14•10 years ago
|
||
Comment on attachment 8586405 [details] [diff] [review]
An emergency solution to avoid crashing
Approval Request Comment
[Feature/regressing bug #]: WARP (37)
[User impact if declined]: Startup crashes
[Risks and why]: We should not MOZ_CRASH on startup, cause that's bad.
Attachment #8586405 -
Flags: approval-mozilla-release?
Attachment #8586405 -
Flags: approval-mozilla-beta?
Attachment #8586405 -
Flags: approval-mozilla-aurora?
Assignee | ||
Comment 15•10 years ago
|
||
I tried a build that should've included this fix on the machine that can reproduce it and it didn't seem to help. I wasn't able to get crash symbols so I'm not sure where the crash moved to.
Assignee | ||
Updated•10 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Updated•10 years ago
|
Comment 16•10 years ago
|
||
The "infected" machine runs 36 fine?
Assignee | ||
Comment 17•10 years ago
|
||
(In reply to Milan Sreckovic [:milan] from comment #16)
> The "infected" machine runs 36 fine?
I believe so yes. My desktop (the machine that hangs) certainly ran 36 fine, I'm not as sure about that laptop that reproduces the issue.
Comment 18•10 years ago
|
||
What about nightly? I installed this stuff on my desktop, nightly seems to start fine.
Comment 19•10 years ago
|
||
I take that last comment back; managed to get it to crash.
Comment 20•10 years ago
|
||
Possible workaround for the people that are stuck with this - perhaps post in sumo - if they do have windowblinds, and they switch back to Windows Aero theme, the crash should go away. Well, at least it does for me. Fails with others, but not with Aero.
Comment 21•10 years ago
|
||
Comment on attachment 8586405 [details] [diff] [review]
An emergency solution to avoid crashing
Review of attachment 8586405 [details] [diff] [review]:
-----------------------------------------------------------------
With this change, I don't crash on startup.
::: gfx/thebes/gfxWindowsPlatform.cpp
@@ +1972,5 @@
>
> if (FAILED(hr)) {
> // This should always succeed... in theory.
> gfxCriticalError() << "Failed to initialize WARP D3D11 device!" << hr;
> + } else {
I would just replace MOZ_CRASH with return instead (in the original code.) I'm not sure it's safe to continue.
Comment 22•10 years ago
|
||
(In reply to Milan Sreckovic [:milan] from comment #21)
>
> With this change, I don't crash on startup.
I'm not sure I like where I end up, there are some artifacts (close, minimize, maximize buttons don't show up), but it doesn't crash. I don't know how much of the problem is due to windowblinds changing the "substyle".
Comment 23•10 years ago
|
||
Since the regression is about a Windows specific bug, why the automatic update for Firefox/Thunderbird is also disabled for Linux & Mac?
Comment 24•10 years ago
|
||
(In reply to Jeff Muizelaar [:jrmuizel] from comment #12)
> I installed Stardock window blinds on my machine and 37 causes the whole
> machine to hang and require a reboot. It would be interesting to see what
> happens for other people when window blinds is installed.
I was able to easily reproduce the startup crash with Firefox 37.0 and Firefox 40 Nightly, on Windows 7 x64, Windows 8 x64 and Windows 8.1 x64, using the following scenario:
1. Download and install Windowblinds (http://www.stardock.com/products/windowblinds/).
2. Start Window Blinds and apply a custom style (e.g. Lantana).
3. Attempt to start Firefox.
Results: Firefox crashes before even showing the Profile Manager window (if set to show it). I tried this on two separate machines, and never did Windows freeze... I just got the crash.
(In reply to Milan Sreckovic [:milan] from comment #20)
> Possible workaround for the people that are stuck with this - perhaps post
> in sumo - if they do have windowblinds, and they switch back to Windows Aero
> theme, the crash should go away. Well, at least it does for me. Fails with
> others, but not with Aero.
Switching to Aero seems to indeed work around this issue on Windows 7, but doesn't seem to work on Windows 8 or 8.1 (I had to uninstall WindowBlinds here to get Firefox to start again).
Assignee | ||
Comment 25•10 years ago
|
||
Here's what's going wrong in the Window Blinds case.
Window Blinds hooks D3D11CreateDevice, the hook (in wbload.dll) then calls GetModuleHandle("FIREFOX.EXE") and if this returns a valid handle, Window Blinds immediately returns failure from D3D11CreateDevice and we proceed to MOZ_CRASH.
Comment 26•10 years ago
|
||
Florin, if you rename firefox.exe to something else, does the crash go away?
Flags: needinfo?(florin.mezei)
Comment 27•10 years ago
|
||
(In reply to Milan Sreckovic [:milan] from comment #26)
> Florin, if you rename firefox.exe to something else, does the crash go away?
Yes, renaming to something else like test.exe will start Firefox without crashing.
Flags: needinfo?(florin.mezei)
Comment 28•10 years ago
|
||
(In reply to Florin Mezei, QA (:FlorinMezei) from comment #27)
> (In reply to Milan Sreckovic [:milan] from comment #26)
> > Florin, if you rename firefox.exe to something else, does the crash go away?
>
> Yes, renaming to something else like test.exe will start Firefox without
> crashing.
Thanks. Not a good workaround in general, there is other code (not written by us, things like driver workarounds and such) that depend on this name, but good to know. :lmandel is reaching out to Stardock.
Comment 29•10 years ago
|
||
Note that while Firefox starts without crashing, it does have some visual issues with different theme applied (missing titlebar) - see https://bugzilla.mozilla.org/attachment.cgi?id=8587404. Google Chrome has the same visual issues if that matters in any way.
Comment 30•10 years ago
|
||
:kairo, can you check if we have a 100% correlation between user having WindowBlinds (wbload.dll exists?) and crashes? Or is there a better way to test if WindowBlinds is installed?
Flags: needinfo?(kairo)
Comment 31•10 years ago
|
||
Bas will land the modified patch (comment 21), with implicit r+ from Jeff (over the phone) as inbound opens.
Assignee | ||
Comment 32•10 years ago
|
||
Assignee | ||
Comment 33•10 years ago
|
||
Approval Request Comment
[Feature/regressing bug #]: WARP (36)
[User impact if declined]: Many crashes
[Describe test coverage new/current, TreeHerder]: None yet
[Risks and why]: should just fall back to the path we use on Vista/XP
Attachment #8586405 -
Attachment is obsolete: true
Attachment #8586405 -
Flags: approval-mozilla-release?
Attachment #8586405 -
Flags: approval-mozilla-beta?
Attachment #8586405 -
Flags: approval-mozilla-aurora?
Attachment #8587558 -
Flags: approval-mozilla-release?
Attachment #8587558 -
Flags: approval-mozilla-beta?
Attachment #8587558 -
Flags: approval-mozilla-aurora?
Comment 34•10 years ago
|
||
Well, people at Mozilla is very busy fixing this problem, so for anyone finding an answer here, https://support.mozilla.org/en-US/questions/1055150 says OK to perform a manual update under Mac. I see machines using Ubuntu updating Firefox without problems to the latest version, so I will assume that the same is true for other Linux variants using the tarball. Many thanks to all the Mozillians for their great work.
Comment 35•10 years ago
|
||
If the patch that's asking for the approval doesn't apply because of the previous one, here's a rollup.
Flags: needinfo?(bas)
Comment 36•10 years ago
|
||
Comment on attachment 8587558 [details] [diff] [review]
Don't MOZ_CRASH if WARP fails
I reviewed this fix with Milan and Jeff. This should solve all known cases of the crash even though not all cases are definitely known. There is some risk that the fix is not complete but without any additional information our best course of action is pushing an update with this fix. We'll take this in 37.0.1 Release+ Beta+ Aurora+
Attachment #8587558 -
Flags: approval-mozilla-release?
Attachment #8587558 -
Flags: approval-mozilla-release+
Attachment #8587558 -
Flags: approval-mozilla-beta?
Attachment #8587558 -
Flags: approval-mozilla-beta+
Attachment #8587558 -
Flags: approval-mozilla-aurora?
Attachment #8587558 -
Flags: approval-mozilla-aurora+
Comment 37•10 years ago
|
||
(In reply to Milan Sreckovic [:milan] from comment #30)
> :kairo, can you check if we have a 100% correlation between user having
> WindowBlinds (wbload.dll exists?) and crashes? Or is there a better way to
> test if WindowBlinds is installed?
https://crash-stats.mozilla.com/report/list?product=Firefox&range_value=7&range_unit=days&date=2015-04-02&signature=gfxWindowsPlatform%3A%3AInitD3D11Devices%28%29&version=Firefox%3A37.0#tab-correlations says there there is not a 100% correlation, it's merely a 45% one - but 45% vs. 0% is still very strong.
Comment 38•10 years ago
|
||
Comment 39•10 years ago
|
||
Comment 40•10 years ago
|
||
Comment 41•10 years ago
|
||
2 questions.
1 - there i snothing in the ff37 changes about changes to hardware acceleration so what was ommited from the changes page that is causing this issue? as clearly you guys changed something sinc eff36.
2 - why havent you pulled the ff37 security page? you have disclosed security bugs which end users cannot patch now due to the update been pulled.
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
Resolution: --- → FIXED
Comment 43•10 years ago
|
||
I tried to encompass the 3 start-up crash bugs that we fixed in 37.0.1 in a single release note: "Fixed: Start-up crash due to graphics hardware and third party software"
relnote-firefox:
--- → 37+
Comment 44•10 years ago
|
||
Verified today that Firefox 37.0.1 (BuildID=20150402191859) starts without crashing, both for a normal start and in safe mode (bug 1149864), on the same Windows 7 x64 and Windows 8 x64 machines where I reproduced the original issue with Firefox 37.0.
The visual issue mentioned in comment 29 (missing titlebar) is already tracked separately in bug 1077245.
The fix doesn't seem to have made the latest Nightly or Aurora yet.
Updated•10 years ago
|
Flags: needinfo?(kairo)
Updated•10 years ago
|
Updated•10 years ago
|
Flags: qe-verify+
Comment 45•10 years ago
|
||
I received a response from Stardock that indicated that there was an issue with WindowBlinds and the DirectX11 path in Firefox 37. They have fixed the issue in WindowBlinds 8.11 beta.
Comment 46•10 years ago
|
||
Also verified as fixed on Firefox 38 Beta 5 on Windows 7 x64 and Windows 8.1 x64.
Flags: qe-verify+
Updated•9 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•