Oculus Quest fully freezes when opening game

I am porting a PCVR game to the quest 2. I previously got it working, but now it doesn’t work anymore.

If I start the game I get 3 loading dots forever, the home button doesn’t even work and I have to hard reset the headset.
LogCat doesn’t print anything and Unity auto connect doesn’t connect

I had a similar issue before, but then ‘initialize XR on startup’ was off, but that’s not the case now.

Any tips on where to look are appreciated

I get exactly that (three ‘loading’ dots, maybe some sound playing, but totally black) sometimes when building for Quest 2 with the OpenXR plugin enabled instead of Oculus’ XR plugin.

OpenXR does work and compile for the Quest 2 but seems much fussier about actually working. Sometimes just force quitting the game and loading it up again works, but often not.

If you are using OpenXR, I find Vulcan tends to give me that three-dot-black-screen more often than not, whereas OpenGLES3 works fine with OpenXR most of the time, so you could try looking there?

If you are using OpenXR and are also using the Oculus integration package installed from Asset Store (i.e. not the Oculus plugin for the XR Manager), make sure you’ve set that up to use the OpenXR variant of the OVRPlugin too rather than the default settings, as that can break builds too.

Forgot to update my post. Upgrading the Oculus Integration to the latest version fixed it!

This was it for me! Disabling auto graphics API and manually set it to GLES fixed the issue.