aframevr / aframe

:a: Web framework for building virtual reality experiences.
https://aframe.io/
MIT License
16.69k stars 3.98k forks source link

Aframe is crashing when used with Oculus Rift #5147

Closed mglatki closed 1 year ago

mglatki commented 2 years ago

Hello, I am working on a WebXr project for Oculus Quest 2, but I have tried to run it on an older Oculus Rift. To my surprise, it hasn't worked. So I have tried immersive-web.github.io, but it is working without any problem. Then I have tried examples on aframe.io and those haven't worked.

Aframe is throwing some errors:

obraz

Also after aframe crush on one page, any page with WebXR is not working until Firefox is restarted.

Thanks in advance and sorry for bad english :) mglatki

dmarcos commented 2 years ago

I recommend using Chrome. Firefox never transitioned to the WebXR API (still on the old WebVR spec) and doesn't have a team maintaining or implementing the new standard.

dmarcos commented 2 years ago

Surprised that immersive-web.github.io worked at all since Firefox doesn't have a WebXR implementation

dmarcos commented 2 years ago

Are you perhaps running a WebVR / WebXR emulator in your browser?

mglatki commented 2 years ago

Thank you for quick response.

I was using WebXR emulator, but not on PC with Rift. It is not even installed there.

I am testing Chrome right now. I am able to start immerse view of "Hello WebVR" and "Model Viewer" from aframe.io and my sample project, but I have to restart Chrome every time. If I don't do it, the scene is trying to load but fails and SteamVR "room" is showing again.

Probably previous (before I raised the issue) bad experience with Chrome was caused with already "messed session".

If you have any more ideas how to improve "Chrome experience" I would appreciate them.

Thank you for help and for Aframe :)

dmarcos commented 2 years ago

On Firefox make sure you have the following flags enabled: dom.vr.enabled and dom.vr.webxr.enabled

https://aframe.io/aframe/examples/boilerplate/hello-world/ should work. Someone for the community tested successfully via SteamVR

Chrome has quirks. Can see for workarounds in https://github.com/aframevr/aframe/issues/4709

dmarcos commented 1 year ago

Unfortunately Firefox is no longer a viable target. As far as I know they don't have staff working on a WebXR implementation. For problems related to Chrome and workarounds refer to https://github.com/aframevr/aframe/issues/4709

Closing this but can reopen if necessary