Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
RobertXRG's avatar
RobertXRG
Honored Guest
2 years ago

ovr_PlatformInitializeAndroid and ovr_PlatformInitializeAndroidAsynchronous never returns.

I'm currently trying to set up my game to connect to the OVR Platform using ovr_PlatformInitializeAndroid or ovr_PlatformInitializeAndroidAsynchronous, however, what I'm currently seeing is that the program comes to a standstill when making those calls and never reaches the next line of code.

What I've tried:

  • I had a colleague test my code with their account on their device in the UK and it seemed to work (I am in NZ).
  • I tried on a Quest 2 and Quest Pro and neither has worked.
  • I created a new account and had that granted developer role and that still didn't work.
  • I hotspotted my Quest to my mobile phone to use it's internet connection, and that didn't work.

Unfortunately, as there seems to be no debug version of the library, I have no idea what could be preventing it from even producing an error code. Given it happens in the async call too it seems unlikely it has anything to do with communication.

Any help would be greatly appreciated.

2 Replies

  • I just found the cause of the issue. I'm using Android Game Development Extension (AGDE) in Visual Studio, and I hadn't updated it in a while. I suspect it's because the newest version uses JDK 17 whereas previously I was using JDK 11. Or it's some other thing the older version of AGDE wasn't doing that now the newer version does.

  • I just had a good scan of my logcat and found this line:

    2024-01-09 15:40:27.905  2635-20836 OVRLibrary              pid-2635                             W  null cursor received for query content://com.oculus.ocms.library/apps/com.game.sample