New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

navigator.Gamepads returns [] after device went to sleep #440

Closed
fernandojsg opened this Issue Aug 29, 2018 · 5 comments

Comments

Projects
None yet
2 participants
@fernandojsg
Member

fernandojsg commented Aug 29, 2018

Hardware

Oculus Go or Daydream

Steps to Reproduce

  1. Visit https://fernandojsg.github.io/vrgamepad-test
  2. Click Enter VR
  3. Exit VR (back button)
  4. You should see the name of the controller on the list.
  5. Switch off the device
  6. Wake it up again
  7. Refresh the page and do the same process (Enter VR, Exit VR, check for gamepad)

Video reproducing the bug: https://sendvid.com/v3eah1k4

Current Behavior

After waking up the navigator.getGamepads() will always return an empty array

Expected Behavior

Return the actual array of gamepads as it does before going to sleep.

@MortimerGoro

This comment has been minimized.

Collaborator

MortimerGoro commented Aug 29, 2018

I found that it also happens after a page reload. Just tested with https://webvr.info/samples/XX-vr-controllers.html

@MortimerGoro

This comment has been minimized.

Collaborator

MortimerGoro commented Aug 29, 2018

cc @avrignaud labeling this as p0 since the WebVR controller dissapearing after a page load is important bug.

@MortimerGoro

This comment has been minimized.

Collaborator

MortimerGoro commented Aug 29, 2018

Did some research and it's caused by a Gecko bug.

Created this Gecko patch: https://phabricator.services.mozilla.com/D4570

We can close this once the patch lands and we update the GV version

@fernandojsg

This comment has been minimized.

Member

fernandojsg commented Aug 29, 2018

@MortimerGoro awesome! that was fast! :)

@fernandojsg

This comment has been minimized.

Member

fernandojsg commented Aug 29, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment