Oculus Quest 2 app crashing on startup

This is an app that has been working fine until the Meta update to the Quest 2. Now, whenever we try to run it on the headset, it crashes. Connecting logcat, I find a “java.lang.OutOfMemoryError”. The first few lines of the stack trace are

        at android.graphics.Bitmap.nativeCreate(Native Method)
        at android.graphics.Bitmap.createBitmap(Bitmap.java:1122)
        at android.graphics.Bitmap.createBitmap(Bitmap.java:1080)

Before I post more logs, is there a known issue with the new update? Do I need to change things in player settings or elsewhere? We’re using Unity 2021.3.3f1.

  1. Try the latest 2021 lts. This one had some oculus issues iirc
  2. If you use vulkan, disable graphics jobs
  3. If that doesn’t help we might need some more info on the player settings and oculus settings etc

The update seems to have fixed it - I appreciate the help. We’ll see if it works on more than one headset. I guess I shouldn’t be surprised that this version is messed up with Oculus. It also has some issues with properly displaying lists with items that have more than one line per item. Again, we will see, but I have a feeling that got it.

Edit: For anyone else with similar issues, we went to 2021.3.14f1 and that seems to be a lot better on several points.

1 Like