Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice

Other Oculus Quest 2 app crashing on startup

Discussion in 'VR' started by SOICGeek, Nov 21, 2022.

  1. SOICGeek

    SOICGeek

    Joined:
    Jun 25, 2019
    Posts:
    78
    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
    Code (CSharp):
    1.  
    2.         at android.graphics.Bitmap.nativeCreate(Native Method)
    3.         at android.graphics.Bitmap.createBitmap(Bitmap.java:1122)
    4.         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.
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,025
    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
     
  3. SOICGeek

    SOICGeek

    Joined:
    Jun 25, 2019
    Posts:
    78
    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.
     
    DevDunk likes this.