Hubs-Foundation / hubs

Duck-themed multi-user virtual spaces in WebVR. Built with A-Frame.
https://hubsfoundation.org
Mozilla Public License 2.0
2.13k stars 1.41k forks source link

SteamVR - Multiple instances loaded when using Firefox #2289

Open V0L4T1LE opened 4 years ago

V0L4T1LE commented 4 years ago

If I have previously granted permission to firefox to use my VR headset, but then I want to use the mouse and keyboard more traditionally for a session it will keep trying to open SteamVR.

This causes errors in SteamVR which does not allow for multiple instances.

Suggestion: check if SteamVR is already running before initiating VR from firefox?

┆Issue is synchronized with this Jira Task

InfiniteLee commented 4 years ago

Does this occur for you with other webvr sites? A good one to test is: https://webvr.info/samples/02-stereo-rendering.html This will help us narrow down if this a problem with Hubs or a problem with Firefox itself.

I use SteamVR and Firefox myself, and also run into the problem of SteamVR always launching, but I haven't had the issue with it complaining about having multiple instances.

As a workaround, you can navigate to "about:config" in firefox and set the "dom.vr.enabled" flag to "false". This should prevent SteamVR from starting at all (though you have to remember to re-enable it any time you actually want to use your headset!)

V0L4T1LE commented 4 years ago

Thank you Kevin, I will test this when I am back in the office on Monday and let you know how it goes.

On Sat, 28 Mar 2020, 7:13 am Kevin Lee, notifications@github.com wrote:

Does this occur for you with other webvr sites? A good one to test is: https://webvr.info/samples/02-stereo-rendering.html This will help us narrow down if this a problem with Hubs or a problem with Firefox itself.

I use SteamVR and Firefox myself, and also run into the problem of SteamVR always launching, but I haven't had the issue with it complaining about having multiple instances.

As a workaround, you can navigate to "about:config" in firefox and set the "dom.vr.enabled" flag to "false". This should prevent SteamVR from starting at all (though you have to remember to re-enable it any time you actually want to use your headset!)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mozilla/hubs/issues/2289#issuecomment-605351988, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO32M3FDWT3JECLQ53EJRJTRJUXLNANCNFSM4LUWOJSA .

V0L4T1LE commented 4 years ago

Sorry for the delay, I was unable to replicate the multiple instances issue with other WebVR sites.

brianpeiris commented 4 years ago

I wasn't able to repro a problem here either. I'm using a Valve Index headset, with SteamVR 1.10.32 and Firefox 75 with a fresh profile. SteamVR does start even if you're not using the headset (admittedly this is annoying and maybe something we should look into improving if possible), but it doesn't seem to cause any errors.

Can you give us more detail about the errors you're seeing? What exactly do you mean by "multiple instances" in this case?

joshmarinacci commented 4 years ago

any update on this?