Closed
Bug 1295951
Opened 8 years ago
Closed 8 years ago
Crash in SnowWhiteKiller::Trace
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
mozilla51
Tracking | Status | |
---|---|---|
firefox-esr45 | --- | unaffected |
firefox50 | --- | unaffected |
firefox51 | + | fixed |
People
(Reporter: marcia, Assigned: kip)
References
Details
(4 keywords)
Attachments
(1 file)
14.17 KB,
patch
|
mccr8
:
review+
|
Details | Diff | Splinter Review |
This bug was filed from the Socorro interface and is
report bp-5f56ebaa-0b3c-46e3-a849-92eab2160817.
=============================================================
Seen while looking at nightly crash stats: http://bit.ly/2aZoGZ6
Some part of the code crashes in dom/vr/VRDisplay.cpp:257. Adding ni on kgilbert.
Flags: needinfo?(kgilbert)
Updated•8 years ago
|
Group: gfx-core-security
Comment 1•8 years ago
|
||
This class is not properly rooting the JS objects. You need to ensure that |mozilla::HoldJSObjects(this);| has been called any time you hold JS objects (and call DropJSObjects in the dtor). The easiest way to do this is to put it in the ctor.
The class is also wrapper cached, so it will work out fine if the wrapper is preserved, but not otherwise.
Comment 2•8 years ago
|
||
I'm not entirely sure this is the cause of the crash, but it might be.
As a side note, you don't need MOZ_COUNT_CTOR/_DTOR for a refcounted class.
Updated•8 years ago
|
Keywords: regression
Comment 4•8 years ago
|
||
Ask smaug or I for help if if you need it (though I'm going to be on PTO for the rest of the morning).
Comment 5•8 years ago
|
||
Is this likely to be nightly-only if it's VR related?
Assignee | ||
Comment 6•8 years ago
|
||
(In reply to Liz Henry (:lizzard) (needinfo? me) from comment #5)
> Is this likely to be nightly-only if it's VR related?
Yes, this is likely to be localized to nightly-only and for people with Oculus (VR Headset) hardware only. The "VRDisplay.cpp" file is only present in nightly as well.
Flags: needinfo?(kgilbert)
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → kgilbert
Assignee | ||
Comment 7•8 years ago
|
||
I suspect that HoldJSObjects / DropJSObjects calls would be needed for the VRPose, VRDisplayCapabilities, VREyeParameters, and VRDisplay classes, all in this file. I'll add a patch shortly to this effect.
Flags: needinfo?(continuation)
Assignee | ||
Comment 8•8 years ago
|
||
Assignee | ||
Comment 9•8 years ago
|
||
Please advise if this is the right thing to do, or if I missed anything? Thanks for all your help!
Comment 10•8 years ago
|
||
Yes, that looks fine to me. I'm sorry this isn't more automatic.
Flags: needinfo?(continuation)
Assignee | ||
Updated•8 years ago
|
Attachment #8782132 -
Flags: review?(continuation)
Assignee | ||
Comment 11•8 years ago
|
||
I'm doing a sanity test with VR hardware and a try push, then can commit if you are happy with the patch
Assignee | ||
Comment 12•8 years ago
|
||
(In reply to :kip (Kearwood Gilbert) from comment #11)
> I'm doing a sanity test with VR hardware and a try push, then can commit if
> you are happy with the patch
Changes didn't appear to affect WebVR running on real hardware. If the patch is r+, I can commit once the try run completes.
Comment 13•8 years ago
|
||
Comment on attachment 8782132 [details] [diff] [review]
Bug 1295951 - Fix JS object rooting for WebVR DOM API classes
Review of attachment 8782132 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good to me. Note that this will cause an extra hashtable lookup in the ctor and dtor, but hopefully that's not an issue.
::: dom/vr/VRDisplay.cpp
@@ +120,5 @@
> {
> return VRFieldOfViewBinding::Wrap(aCx, this, aGivenProto);
> }
>
> +NS_IMPL_CYCLE_COLLECTION_CLASS(VREyeParameters)
Why are all these lines showing up that don't look changed? Is it line endings or something?
Attachment #8782132 -
Flags: review?(continuation) → review+
Assignee | ||
Comment 14•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/69d47888c5c81bd020cbc43a1e1048e761315c8f
Bug 1295951 - Fix JS object rooting for WebVR DOM API classes,r=mccr8
Comment 15•8 years ago
|
||
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
Updated•8 years ago
|
Updated•8 years ago
|
Crash Signature: [@ SnowWhiteKiller::Trace]
status-firefox48:
affected → ---
status-firefox49:
affected → ---
status-firefox50:
affected → ---
Updated•8 years ago
|
status-firefox-esr45:
affected → ---
Updated•8 years ago
|
Group: gfx-core-security → core-security-release
Updated•8 years ago
|
status-firefox50:
--- → unaffected
status-firefox-esr45:
--- → unaffected
Updated•8 years ago
|
Group: core-security-release
You need to log in
before you can comment on or make changes to this bug.
Description
•