Closed Bug 1338639 Opened 7 years ago Closed 7 years ago

Crash in mozilla::layers::SyncObjectD3D11::Init

Categories

(Core :: Graphics: Layers, defect, P3)

Unspecified
Windows 8
defect

Tracking

()

RESOLVED FIXED
mozilla54
Tracking Status
firefox52 --- unaffected
firefox53 --- fixed
firefox54 --- fixed

People

(Reporter: mccr8, Assigned: kechen)

References

Details

(Keywords: crash, Whiteboard: gfx-noted)

Crash Data

Attachments

(1 file)

This bug was filed from the Socorro interface and is 
report bp-7e461dfa-d513-46f4-9e16-1c8bc2170210.
=============================================================

Bug 1322741 landed a patch for this issue, but I'm still seeing crashes with this signature on recent builds of Aurora and Nightly.
Can you please take a look Vincent? Thanks. Feel free to dupe this to the other bug and reopen that one if you want. I don't know if this is a separate issue or what.
Flags: needinfo?(vliu)
There was a gfx critical note listed in the following, I believe we failed to create D3D11 texture and caused crash.

[C0][GFX1-]: Failed to OpenSharedResource for SyncObjectD3D11: 0x80070057 (t=14.7052) 

The 0x80070057(E_INVALIDARG) means one or more arguments are not valid'.
22 crashes with this signature in Aurora 20170210004018.
It seems this issue is unlikely the root cause on Bug 1322741, which was SyncObjectD3D11 missing the ID3D11Device. I saw some discussions on Bug 1160157 Comment 110 might similar to this one. In that discussion, there was link got the same error return number. Please see [1] I posted from Bug 1160157 Comment 110.

[1]: https://crash-stats.mozilla.com/report/index/aaa9e577-4ddb-40b3-84fc-5f5c82170202#tab-metadata 


[C8][GFX1]: Failed to D3D11 OpenSharedResource for frame finalization: 0x80070057 (t=863.299)
Flags: needinfo?(vliu)
See Also: → 1160157
Priority: -- → P3
Whiteboard: gfx-noted
Before Bug 1319557, we had an early return to handling failure of OpenSharedResource and preventing accessing null mD3D11Texture when device reset happened[1]. I think we should add it back.

David, could you help me to review it ? Thank you.

[1] https://dxr.mozilla.org/mozilla-release/rev/c8c53bdd499ba5c6d08960bf003e648f4b2efd77/gfx/layers/d3d11/TextureD3D11.cpp#1201
Attachment #8837077 - Flags: review?(dvander)
Assignee: nobody → kechen
Attachment #8837077 - Flags: review?(dvander) → review+
I will uplift this to Firefox 53 after the change is landed into Nightly.
Pushed by cbook@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/422bcd4dddd7
Handle the OpenSharedResource failure in SyncObjectD3D11::Init when device rest happened. r=dvander
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/422bcd4dddd7
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
Please request Aurora approval on this when you get a chance.
Flags: needinfo?(kechen)
Comment on attachment 8837077 [details] [diff] [review]
Handle the OpenSharedResource failure when device rest happened.

Approval Request Comment
[Feature/Bug causing the regression]:
 Bug 1319557
[User impact if declined]:
 The crash will still happens in aurora
[Is this code covered by automated tests?]:
 No.
[Has the fix been verified in Nightly?]:
 Yes.
[Needs manual test from QE? If yes, steps to reproduce]: 
 No.
[List of other uplifts needed for the feature/fix]:
 None.
[Is the change risky?]:
 Low risk.
[Why is the change risky/not risky?]:
 A simple code flow change and the return condition exists in the versions before 53.
[String changes made/needed]:
 None.
Flags: needinfo?(kechen)
Attachment #8837077 - Flags: approval-mozilla-aurora?
Comment on attachment 8837077 [details] [diff] [review]
Handle the OpenSharedResource failure when device rest happened.

Fix a crash. Aurora53+.
Attachment #8837077 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Setting qe-verify- based on Kevin's assessment on manual testing needs (see Comment 11).
Flags: qe-verify-
See Also: → 1345735
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: