Skip to content
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

Hubs stuck on loading screen in Chrome on Android and Windows if webvr/xr flags are enabled #892

Closed
brianpeiris opened this issue Feb 14, 2019 · 8 comments
Labels

Comments

@brianpeiris
Copy link
Contributor

brianpeiris commented Feb 14, 2019

If webxr and/or webvr flags are enabled in chrome://flags, hubs will fail to load.

@brianpeiris
Copy link
Contributor Author

There's some odd interaction with webvrpolyfill going on here. aframe.io does not seem to suffer from this problem, so it seems specific to Hubs.

@johnshaughnessy
Copy link
Contributor

Burned me for a few hours today. Will be nice to figure this out

@johnshaughnessy
Copy link
Contributor

johnshaughnessy commented Feb 20, 2019

I'm not sure if those are the only flags that cause this issue. I have disabled those flags and still cannot get in on chrome.

edit: nevermind. disabling the webxr flag seems to have fixed my issue.

@johnshaughnessy
Copy link
Contributor

I can get past my issue by not loading our service worker:

hub.js:

  subscriptions.setRegistrationFailed();
  //if (navigator.serviceWorker) {
  //  try {
  //    navigator.serviceWorker
  //      .register("/hub.service.js")
  //      .then(() => {
  //        navigator.serviceWorker.ready
  //          .then(registration => subscriptions.setRegistration(registration))
  //          .catch(() => subscriptions.setRegistrationFailed());
  //      })
  //      .catch(() => subscriptions.setRegistrationFailed());
  //  } catch (e) {
  //    subscriptions.setRegistrationFailed();
  //  }
  //}

@johnshaughnessy
Copy link
Contributor

Sorry for the spam -- I withdraw the above comment. It seems to me that it's only the WebXR flags that cause this issue for me, not the WebVR flag.

@arpu
Copy link

arpu commented Feb 21, 2019

aframevr/aframe#4002

@brianpeiris
Copy link
Contributor Author

It seems the Brave browser is also affected by this. Probably the new Edge as well.

@brianpeiris
Copy link
Contributor Author

Fixed in #1231

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants