unity-webxr-export icon indicating copy to clipboard operation
unity-webxr-export copied to clipboard

Oculus Quest 2 gets spinning Hourglass when loading WebXR project via Quest 2 Link.

Open ibytergj opened this issue 1 year ago • 12 comments
trafficstars

Describe the bug To rule out any issues from my side when building a project I tried to load your public project at https://de-panther.github.io/unity-webxr-export/Build in my Quest 2 via the Link

When I look in the web console I see the following errors

image

To Reproduce Steps to reproduce the behavior:

  1. Start Quest Link
  2. Go to https://de-panther.github.io/unity-webxr-export/Build
  3. Click on VR

Expected behavior it should load the scene as per the web page?

Screenshots I see a spinning hour glass in the headset.

Unity info (please complete the following information):

  • Editor version: 2022.3.27f1
  • WebXR package version: .22
  • WebXR Interactions version: .22
  • Git or OpenUPM: OpenUPM Registry in Package Manager
  • Using old components (like the Desert sample) or Input System + XR Interaction Toolkit: Project configured for both input systems
  • Built-in render pipeline or URP: URP

Desktop (please complete the following information):

  • OS + Version: Windows 11 Pro - 22631.3527
  • Browser: Chrome Version 125.0.6422.60 (Official Build) (64-bit)

Headset (please complete the following information):

  • Device: Meta Quest 2
  • OS: Version 65.0.0.499.343
  • Browser: [e.g. Meta Quest Browser 20.0] 33.2.0.1.167.600287777

ibytergj avatar May 20 '24 19:05 ibytergj

Are other WebXR Samples (non-unity) don't work on your device? https://immersive-web.github.io/webxr-samples/immersive-vr-session.html

https://immersive-web.github.io/webxr-samples/immersive-hands.html

If so, It might be an issue with OpenXR or browser on your device.

De-Panther avatar May 20 '24 19:05 De-Panther

Hi both of those samples load successfully. The hands demo is a bit messed up as I see some black hand models not oriented correctly and not made out of cubes.

Your demo still hangs.

ibytergj avatar May 20 '24 23:05 ibytergj

Is it the only tab, or only WebGL/WebXR tab open?

De-Panther avatar May 20 '24 23:05 De-Panther

I closed chrome and reopened it. I went to your demo page first and it loaded this time. Thanks for your help debugging this issue.

ibytergj avatar May 20 '24 23:05 ibytergj

Well, seems like a bug in Chrome or Meta OpenXR runtime.

De-Panther avatar May 20 '24 23:05 De-Panther

Any suggestion on how to investigate for these errors

WebGL: INVALID_OPERATION: readBuffer: invalid read buffer WebGL: INVALID_FRAMEBUFFER_OPERATION: drawElements: Cannot render to a XRWebGLLayer framebuffer outside of an XRSession animation frame callback.

ibytergj avatar May 21 '24 14:05 ibytergj

Warnings. And no. It happens on the frame that switch between non-XR to XR mode. Doesn't affect performance or anything else.

De-Panther avatar May 22 '24 07:05 De-Panther

I am a little confused. My assumption was my app isn’t loading because of those errors. Do you have any suggestions on how I can debug why I get the hourglass and my app is not loading?

ibytergj avatar May 22 '24 12:05 ibytergj

Those are warnings, not errors. The app isn't loading because of a bug in Chromium or OpenXR. Try to open 2 tabs of the non-Unity WebXR Samples and enter VR. It won't work.

De-Panther avatar May 22 '24 15:05 De-Panther

When I reload the browser and enter your demo app it works. When I reload the browser and open my app it hangs. I would like to determine why.

ibytergj avatar May 22 '24 15:05 ibytergj

Is your project works on the Meta Quest Browser?

De-Panther avatar May 23 '24 06:05 De-Panther

Also you didn't provide all the info that the bugs template ask for.

De-Panther avatar May 23 '24 06:05 De-Panther

Is your project works on the Meta Quest Browser?

It loads but the headset is not tracking properly.

In WebXR on the PC using the Immersive web emulator, I see double vision and the headset is not tracking properly.

image

In an older version of the project using Unity WebXR export .14 it was working okay. I upgraded the project to .22 but did not change any of the WebXR components already in the scene.

ibytergj avatar May 29 '24 19:05 ibytergj

To give you an update, I reverted back to 0.14.0-preview and our scene started working again. Is there a migration guide for moving from earlier versions of WebXR to the latest version?

ibytergj avatar May 30 '24 20:05 ibytergj

Look at the latests Getting Started guides in the repo (the basic one and the xr interaction toolkit one). They were updated recently.

If you are using latest XR Camera Rig prefab, the URP one needs XR Display Submodule to be enabled, and the BiRP one needs it to be disabled. There are notes about it in the guides.

De-Panther avatar May 30 '24 20:05 De-Panther