Closed Bug 1026893 Opened 11 years ago Closed 10 years ago

crash in @0x0 | CContext::ID3D11DeviceContext1_SetSamplers_<int, 5>(ID3D11DeviceContext1*, unsigned int, unsigned int, ID3D11SamplerState* const*)

Categories

(Core :: Graphics: Layers, defect)

33 Branch
x86
Windows NT
defect
Not set
critical

Tracking

()

VERIFIED FIXED
mozilla36
Tracking Status
firefox32 --- wontfix
firefox33 + verified
firefox34 + verified
firefox35 + verified
firefox36 + verified
firefox38 - wontfix
firefox38.0.5 + wontfix
firefox39 + wontfix

People

(Reporter: jbecerra, Assigned: bas.schouten)

References

Details

(Keywords: crash, topcrash-win)

Crash Data

Attachments

(3 files)

This bug was filed from the Socorro interface and is report bp-9b33f29a-d34b-4cc5-90a6-8443d2140615. ============================================================= This is a startup crash currently in the top #20 in the list of top crashers for Fx32 Aurora. All of these are in Windows 7. Mostly dupes. More reports here: https://crash-stats.mozilla.com/report/list?product=Firefox&signature=%400x0+%7C+CContext%3A%3AID3D11DeviceContext1_SetSamplers_%3Cint%2C+5%3E%28ID3D11DeviceContext1%2A%2C+unsigned+int%2C+unsigned+int%2C+ID3D11SamplerState%2A+const%2A%29 0 @0x0 1 d3d11.dll CContext::ID3D11DeviceContext1_SetSamplers_<4,5>(ID3D11DeviceContext1 *,unsigned int,unsigned int,ID3D11SamplerState * const *) 2 d3d11.dll CContext::InitializeDefaults() 3 d3d11.dll CDevice::LLOCompleteLayerConstruction() 4 d3d11.dll CBridgeImpl<ILayeredLockOwner,ID3D11LayeredDevice,CLayeredObject<CDevice> >::LLOCompleteLayerConstruction() 5 d3d11.dll NDXGI::CDevice::LLOCompleteLayerConstruction() 6 d3d11.dll CBridgeImpl<ILayeredLockOwner,ID3D11LayeredDevice,CLayeredObject<NDXGI::CDevice> >::LLOCompleteLayerConstruction() 7 d3d11.dll NOutermost::CDevice::LLOCompleteLayerConstruction() 8 d3d11.dll NOutermost::CDevice::FinalConstruct(NOutermost::CDevice::TConstructorArgs const &) 9 d3d11.dll TComObject<NOutermost::CDevice>::TComObject<NOutermost::CDevice>(void *,NOutermost::CDevice::TConstructorArgs const &,_GUID const &,void * *) 10 d3d11.dll TComObject<NOutermost::CDevice>::CreateInstance(NOutermost::CDevice::TConstructorArgs const &,void *,void *,_GUID const &,void * *) 11 d3d11.dll D3D11CreateLayeredDevice(unsigned int,void const *,unsigned long,ID3D11LayeredDevice *,_GUID const &,void * *) 12 d3d11.dll D3D11CoreCreateLayeredDevice 13 d3d11.dll D3D11CoreCreateDevice 14 d3d11.dll D3D11CreateDeviceAndSwapChain 15 d3d11.dll D3D11CreateDevice 16 xul.dll gfxWindowsPlatform::GetD3D11Device() gfx/thebes/gfxWindowsPlatform.cpp 17 xul.dll mozilla::layers::CompositorD3D11::Initialize() gfx/layers/d3d11/CompositorD3D11.cpp 18 xul.dll mozilla::layers::CompositorParent::InitializeLayerManager(nsTArray<mozilla::layers::LayersBackend> const &) gfx/layers/ipc/CompositorParent.cpp 19 xul.dll mozilla::layers::CompositorParent::AllocPLayerTransactionParent(nsTArray<mozilla::layers::LayersBackend> const &,unsigned __int64 const &,mozilla::layers::TextureFactoryIdentifier *,bool *) gfx/layers/ipc/CompositorParent.cpp 20 xul.dll mozilla::layers::PCompositorParent::OnMessageReceived(IPC::Message const &,IPC::Message * &) obj-firefox/ipc/ipdl/PCompositorParent.cpp 21 xul.dll mozilla::ipc::MessageChannel::DispatchSyncMessage(IPC::Message const &) ipc/glue/MessageChannel.cpp 22 xul.dll mozilla::ipc::MessageChannel::DispatchMessageW(IPC::Message const &) ipc/glue/MessageChannel.cpp 23 xul.dll mozilla::ipc::MessageChannel::OnMaybeDequeueOne() ipc/glue/MessageChannel.cpp 24 xul.dll MessageLoop::RunTask(Task *) ipc/chromium/src/base/message_loop.cc 25 xul.dll MessageLoop::DeferOrRunPendingTask(MessageLoop::PendingTask const &) ipc/chromium/src/base/message_loop.cc 26 xul.dll MessageLoop::DoWork() ipc/chromium/src/base/message_loop.cc 27 xul.dll base::MessagePumpDefault::Run(base::MessagePump::Delegate *) ipc/chromium/src/base/message_pump_default.cc 28 xul.dll MessageLoop::RunHandler() ipc/chromium/src/base/message_loop.cc 29 xul.dll MessageLoop::Run() ipc/chromium/src/base/message_loop.cc 30 xul.dll base::Thread::ThreadMain() ipc/chromium/src/base/thread.cc 31 xul.dll `anonymous namespace'::ThreadFunc(void *) ipc/chromium/src/base/platform_thread_win.cc 32 kernel32.dll BaseThreadInitThunk 33 ntdll.dll __RtlUserThreadStart 34 ntdll.dll _RtlUserThreadStart
Now this is top 3 crash of Firefox 33. This depends on Intel GPU driver. Should we add this driver / version to block list?
Bug 1021265 is also connected.
A slight variation. @0x0 | CContext::ID3D11DeviceContext1_SetSamplers_<int, 1>(ID3D11DeviceContext1*, unsigned int, unsigned int, ID3D11SamplerState* const*) Combined, these two startup crashers account for 5% of all crashes on Fx 33.
Crash Signature: [@ @0x0 | CContext::ID3D11DeviceContext1_SetSamplers_<int, 5>(ID3D11DeviceContext1*, unsigned int, unsigned int, ID3D11SamplerState* const*)] → [@ @0x0 | CContext::ID3D11DeviceContext1_SetSamplers_<int, 5>(ID3D11DeviceContext1*, unsigned int, unsigned int, ID3D11SamplerState* const*)] [@0x0 | CContext::ID3D11DeviceContext1_SetSamplers_<int, 1>(ID3D11DeviceContext1*, unsigned int, unsigned int, I…
Crash Signature: [@ @0x0 | CContext::ID3D11DeviceContext1_SetSamplers_<int, 5>(ID3D11DeviceContext1*, unsigned int, unsigned int, ID3D11SamplerState* const*)] [@0x0 | CContext::ID3D11DeviceContext1_SetSamplers_<int, 1>(ID3D11DeviceContext1*, unsigned int, unsigned int → [@ @0x0 | CContext::ID3D11DeviceContext1_SetSamplers_<int, 5>(ID3D11DeviceContext1*, unsigned int, unsigned int, ID3D11SamplerState* const*)] [@ @0x0 | CContext::ID3D11DeviceContext1_SetSamplers_<int, 1>(ID3D11DeviceContext1*, unsigned int, unsigned int
and another slight variation @0x0 | CContext::ID3D11DeviceContext_SetSamplers_<int, 5>(ID3D11DeviceContext*, unsigned int, unsigned int, ID3D11SamplerState* const*)
Crash Signature: , ID3D11SamplerState* const*)] → , ID3D11SamplerState* const*)] [@ @0x0 | CContext::ID3D11DeviceContext_SetSamplers_<int, 5>(ID3D11DeviceContext*, unsigned int, unsigned int, ID3D11SamplerState* const*)]
Nicolas, Bas, can you help here? Looks it is critical.
Flags: needinfo?(nical.bugzilla)
Flags: needinfo?(bas)
Keywords: topcrash-win
Version: 32 Branch → 33 Branch
Is there a driver correlation here? This is the CreateDevice call, when this crashes there's not much we can do? We'll have to blacklist.
Flags: needinfo?(bas)
Graphics Adapter Report: The number of crashes for a particular signature by graphics vendor and chipset. Vendor Adapter Report Count Percentage 0x8086 0x0116 1080 55.756 % 0x8086 0x0102 403 20.805 % 0x8086 0x0126 373 19.257 % 0x8086 0x0106 71 3.665 % 0x8086 0x0112 8 0.413 % 0x8086 0x010a 1 0.052 % 0x8086 0x0122 1 0.052 %
QA, is it possible to find a way to reproduce this problem? It's very mysterious and we don't really have much to go on.
Those devices are all Intel Sandy Bridge. Is there a driver version correlation?
My super search skills aren't deft enough to pull out that information. A brief random sampling of crash reports initially shows (it's not a comprehensive list): AdapterVendorID: 0x8086, AdapterDeviceID: 0x0102, AdapterSubsysID: 1497103c, AdapterDriverVersion: 9.17.10.3062 D2D? D2D+ DWrite? DWrite+ AdapterVendorID: 0x8086, AdapterDeviceID: 0x0126, AdapterSubsysID: 21cf17aa, AdapterDriverVersion: 9.17.10.2843 D2D? D2D+ DWrite? DWrite+ D3D11 Layers? D3D11 Layers+ AdapterVendorID: 0x8086, AdapterDeviceID: 0x0116, AdapterSubsysID: 21ce17aa, AdapterDriverVersion: 9.17.10.3347 D2D? D2D+ DWrite? DWrite+ bsmedberg, is there a way to get better diver correlations here?
Flags: needinfo?(benjamin)
Assignee: nobody → bas
Status: NEW → ASSIGNED
Attachment #8507035 - Flags: review?(jmuizelaar)
Jeff, could you review this patch asap? We need it for 33.0.1 Thanks
Flags: needinfo?(jmuizelaar)
Flags: needinfo?(jmuizelaar)
Attachment #8507035 - Flags: review?(jmuizelaar) → review+
Thanks Jeff Like for bug 1083071, I would like this patch in both mozilla-release and mozilla-release branch GECKO330_2014101104_RELBRANCH
Flags: needinfo?(nical.bugzilla)
I'm assuming that all branches are affected and that we're going to want to land the fix everywhere (may not be the case).
We took your band-aid patch on release. Should we land it on m-c, aurora, and beta as well?
Flags: needinfo?(jmuizelaar)
Meant to ni Bas but I'll leave the ni in Jeff in case he can answer.
Flags: needinfo?(bas)
This is still showing up in 34.0b, at a pretty low rate of ~50-60 crashes per beta release cycle. But since it's a startup crash I still think that's significant.
Yes. I guess let's land this on all of the other places.
Flags: needinfo?(jmuizelaar)
Comment on attachment 8507035 [details] [diff] [review] Bandaid to catch crashes and deal with them This shipped in 33. It needs to land on 34, 35, and 36. Bas - Can you please handle the landings yourself on Wed?
Attachment #8507035 - Flags: approval-mozilla-beta+
Attachment #8507035 - Flags: approval-mozilla-aurora+
Flags: qe-verify+
QA Contact: lhenry
This needs rebasing around bug 1092260.
Flags: needinfo?(jmuizelaar)
Bas can you help with this, since Jeff is on PTO?
I'll get you the rebased patch shortly.
Flags: needinfo?(jmuizelaar)
Flags: needinfo?(bas)
Bas, can you confirm this is the right patch for the trunk?
Attachment #8527888 - Flags: review?(bas)
Attachment #8527888 - Flags: review?(bas) → review+
Comment on attachment 8527888 [details] [diff] [review] Catch exceptions during D3D11 initialization. Trunk patch. Carry r=jmuizelaar Review of attachment 8527888 [details] [diff] [review]: ----------------------------------------------------------------- ::: gfx/thebes/gfxWindowsPlatform.cpp @@ +1719,5 @@ > + // Use > + // D3D11_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS > + // to prevent bug 1092260. IE 11 also uses this flag > + D3D11_CREATE_DEVICE_BGRA_SUPPORT | > + D3D11_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS, This flag was added here accidentally. It does not apply to the D2D device.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
I landed a trivial fixup for mingw (which doesn't support __try/__except, but we have macros to take care of that): https://hg.mozilla.org/integration/mozilla-inbound/rev/193801221d25
Socorro shows ~500 crashes (for the three signatures combined) over the past 2 weeks, but all of them are in builds older than November 24th. I think we can call this fixed.
[Tracking Requested - why for this release]: Have a user reporting that this has resurfaced in 38 Beta https://crash-stats.mozilla.com/report/index/0c9cf2f3-98f0-4b68-83fb-73a7e2150429 https://support.mozilla.org/en-US/questions/1059732
The crash report doesn't show it but there is an old DisplayLink driver (8.6.0.33743) at the top of the stack.
Tracking. We could take a patch in 38.0.5 if safe.
I don't see any crash signatures for 39 for any of these for the last month. So I'm not sure 39 is affected.
Noting we still don't have crash data for 39 beta, so we'll keep tracking this for 39 until we can verify it's fixed.
next to the sumo question in tyler's comment 33, we also got feedback on irc by an affected user that updating the displaylink drivers on the system did solve this crash. (reportedly safemode/disabling hwa didn't help, neither did an update to firefox 39 beta)
This is getting hard to keep track of. I'm going to clone this bug for the remaining reports.
Blocks: 1171094
Dropping tracking here to track bug 1171094 instead since that's where David wants to do things!
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: