Closed
Bug 1131370
Opened 10 years ago
Closed 10 years ago
crash in mozilla::layers::SyncObjectD3D11::FinalizeFrame()
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
mozilla39
People
(Reporter: away, Assigned: bas.schouten)
References
Details
(Keywords: crash, Whiteboard: gfx-noted)
Crash Data
Attachments
(2 files)
(deleted),
patch
|
jrmuizel
:
review+
lmandel
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
milan
:
review+
lmandel
:
approval-mozilla-aurora+
lmandel
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
This bug was filed from the Socorro interface and is
report bp-516db8b3-ba27-4aee-a9dc-cf7ff2150206.
=============================================================
Many, but not all, say things like:
Failed to OpenSharedResource: 0x887a0005
or
Failed to OpenSharedResource: 0x80070057
0 xul.dll mozilla::layers::SyncObjectD3D11::FinalizeFrame() gfx/layers/d3d11/TextureD3D11.cpp
1 xul.dll mozilla::layers::ClientLayerManager::ForwardTransaction(bool) gfx/layers/client/ClientLayerManager.cpp
2 xul.dll mozilla::layers::ClientLayerManager::EndTransaction(void (*)(mozilla::layers::PaintedLayer*, gfxContext*, nsIntRegion const&, mozilla::layers::DrawRegionClip, nsIntRegion const&, void*), void*, mozilla::layers::LayerManager::EndTransactionFlags) gfx/layers/client/ClientLayerManager.cpp
3 xul.dll nsDisplayList::PaintRoot(nsDisplayListBuilder*, nsRenderingContext*, unsigned int) layout/base/nsDisplayList.cpp
4 xul.dll nsLayoutUtils::PaintFrame(nsRenderingContext*, nsIFrame*, nsRegion const&, unsigned int, unsigned int) layout/base/nsLayoutUtils.cpp
5 xul.dll PresShell::Paint(nsView*, nsRegion const&, unsigned int) layout/base/nsPresShell.cpp
[Tracking Requested - why for this release]: #6 crash in recent auroras (aurorae?)
status-firefox36:
--- → unaffected
status-firefox37:
--- → affected
status-firefox38:
--- → affected
tracking-firefox37:
--- → ?
Is this more error-consolidation or a legitimate bug?
Flags: needinfo?(bas)
More app notes and gfx critical error here: https://crash-stats.mozilla.com/search/?signature=%3Dmozilla%3A%3Alayers%3A%3ASyncObjectD3D11%3A%3AFinalizeFrame%28%29&_facets=signature&_facets=build_id&_facets=version&_facets=release_channel&_facets=graphics_critical_error&_columns=date&_columns=signature&_columns=product&_columns=version&_columns=build_id&_columns=platform&_columns=app_notes&_columns=graphics_critical_error#crash-reports
I got a crash (bp-f8e2ddce-627f-457e-afb9-f1dad2150217) with this signature shortly after updating gfx drivers, although FF remained useable for a minute or two before it crashed.
Assignee | ||
Comment 6•10 years ago
|
||
I feel this might be a genuine timeout that occurs more frequently during TDR (which would explain the messages we're seeing). I'd like to give raising the timeout a shot if only to see if the numbers go down, so that we know it's a genuine timeout or whether WAIT_TIMEOUT is just returned due to some other type of error state.
Assignee: nobody → bas
Status: NEW → ASSIGNED
Flags: needinfo?(bas)
Attachment #8567286 -
Flags: review?(jmuizelaar)
Updated•10 years ago
|
Attachment #8567286 -
Flags: review?(jmuizelaar) → review+
Comment 7•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
Comment 8•10 years ago
|
||
We don't expect this to actually fix anything, it may just make the crash less likely.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 9•10 years ago
|
||
Did it? I see we have crashes from nightly builds after March 24th, but could somebody sort out the stats and see if those numbers changed post this landing? Also, do we want to uplift this timeout change either way?
Flags: needinfo?(dmajor)
Flags: needinfo?(bas)
Assignee | ||
Comment 10•10 years ago
|
||
Flags: needinfo?(bas)
Attachment #8571452 -
Flags: review?(milan)
Comment 11•10 years ago
|
||
Comment on attachment 8571452 [details] [diff] [review]
Try to ignore transient errors and increase D3D11 timeout as well.
Review of attachment 8571452 [details] [diff] [review]:
-----------------------------------------------------------------
Nice. We may eventually want to pull out the timeout value into a #define or a const.
::: gfx/layers/d3d11/TextureD3D11.cpp
@@ +873,5 @@
> +
> + if (!dev) {
> + if (gfxWindowsPlatform::GetPlatform()->DidRenderingDeviceReset()) {
> + return;
> + }
Should we just put MOZ_CRASH() here if we didn't return because of the reset, rather than dereference a nullptr below? Same result, perhaps easier to show intent.
Attachment #8571452 -
Flags: review?(milan) → review+
Reporter | ||
Comment 12•10 years ago
|
||
(In reply to Milan Sreckovic [:milan] from comment #9)
> Did it? I see we have crashes from nightly builds after March 24th, but
> could somebody sort out the stats and see if those numbers changed post this
> landing? Also, do we want to uplift this timeout change either way?
Doesn't seem to have gone down in volume since the first patch landed.
Flags: needinfo?(dmajor)
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: mozilla38 → mozilla39
Updated•10 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 14•10 years ago
|
||
Anyone who understands how to analyze the data properly, is the volume of this crash any better with the patches we've added?
Reporter | ||
Comment 15•10 years ago
|
||
(In reply to Bas Schouten (:bas.schouten) from comment #14)
> Anyone who understands how to analyze the data properly, is the volume of
> this crash any better with the patches we've added?
Yes, this improved with the second landing at comment 13. The volume is now roughly 25-50% of the previous volume (there is some fluctuation).
Flags: needinfo?(dmajor)
Assignee | ||
Comment 16•10 years ago
|
||
(In reply to David Major [:dmajor] (UTC+13) from comment #15)
> (In reply to Bas Schouten (:bas.schouten) from comment #14)
> > Anyone who understands how to analyze the data properly, is the volume of
> > this crash any better with the patches we've added?
>
> Yes, this improved with the second landing at comment 13. The volume is now
> roughly 25-50% of the previous volume (there is some fluctuation).
Do we feel the reduction is sufficient to untrack this? I believe the timeouts should be the only crashes we have left here. We could attempt to ignore them but there's a real risk that these users will just no crash but instead end up with a broken browser without us knowing about it.
Flags: needinfo?(lmandel)
Comment 17•10 years ago
|
||
We should try to gather some information about what's happening on the other side of the lock when this happens. i.e. Have a global that we set when we take the lock and unset otherwise. We can then print the status of this on the other side.
Assignee | ||
Comment 18•10 years ago
|
||
(In reply to Jeff Muizelaar [:jrmuizel] from comment #17)
> We should try to gather some information about what's happening on the other
> side of the lock when this happens. i.e. Have a global that we set when we
> take the lock and unset otherwise. We can then print the status of this on
> the other side.
I've been looking at this, it's not easy, since both sides are in different processes (potentially) we'd need to somehow create an area of shmem to sort of store this information. I've played around with a patch but I have some doubts as to whether we want to introduce this sort of messiness.
Flags: needinfo?(jmuizelaar)
Comment 19•10 years ago
|
||
37 is marked as affected. Can we uplift what we have in order to improve the situation for 37?
In terms of tracking, if either the volume has been reduced significantly enough or there is nothing else to do in this bug, then yes, we should stop tracking. Should we rather resolve this bug and file a follow up for any additional work?
Flags: needinfo?(lmandel)
Flags: needinfo?(bugmail.mozilla)
Flags: needinfo?(bas)
Comment 20•10 years ago
|
||
I agree, we should close this bug and uplift the patches, and file a follow-up for any additional work. I'm marking 38 as affected since the second patch landed on 39 and was never uplifted. The first patch (which according to comment 15 didn't help) landed on 38.
Bas, can you request uplift to 38 and 37 for the second patch (and 37 for the first patch, if you think we might as well uplift that too)? I'll clone this bug to a new one that we can use for any remaining work.
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
Flags: needinfo?(bugmail.mozilla)
Resolution: --- → FIXED
Updated•10 years ago
|
Attachment #8567286 -
Flags: approval-mozilla-beta?
Updated•10 years ago
|
Attachment #8571452 -
Flags: approval-mozilla-beta?
Attachment #8571452 -
Flags: approval-mozilla-aurora?
Comment 21•10 years ago
|
||
Comment on attachment 8571452 [details] [diff] [review]
Try to ignore transient errors and increase D3D11 timeout as well.
From speaking with Jeff, the patches on this bug haven't really fixed the problem but have reduced the incidence of the crash associated with it. There is very little risk associated with the changes, which have now been on m-c for some time. We're going to take these changes in Beta 6. Beta+ Aurora+
Flags: needinfo?(jmuizelaar)
Attachment #8571452 -
Flags: approval-mozilla-beta?
Attachment #8571452 -
Flags: approval-mozilla-beta+
Attachment #8571452 -
Flags: approval-mozilla-aurora?
Attachment #8571452 -
Flags: approval-mozilla-aurora+
Updated•10 years ago
|
Attachment #8567286 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 22•10 years ago
|
||
Comment 23•10 years ago
|
||
Updated•9 years ago
|
Flags: needinfo?(bas)
You need to log in
before you can comment on or make changes to this bug.
Description
•