WebVR unable to start more than once per session

I have an issue with Threejs not loading correctly after the first time I enter and exit vr. Here’s my setup

Windows 11; Chrome 139.0.7258.128
Steam VR with PlayStation VR2 App open
PSVR2 with PC adapter
Threejs Dragging example (and my own project has the same behavior)

I go to the website, click Enter VR, then go back and click Exit VR, then click Enter VR again.
After the first time, My VR view is completely black. Refreshing the page does not fix it, I’ve only been able to get it to show up properly again by exiting Steam VR and opening again.

I don’t see any errors or console logs that would tell me if anything has gone wrong. I suspect the session isn’t being closed properly and is interfering with starting a new session.

I demonstrate here https://youtu.be/cfNJp_bGlew

Do the threejs xr samples show the same issue when running on the device browser? three.js examples

PS VR2 doesn’t have a device browser.

I set up Meta Quest Link and tried with a Quest 1 attached to my pc, and it seems like that was able to restart properly most of the time.

1 Like

And with your quest 1 through the oculus browser does it run/restart ok? (idk if quest1 has oculus browser.. i think i have a quest 2)

Yeah, that method works well. I didn’t have any issues with that one.

1 Like

Yeah idk honestly.. the original issue could be anything in the stages of the stack you describe, but if your app works in oculus browser, it sounds like its fundamentally correct.

I’ll leave this for now. For a little more context, I tried out a different project that uses a different webvr library and that also is not really working as expected, so I’m guessing it’s something with SteamVR or the PS VR2

1 Like