Hello,
I am trying to run the OVR Scene Quick Preview on the Quest 2 for my Unity game. While it works perfectly on Quest 1, on Quest 2 this is what happens:
1) Build and Deploy App works fine, it runs the OVR Transition Scene on Quest 2 (Black screen with floating white windows saying "Failed to Get Scene Info Data"
2) When I try to do Build And Deploy Scenes, I get this error:
LogBuilding and deploying transition APK . . . Success!
Building scene bundles . . .
Deploying scene bundles to device . . .
Failed!
adb: error: failed to stat remote object '/sdcard/Android/data/com.my.vrgame/cache/scenes/OVRMasterBundle': No such file or directory
and it doesn't run.
I have allowed for the data permission on Quest 2. Suggestions?
Comments
I thought I might try a new project, but thanks for the heads up that that won't help!
(Am new to (VR) development, and new to these fora. Just got a Quest 2 and finished the Create with Code course, I work with an average laptop so Link won't work for me. DM me if you have any starter tips or tricks).
Are we to assume that Unity Integration is not working for Quest 2?
Getting this in the Log when trying to run OVR Build APK & Run:
I'm on Unity 2019.4.5f1 with the related Android SDK installed automatically with Unity.
It looks like a permission error. I'm on Unity 2019.4.5f1, Android SDK installed with this version of Unity.
This is what I am getting in the Log;
Question: Is anyone else here having further issues with their Android installs?
I've had to install Android Studio and point Unity to them. I am also prompted to upgrade my Android SDK (and am unable to) on building and have to tell it to use the highest installed, which I assume is coming from my Studio installs.
Why are we unable to preview our scenes? Any successes?
I am disheartened no one from Oculus has responded.
EDIT: I managed to fix my SDK issue by following unity_03phillipsm's advice here: answers.unity.com/questions/1750743/unable-to-start-adb-server-make-sure-the-android-s should it be affecting anyone else. That said, it did not resolve the OVRMasterBundle issue posed by the thread.
OVR Build APK and Run is working for me on the Quest 2, only the Scene Quick Preview does not.
I have unity set to to API level 29. still same issue
Deploying scene bundles to device . . .
I have tried making changes to OVRBundleManager.cs and OVRBundleTool.cs I have transferred files from OVRAssetBundles and OVRTransitionscene.unity to Quest2. Tried API level 28, 29 and 30. Tried the regular Build and Run in "File" instead of OVR Scene Quick Review. NO luck yet.
Seriously, anyone in Oculus aka Facebook trying to get a solution for us? Who else to ask?What else can we do?
1. In Unity: File - Build Settings - Export Project - Export - by saving in a folder. It builds a Gradle project in that folder
2. In Android Studio: import the Gradle project pointing to the folder above
3. In Android Studio: while keeping the VR device connected to the computer, Build - Build APK. After that is complete then Hit the play button next to the device - It goes thru' Gradle Build Running
4. Go to your VR device and it should show up in Applications - Unknown sources.
Good Luck.
I'm close to trying a complete Windows install to try and fix this issue.
In Assets/Oculus/VR/Editor/OVRBundleManager.cs, on line 453 it detects that no bundle has been previously deployed by comparing the error message to the string "does not exist". But as reported in the OP the error message is "No such file or directory".
I changed line 453 to instead read:
if (output.Contains("does not exist") || output.Contains("No such file or directory"))
And now it works!