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. Dismiss Notice

Bug Unity app on Quest2 crashing immediately after launching (After the Splash Screen)

Discussion in 'VR' started by n_saikiran, Sep 2, 2023.

  1. n_saikiran

    n_saikiran

    Joined:
    Sep 1, 2016
    Posts:
    18
    Hello everyone, we recently updated our project to Unity 2022.3 LTS and v56 Oculus SDK. And we are facing this issue. Sometimes upon launch of game, scenes load and game works fine and sometimes it crashes right immediately after splash screen.

    Have been encountering this issue on Quest2 store builds.
    Attached is the crash report and stack trace.
    Can someone provide insights on how to address/fix this issue?


    Code (CSharp):
    1. 2023-09-01 12:59:45.896 24566-24622/? E/CRASH: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    2. 2023-09-01 12:59:45.896 24566-24622/? E/CRASH: Version '2022.3.5f1 (9674261d40ee)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
    3. 2023-09-01 12:59:45.896 24566-24622/? E/CRASH: Build fingerprint: 'oculus/hollywood/hollywood:12/SQ3A.220605.009.A1/50600670051800150:user/release-keys'
    4. 2023-09-01 12:59:45.896 24566-24622/? E/CRASH: Revision: '0'
    5. 2023-09-01 12:59:45.896 24566-24622/? E/CRASH: ABI: 'arm64'
    6. 2023-09-01 12:59:45.896 24566-24622/? E/CRASH: Timestamp: 2023-09-01 12:59:45.896768319+0530
    7. 2023-09-01 12:59:45.896 24566-24622/? E/CRASH: pid: 24566, tid: 24622, name: Thread-3  >>> com.Company.Product <<<
    8. 2023-09-01 12:59:45.896 24566-24622/? E/CRASH: uid: 10048
    9. 2023-09-01 12:59:45.896 24566-24622/? E/CRASH: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr --------
    10. 2023-09-01 12:59:45.896 24566-24622/? E/CRASH: Cause: null pointer dereference
    11. 2023-09-01 12:59:45.896 24566-24622/? E/CRASH:     x0  0000000000000000  x1  0000000000000000  x2  0000000000000010  x3  0000000000009146
    12. 2023-09-01 12:59:45.896 24566-24622/? E/CRASH:     x4  0000000000000010  x5  000000000000003b  x6  00000072b61d6350  x7  7f7f7f7f7f7f7f7f
    13. 2023-09-01 12:59:45.896 24566-24622/? E/CRASH:     x8  0000000000000006  x9  0000000000000000  x10 0000000000001cf1  x11 0000000000000073
    14. 2023-09-01 12:59:45.896 24566-24622/? E/CRASH:     x12 0000000000000502  x13 00000073c4bd69cc  x14 b400007350a2d6f0  x15 0000000000000000
    15. 2023-09-01 12:59:45.896 24566-24622/? E/CRASH:     x16 0000007375030550  x17 000000747f7400f0  x18 00000072b575e000  x19 0000007331e7cf90
    16. 2023-09-01 12:59:45.896 24566-24622/? E/CRASH:     x20 0000000000000000  x21 0000000000000002  x22 0000000000000010  x23 0000000000000000
    17. 2023-09-01 12:59:45.896 24566-24622/? E/CRASH:     x24 0000000000008f37  x25 0000007373e6757c  x26 00000073750eb000  x27 0000007331e7cf90
    18. 2023-09-01 12:59:45.896 24566-24622/? E/CRASH:     x28 00000073402e2fd0  x29 00000072e08d5da8
    19. 2023-09-01 12:59:45.896 24566-24622/? E/CRASH:     lr  00000073748e6558  sp  00000072b61d73f0  pc  000000747f740144  pst 0000000060001000
    20. 2023-09-01 12:59:45.896 24566-24622/? E/CRASH: backtrace:
    21. 2023-09-01 12:59:45.896 24566-24622/? E/CRASH:       #00 pc 0000000000085144  /apex/com.android.runtime/lib64/bionic/libc.so (memset+84) (BuildId: 0fdc1142906507383ea46be55881c2e4)
    22. 2023-09-01 12:59:45.896 24566-24622/? E/CRASH:       #01 pc 0000000000c0f554  /data/app/~~BOLQ4aAGR0w-UZNS-k6a8A==/com.Company.Product-PRgYMmhJkSsgnj0X0ghTGg==/lib/arm64/libunity.so (BuildId: 33cf275551b4fb92)
    23. 2023-09-01 12:59:45.897 24566-24622/? E/CRASH:       #02 pc 0000000000bea74c  /data/app/~~BOLQ4aAGR0w-UZNS-k6a8A==/com.Company.Product-PRgYMmhJkSsgnj0X0ghTGg==/lib/arm64/libunity.so (BuildId: 33cf275551b4fb92)
    24. 2023-09-01 12:59:45.897 24566-24622/? E/CRASH:       #03 pc 0000000000bffebc  /data/app/~~BOLQ4aAGR0w-UZNS-k6a8A==/com.Company.Product-PRgYMmhJkSsgnj0X0ghTGg==/lib/arm64/libunity.so (BuildId: 33cf275551b4fb92)
    25. 2023-09-01 12:59:45.897 24566-24622/? E/CRASH:       #04 pc 0000000000dbf634  /data/app/~~BOLQ4aAGR0w-UZNS-k6a8A==/com.Company.Product-PRgYMmhJkSsgnj0X0ghTGg==/lib/arm64/libunity.so (BuildId: 33cf275551b4fb92)
    26. 2023-09-01 12:59:45.897 24566-24622/? E/CRASH:       #05 pc 0000000000db81ac  /data/app/~~BOLQ4aAGR0w-UZNS-k6a8A==/com.Company.Product-PRgYMmhJkSsgnj0X0ghTGg==/lib/arm64/libunity.so (BuildId: 33cf275551b4fb92)
    27. 2023-09-01 12:59:45.897 24566-24622/? E/CRASH:       #06 pc 0000000000db7ef4  /data/app/~~BOLQ4aAGR0w-UZNS-k6a8A==/com.Company.Product-PRgYMmhJkSsgnj0X0ghTGg==/lib/arm64/libunity.so (BuildId: 33cf275551b4fb92)
    28. 2023-09-01 12:59:45.897 24566-24622/? E/CRASH:       #07 pc 0000000000679160  /data/app/~~BOLQ4aAGR0w-UZNS-k6a8A==/com.Company.Product-PRgYMmhJkSsgnj0X0ghTGg==/lib/arm64/libunity.so (BuildId: 33cf275551b4fb92)
    29. 2023-09-01 12:59:45.897 24566-24622/? E/CRASH:       #08 pc 00000000000dddec  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+132) (BuildId: 0fdc1142906507383ea46be55881c2e4)
    30. 2023-09-01 12:59:45.897 24566-24622/? E/CRASH:       #09 pc 000000000008a02c  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 0fdc1142906507383ea46be55881c2e4)

    Code (CSharp):
    1. ********** Crash dump: **********
    2. Build fingerprint: 'oculus/hollywood/hollywood:12/SQ3A.220605.009.A1/50600670051800150:user/release-keys'
    3. #00 0x0000000000085144 /apex/com.android.runtime/lib64/bionic/libc.so (memset+84) (BuildId: 0fdc1142906507383ea46be55881c2e4)
    4. #01 0x0000000000c0f554 /data/app/~~BOLQ4aAGR0w-UZNS-k6a8A==/com.Company.Product-PRgYMmhJkSsgnj0X0ghTGg==/lib/arm64/libunity.so (BuildId: 33cf275551b4fb92)
    5.                                                                                                                                   ApiGLES::ClearBufferSubData(unsigned int, gl::BufferTarget, long, long)
    6.                                                                                                                                   ??:0:0
    7. #02 0x0000000000bea74c /data/app/~~BOLQ4aAGR0w-UZNS-k6a8A==/com.Company.Product-PRgYMmhJkSsgnj0X0ghTGg==/lib/arm64/libunity.so (BuildId: 33cf275551b4fb92)
    8.                                                                                                                                   BufferManagerGLES::AcquireBuffer(unsigned long, DataBufferGLES::BufferUsage, GfxBuffer*, bool)
    9.                                                                                                                                   ??:0:0
    10. #03 0x0000000000bffebc /data/app/~~BOLQ4aAGR0w-UZNS-k6a8A==/com.Company.Product-PRgYMmhJkSsgnj0X0ghTGg==/lib/arm64/libunity.so (BuildId: 33cf275551b4fb92)
    11.                                                                                                                                   GfxDeviceGLES::UpdateComputeConstantBuffers(unsigned int, ConstantBufferHandle*, unsigned int, unsigned long, unsigned char const*, unsigned int const*, unsigned int const*, int const*)
    12.                                                                                                                                   ??:0:0
    13. #04 0x0000000000dbf634 /data/app/~~BOLQ4aAGR0w-UZNS-k6a8A==/com.Company.Product-PRgYMmhJkSsgnj0X0ghTGg==/lib/arm64/libunity.so (BuildId: 33cf275551b4fb92)
    14.                                                                                                                                   GfxDeviceWorker::RunCommand(ThreadedStreamBuffer&)
    15.                                                                                                                                   ??:0:0
    16. #05 0x0000000000db81ac /data/app/~~BOLQ4aAGR0w-UZNS-k6a8A==/com.Company.Product-PRgYMmhJkSsgnj0X0ghTGg==/lib/arm64/libunity.so (BuildId: 33cf275551b4fb92)
    17.                                                                                                                                   GfxDeviceWorker::RunExt(ThreadedStreamBuffer&)
    18.                                                                                                                                   ??:0:0
    19. #06 0x0000000000db7ef4 /data/app/~~BOLQ4aAGR0w-UZNS-k6a8A==/com.Company.Product-PRgYMmhJkSsgnj0X0ghTGg==/lib/arm64/libunity.so (BuildId: 33cf275551b4fb92)
    20.                                                                                                                                   GfxDeviceWorker::RunGfxDeviceWorker(void*)
    21.                                                                                                                                   ??:0:0
    22. #07 0x0000000000679160 /data/app/~~BOLQ4aAGR0w-UZNS-k6a8A==/com.Company.Product-PRgYMmhJkSsgnj0X0ghTGg==/lib/arm64/libunity.so (BuildId: 33cf275551b4fb92)
    23.                                                                                                                                   Thread::RunThreadWrapper(void*)
    24.                                                                                                                                   ??:0:0
    25. #08 0x00000000000dddec /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+132) (BuildId: 0fdc1142906507383ea46be55881c2e4)
    26. #09 0x000000000008a02c /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 0fdc1142906507383ea46be55881c2e4)
     

    Attached Files:

    Last edited: Sep 2, 2023
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,393
    Maybe try to run it on vulkan, without OpenGLES?
    Just a random shot
     
  3. Jonas-Weber

    Jonas-Weber

    Joined:
    Nov 6, 2020
    Posts:
    2
    I have the same problem. Running on Vulkan is not an option for me right now, because I using the WebRTC package and this has problems with Vulkan.

    The funny thing is, that the crash only occurs sometimes. ~50% of the appestarts
     
  4. AliCanKeskin

    AliCanKeskin

    Joined:
    Jun 7, 2022
    Posts:
    17
    Same here
     
  5. Ali_V_Quest

    Ali_V_Quest

    Joined:
    Aug 2, 2015
    Posts:
    138
    if you can't figure out the issue from the crash log ( also, ChatGPT might help you understand the crash log )
    Maybe try to pinpoint the cause:
    1. duplicate your project, to ensure you build with the exact same settings
    - then test your build, see if it crashes, if it doesn't, then probably one of the custom plugins you're using

    2. if step 1 doesn't work, try creating a new project and build it
    - gradually change the settings and import your plugins
    - and find which plugin is causing the error


    Hope this helps
     
  6. AdamBebkoFV

    AdamBebkoFV

    Joined:
    May 1, 2023
    Posts:
    3
    I'm experiencing a very similar issue, did you ever find the cause? For me it seems to happen right after a webRTC connection is created