Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Bug Failed upgrade to 2021.3.1f1 LTS, looking for suggestions please

Discussion in 'VR' started by Vanz, Apr 23, 2022.

  1. Vanz

    Vanz

    Joined:
    Nov 19, 2013
    Posts:
    374
    Hi,

    Project was working fine, upgraded from 2021.1.16f1 to 2021.3.1f1, runs fine in Unity but when I Build the APK file then try to load while in my Q2 headset I get a black screen. I get the 3 loading dots, then a pure black screen then an exit with no visuals or error messages.

    Stuff I’ve tried to far:
    • Changed from Gamma to Linear and deleted Vulkan (when it first converted it asked to change Gamma settings, to use Vulkan)
    • Changed from MultiPass to Multiview
    • Uncheck all the following in Android build area
    o Low Overhead Mode
    o Optimize Buffer Discards
    o Phase Sync
    o Symmetric Projection
    o Subsampled Layout

    Game Builds with no errors.

    Any ideas or suggestions on what to try or do next?

    Thanks,

    Vanz

    Ps. Had following Build error message upon conversion = “BuildFailedException: Only Linear Color Space is supported when using OpenGLES. Please set Color Space to Linear in Player Settings, or switch to Vulkan.”

    I Switched to Vulkan and it Built okay with no errors
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,415
    Upgrade Oculus xr plugin AND oculus integration to the latest version, then it should work again.

    For VR I always recommend using linear color space btw, might want to use that.
    GLES3 can have better performance (unless you want to use late latching or spacewarp)
    Edit: nvm, you already did the last thing. The first bit should fix it tho
     
  3. zezba9000

    zezba9000

    Joined:
    Sep 28, 2010
    Posts:
    983
    Same issue here 2021.3.1 is broken for VR but it works fine with 2021.3.0
     
  4. ThomasBERNARD33

    ThomasBERNARD33

    Joined:
    Apr 20, 2022
    Posts:
    11
    Same here. My project was working fine in Unity 2021.2.14f1 and while porting I have a black screen.

    I tried with an empty new project set with URP and the problem is the same.
    Current unusual settings :
    - Gamma color space with auto graphics API (hence Vulkan).
    - Min API Level 24
    - .Net Framework (hence 4x.)
    Tested both with Mono and IL2CPP

    Just to be clear, the build is going through without any issues but the app crash when opened in the Oculus Quest 2. Everything is fine in editor.

    Here are the errors from Oculus Developer Hub.
     

    Attached Files:

    Last edited: Apr 29, 2022
  5. arfish

    arfish

    Joined:
    Jan 28, 2017
    Posts:
    777
  6. Justin-Wasilenko

    Justin-Wasilenko

    Joined:
    Mar 10, 2015
    Posts:
    103
    Getting this issue as well in 2021.3.1f1.

    Switching from Vulkan to OpenGLES3 'fixed' it. But looks like Vulkan got broken in the recent builds of Unity.
     
  7. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,415
    Did you upgrade the unity integration asset as well?
     
  8. Justin-Wasilenko

    Justin-Wasilenko

    Joined:
    Mar 10, 2015
    Posts:
    103
    I did, to v39

    Even tried on a new fresh project using the URP Template and had the same results.
     
  9. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,415
    Then some settings are wrong. I have no issue with unity 2021 for quest. Did you follow the developers guide?
     
  10. Justin-Wasilenko

    Justin-Wasilenko

    Joined:
    Mar 10, 2015
    Posts:
    103
    It is only a problem with Vulkan, switching to OpenGLES3 and it works just fine.

    adb logcat just shows a Crash as soon as I switch to Vulkan.

    Code (CSharp):
    1. 05-12 16:20:14.325  6222  6294 E CRASH   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    2. 05-12 16:20:14.325  6222  6294 E CRASH   : Version '2021.3.2f1 (d6360bedb9a0)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
    3. 05-12 16:20:14.325  6222  6294 E CRASH   : Build fingerprint: 'oculus/hollywood/hollywood:10/QQ3A.200805.001/26242800497100000:user/release-keys'
    4. 05-12 16:20:14.325  6222  6294 E CRASH   : Revision: '0'
    5. 05-12 16:20:14.325  6222  6294 E CRASH   : ABI: 'arm64'
    6. 05-12 16:20:14.325  6222  6294 E CRASH   : Timestamp: 2022-05-12 16:20:14-0700
    7. 05-12 16:20:14.325  6222  6294 E CRASH   : pid: 6222, tid: 6294, name: Vulkan Submissi  >>> com.icefallinteractive.projectname <<<
    8. 05-12 16:20:14.325  6222  6294 E CRASH   : uid: 10096
    9. 05-12 16:20:14.325  6222  6294 E CRASH   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xe8
    10. 05-12 16:20:14.325  6222  6294 E CRASH   : Cause: null pointer dereference
    11. 05-12 16:20:14.325  6222  6294 E CRASH   :     x0  0000006fa294d800  x1  0000006ebdbb3200  x2  0000000000000000  x3  0000000000000000
    12. 05-12 16:20:14.325  6222  6294 E CRASH   :     x4  0000000000000000  x5  00000000ffffffff  x6  0000006fc2f76000  x7  0000006ebdbb3200
    13. 05-12 16:20:14.325  6222  6294 E CRASH   :     x8  00000000000000a8  x9  000000708abaafc0  x10 0000000002220200  x11 0000000000000002
    14. 05-12 16:20:14.325  6222  6294 E CRASH   :     x12 00000000000000a8  x13 0000000000000000  x14 0000000000000003  x15 00000000000002d2
    15. 05-12 16:20:14.325  6222  6294 E CRASH   :     x16 0000000000000000  x17 000000708a9b6800  x18 0000006faf61c000  x19 0000006ebdbb3200
    16. 05-12 16:20:14.325  6222  6294 E CRASH   :     x20 0000006fa294d850  x21 00000000000012d3  x22 0000006fa294d800  x23 0000000000000000
    17. 05-12 16:20:14.325  6222  6294 E CRASH   :     x24 0000006fc31dd1f0  x25 000000708abaafc0  x26 0000006faf7fb860  x27 00000000000000a8
    18. 05-12 16:20:14.325  6222  6294 E CRASH   :     x28 0000000000000001  x29 0000006faf7fba20
    19. 05-12 16:20:14.325  6222  6294 E CRASH   :     sp  0000006faf7fb610  lr  0000006fc3096608  pc  0000006fc309663c
    20. 05-12 16:20:14.325  6222  6294 E CRASH   :
    21. 05-12 16:20:14.325  6222  6294 E CRASH   : backtrace:
    22. 05-12 16:20:14.325  6222  6294 E CRASH   :       #00 pc 000000000014063c  /vendor/lib64/hw/vulkan.kona.so (BuildId: 8637bccd054a5cb587d5cdd46a5449bd)
    23. 05-12 16:20:14.325  6222  6294 E CRASH   :       #01 pc 00000000000d7c2c  /vendor/lib64/hw/vulkan.kona.so (qglinternal::vkEndCommandBuffer(VkCommandBuffer_T*)+204) (BuildId: 8637bccd054a5cb587d5cdd46a5449bd)
    24. 05-12 16:20:14.325  6222  6294 E CRASH   :       #02 pc 00000000007818d4  /data/app/com.icefallinteractive.projectname-UWubjEnmuCuxACwb8SnYIw==/lib/arm64/libunity.so (BuildId: 7839d2df2cf52918d6e7efd67a07b7d48b274662)
    25. 05-12 16:20:14.325  6222  6294 E CRASH   :       #03 pc 0000000000770374  /data/app/com.icefallinteractive.projectname-UWubjEnmuCuxACwb8SnYIw==/lib/arm64/libunity.so (BuildId: 7839d2df2cf52918d6e7efd67a07b7d48b274662)
    26. 05-12 16:20:14.325  6222  6294 E CRASH   :       #04 pc 000000000076eab8  /data/app/com.icefallinteractive.projectname-UWubjEnmuCuxACwb8SnYIw==/lib/arm64/libunity.so (BuildId: 7839d2df2cf52918d6e7efd67a07b7d48b274662)
    27. 05-12 16:20:14.325  6222  6294 E CRASH   :       #05 pc 000000000076e574  /data/app/com.icefallinteractive.projectname-UWubjEnmuCuxACwb8SnYIw==/lib/arm64/libunity.so (BuildId: 7839d2df2cf52918d6e7efd67a07b7d48b274662)
    28. 05-12 16:20:14.325  6222  6294 E CRASH   :       #06 pc 00000000002f10ec  /data/app/com.icefallinteractive.projectname-UWubjEnmuCuxACwb8SnYIw==/lib/arm64/libunity.so (BuildId: 7839d2df2cf52918d6e7efd67a07b7d48b274662)
    29. 05-12 16:20:14.325  6222  6294 E CRASH   :       #07 pc 00000000000d4884  /apex/com.android.runtime/lib64/
     
    Last edited: May 13, 2022
  11. wojwen

    wojwen

    Joined:
    Feb 13, 2018
    Posts:
    38
    Have you tried disabling either Symmetric Projection or Subsampled Layout? Based on my testing the bug is caused by enabling both of them.
     
    Last edited: May 13, 2022
  12. Justin-Wasilenko

    Justin-Wasilenko

    Joined:
    Mar 10, 2015
    Posts:
    103
    Yes, everything is disabled.

    I tried this project as well: https://github.com/nukadelic/unity-application-spacewarp/

    Same issue
     
  13. artfail

    artfail

    Joined:
    Apr 18, 2017
    Posts:
    34
    I am having similar issues on Unity 2022.1.7. If either color space is set to Gamma or High Dynamic Range is checked in URP then a Vulkan build on the Quest 2 results in an instant crash or gets stuck on the 3 dot loading screen.