Closed
Bug 1371228
Opened 8 years ago
Closed 8 years ago
VRLayerParent should be destroyed when SteamVR runtime is terminated
Categories
(Core :: WebVR, defect)
Core
WebVR
Tracking
()
RESOLVED
FIXED
mozilla56
People
(Reporter: daoshengmu, Assigned: daoshengmu)
References
Details
Attachments
(1 file)
|
59 bytes,
text/x-review-board-request
|
kip
:
review+
jcristau
:
approval-mozilla-beta+
|
Details |
As Bug 1321275 comment 16 mentioned, the crash happens on SteamVR runtime is turned off, but we still try to submit frames via VRLayers. We should think about make VRLayerParent notify VRLayerChild the VR presentation has been terminated and stop doing IPC transition.
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Assignee | ||
Comment 3•8 years ago
|
||
(In reply to Daosheng Mu[:daoshengmu] from comment #2)
> Comment on attachment 8875672 [details]
> Bug 1371228 - (wip) handling SteamVR process quit events while sumbitting
> frames;
>
> Review request updated; see interdiff:
> https://reviewboard.mozilla.org/r/147098/diff/1-2/
This version is much better. I check the connection state is true, otherwise, it will help us switch back to the non-present mode, but it can't try to reload the OpenVR runtime. Sometimes, it still has crash that seems because we use async IPC instead of sync IPC to getting mIsConnected from the frame data.
| Assignee | ||
Comment 4•8 years ago
|
||
Besides, when the SteamVR process is quit, it also happens creating PTextureChild fail at https://dxr.mozilla.org/mozilla-central/rev/da66c4a05fda49d457d9411a7092fed87cf9e53a/gfx/layers/client/TextureClient.cpp#981
| Comment hidden (mozreview-request) |
| Assignee | ||
Comment 6•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8875672 [details]
Bug 1371228 - Handling SteamVR process quit events to avoid crashes;
https://reviewboard.mozilla.org/r/147098/#review156596
::: gfx/vr/ipc/VRLayerChild.cpp:94
(Diff revision 3)
> }
>
> -mozilla::ipc::IPCResult
> -VRLayerChild::Recv__delete__()
> +void
> +VRLayerChild::ActorDestroy(ActorDestroyReason aWhy)
> {
> mIPCOpen = false;
I move mIPCOpen assignment back to ActorDestroy(). It should be more normal case.
Comment 7•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8875672 [details]
Bug 1371228 - Handling SteamVR process quit events to avoid crashes;
https://reviewboard.mozilla.org/r/147098/#review156844
This looks good to me.
If we are still having crashes due to the async IPC, please file a separate bug to handle that case.
Attachment #8875672 -
Flags: review?(kgilbert) → review+
Comment 8•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8875672 [details]
Bug 1371228 - Handling SteamVR process quit events to avoid crashes;
https://reviewboard.mozilla.org/r/147098/#review156848
::: gfx/vr/gfxVROpenVR.cpp:176
(Diff revision 3)
> {
> mVRSystem->ResetSeatedZeroPose();
> UpdateStageParameters();
> }
>
> +bool
We could probably add this in VRDisplayHost, but that can be done later
| Comment hidden (mozreview-request) |
| Assignee | ||
Comment 10•8 years ago
|
||
(In reply to Daosheng Mu[:daoshengmu] from comment #9)
> Comment on attachment 8875672 [details]
> Bug 1371228 - Handling SteamVR process quit events to avoid crashes;
>
> Review request updated; see interdiff:
> https://reviewboard.mozilla.org/r/147098/diff/3-4/
Follow the comment 8, move GetIsConnected() to VRDisplayHost.
| Assignee | ||
Comment 11•8 years ago
|
||
This fix is not risky and should be uplifted to FF 55 for solving crash bugs.
Comment 12•8 years ago
|
||
Pushed by dmu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d9d121ad0389
Handling SteamVR process quit events to avoid crashes; r=kip
Comment 13•8 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
| Assignee | ||
Comment 14•8 years ago
|
||
Comment on attachment 8875672 [details]
Bug 1371228 - Handling SteamVR process quit events to avoid crashes;
Approval Request Comment
[Feature/Bug causing the regression]: This is going to solve crashes.
[User impact if declined]: Crashes will continue to happen.
[Is this code covered by automated tests?]: it relies on hardware. I have tested manually a lot of times.
[Has the fix been verified in Nightly?]: Yes
[Needs manual test from QE? If yes, steps to reproduce]: I have done it by myself.
[List of other uplifts needed for the feature/fix]: nope
[Is the change risky?]: nope
[Why is the change risky/not risky?]: it fixes crashes, it brings more stable.
[String changes made/needed]: nope.
Attachment #8875672 -
Flags: approval-mozilla-beta?
Comment 15•8 years ago
|
||
Comment on attachment 8875672 [details]
Bug 1371228 - Handling SteamVR process quit events to avoid crashes;
vr stability fix, beta55+
Attachment #8875672 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Updated•8 years ago
|
Assignee: nobody → dmu
Comment 16•8 years ago
|
||
| bugherder uplift | ||
status-firefox55:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•