03-24-2023 05:31 AM
Hello, we are getting crashes in our Unity game . These crashes happen only on Quest2, the game runs fine on Quest1. So far we are unable to find a cause of this crash, the only relevant info we could find was in the logs (attached below).
It happens in some scenes consistently, in other quite randomly. We have a persistent scene + additive level scenes setup. The metrics HUD enabled from Meta Quest Developer hud is showing there is enough memory and no excessive use of GPU or CPU.
Scripting backend is IL2CPP for arm64 with openGL. Unity 2022.2.1, all the latest packages and oculus integration.
Any ideas what might be causing this issue or how to proceed with identifying the cause?
03-24 13:08:22.276 5578 5601 E CRASH : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
03-24 13:08:22.276 5578 5601 E CRASH : Version '2022.2.1f1 (4fead5835099)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
03-24 13:08:22.276 5578 5601 E CRASH : Build fingerprint: 'oculus/hollywood/hollywood:10/QQ3A.200805.001/50163300257300150:user/release-keys'
03-24 13:08:22.276 5578 5601 E CRASH : Revision: '0'
03-24 13:08:22.277 5578 5601 E CRASH : ABI: 'arm64'
03-24 13:08:22.277 5578 5601 E CRASH : Timestamp: 2023-03-24 13:08:22.277005021+0100
03-24 13:08:22.277 5578 5601 E CRASH : pid: 5578, tid: 5601, name: UnityMain >>> com.kyb3r.ARTOdemo <<<
03-24 13:08:22.277 5578 5601 E CRASH : uid: 10108
03-24 13:08:22.277 5578 5601 E CRASH : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr --------
03-24 13:08:22.277 5578 5601 E CRASH : Cause: null pointer dereference
03-24 13:08:22.277 5578 5601 E CRASH : x0 000000703047fea0 x1 0000007030458580 x2 0000000000000001 x3 0000000000000000
03-24 13:08:22.277 5578 5601 E CRASH : x4 0000007030458580 x5 00000070304585a0 x6 0000003500000034 x7 0000013000000036
03-24 13:08:22.277 5578 5601 E CRASH : x8 0000000000000000 x9 0000000000000000 x10 0000000000000018 x11 0000000000000000
03-24 13:08:22.277 5578 5601 E CRASH : x12 0000013000000036 x13 0000000100000004 x14 0000000000000000 x15 00000070c2a277f0
03-24 13:08:22.277 5578 5601 E CRASH : x16 000000710a95a448 x17 00000071f28bdec0 x18 00000070c1965798 x19 0000007030458580
03-24 13:08:22.277 5578 5601 E CRASH : x20 00000070c0ff3e00 x21 0000007109c41190 x22 00000070c0ff3e00 x23 000000703047fea0
03-24 13:08:22.277 5578 5601 E CRASH : x24 0000000000000001 x25 000000710695edf0 x26 00000070c0ff3e00 x27 00000070c0ffeeb0
03-24 13:08:22.277 5578 5601 E CRASH : x28 0000007109895e4d x29 000000710695ee80
03-24 13:08:22.277 5578 5601 E CRASH : lr 000000710a1ae380 sp 000000710695ed50 pc 0000007109c411cc pst 0000000080001000
03-24 13:08:22.277 5578 5601 E CRASH :
03-24 13:08:22.277 5578 5601 E CRASH : backtrace:
03-24 13:08:22.277 5578 5601 E CRASH : #00 pc 00000000004ea1cc /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libunity.so (BuildId: 25cd9987f1e3a112)
03-24 13:08:22.277 5578 5601 E CRASH : #01 pc 0000000000a5737c /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libunity.so (BuildId: 25cd9987f1e3a112)
03-24 13:08:22.277 5578 5601 E CRASH : #02 pc 00000000004df184 /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libunity.so (BuildId: 25cd9987f1e3a112)
03-24 13:08:22.277 5578 5601 E CRASH : #03 pc 00000000004deec0 /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libunity.so (BuildId: 25cd9987f1e3a112)
03-24 13:08:22.277 5578 5601 E CRASH : #04 pc 00000000004e50b4 /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libunity.so (BuildId: 25cd9987f1e3a112)
03-24 13:08:22.277 5578 5601 E CRASH : #05 pc 00000000024fb360 /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libil2cpp.so (BuildId: 7e33cf788b20d1b3)
03-24 13:08:22.277 5578 5601 E CRASH : #06 pc 00000000024f9b44 /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libil2cpp.so (BuildId: 7e33cf788b20d1b3)
03-24 13:08:22.277 5578 5601 E CRASH : #07 pc 00000000024f842c /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libil2cpp.so (BuildId: 7e33cf788b20d1b3)
03-24 13:08:22.277 5578 5601 E CRASH : #08 pc 000000000262843c /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libil2cpp.so (BuildId: 7e33cf788b20d1b3)
03-24 13:08:22.277 5578 5601 E CRASH : #09 pc 000000000121eae0 /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libil2cpp.so (BuildId: 7e33cf788b20d1b3)
03-24 13:08:22.277 5578 5601 E CRASH : #10 pc 000000000121ea2c /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libil2cpp.so (BuildId: 7e33cf788b20d1b3)
03-24 13:08:22.277 5578 5601 E CRASH : #11 pc 00000000005f1618 /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libunity.so (BuildId: 25cd9987f1e3a112)
03-24 13:08:22.277 5578 5601 E CRASH : #12 pc 0000000000600930 /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libunity.so (BuildId: 25cd9987f1e3a112)
03-24 13:08:22.277 5578 5601 E CRASH : #13 pc 00000000004e5f80 /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libunity.so (BuildId: 25cd9987f1e3a112)
03-24 13:08:22.277 5578 5601 E CRASH : #14 pc 00000000009d3208 /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libunity.so (BuildId: 25cd9987f1e3a112)
03-24 13:08:22.277 5578 5601 E CRASH : #15 pc 00000000009d3760 /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libunity.so (BuildId: 25cd9987f1e3a112)
03-24 13:08:22.277 5578 5601 E CRASH : #16 pc 0000000000510f04 /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libunity.so (BuildId: 25cd9987f1e3a112)
03-24 13:08:22.277 5578 5601 E CRASH : #17 pc 00000000005087a0 /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libunity.so (BuildId: 25cd9987f1e3a112)
03-24 13:08:22.277 5578 5601 E CRASH : #18 pc 00000000005087e0 /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libunity.so (BuildId: 25cd9987f1e3a112)
03-24 13:08:22.277 5578 5601 E CRASH : #19 pc 0000000000508a6c /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libunity.so (BuildId: 25cd9987f1e3a112)
03-24 13:08:22.277 5578 5601 E CRASH : #20 pc 00000000006801d0 /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libunity.so (BuildId: 25cd9987f1e3a112)
03-24 13:08:22.277 5578 5601 E CRASH : #21 pc 00000000006978a4 /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libunity.so (BuildId: 25cd9987f1e3a112)
03-24 13:08:22.277 5578 5601 E CRASH : #22 pc 000000000000440c /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/oat/arm64/base.odex
03-24 13:08:22.298 2681 2811 I GuardianSurfaceMgr: [GuardianSurfaceMgr::GetSurfaceMapData] surface 0 does not exist in map.
03-24 13:08:22.419 2681 2811 I chatty : uid=10073(com.oculus.guardian) GuardianSystem identical 3 lines
03-24 13:08:22.461 2681 2811 I GuardianSurfaceMgr: [GuardianSurfaceMgr::GetSurfaceMapData] surface 0 does not exist in map.
03-24 13:08:22.464 1285 2264 E TREX : Interface version 1 was not found. Check debug build for more information.
03-24 13:08:22.502 2681 2811 I GuardianSurfaceMgr: [GuardianSurfaceMgr::GetSurfaceMapData] surface 0 does not exist in map.
03-24 13:08:22.514 849 8791 I [CT] : boltlib: DSP utilization: 7.89 % (394 / 5004 ms)
03-24 13:08:22.519 5578 5601 E CRASH : Tombstone written to: /storage/emulated/0/Android/data/com.kyb3r.ARTOdemo/files/tombstone_00
03-24 13:08:22.519 5578 5601 E AndroidRuntime: FATAL EXCEPTION: UnityMain
03-24 13:08:22.519 5578 5601 E AndroidRuntime: Process: com.kyb3r.ARTOdemo, PID: 5578
03-24 13:08:22.519 5578 5601 E AndroidRuntime: java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
03-24 13:08:22.519 5578 5601 E AndroidRuntime: Version '2022.2.1f1 (4fead5835099)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
03-24 13:08:22.519 5578 5601 E AndroidRuntime: Build fingerprint: 'oculus/hollywood/hollywood:10/QQ3A.200805.001/50163300257300150:user/release-keys'
03-24 13:08:22.519 5578 5601 E AndroidRuntime: Revision: '0'
03-24 13:08:22.519 5578 5601 E AndroidRuntime: ABI: 'arm64'
03-24 13:08:22.519 5578 5601 E AndroidRuntime: Timestamp: 2023-03-24 13:08:22.277005021+0100
03-24 13:08:22.519 5578 5601 E AndroidRuntime: pid: 5578, tid: 5601, name: UnityMain >>> com.kyb3r.ARTOdemo <<<
03-24 13:08:22.519 5578 5601 E AndroidRuntime: uid: 10108
03-24 13:08:22.519 5578 5601 E AndroidRuntime: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr --------
03-24 13:08:22.519 5578 5601 E AndroidRuntime: Cause: null pointer dereference
03-24 13:08:22.519 5578 5601 E AndroidRuntime: x0 000000703047fea0 x1 0000007030458580 x2 0000000000000001 x3 0000000000000000
03-24 13:08:22.519 5578 5601 E AndroidRuntime: x4 0000007030458580 x5 00000070304585a0 x6 0000003500000034 x7 0000013000000036
03-24 13:08:22.519 5578 5601 E AndroidRuntime: x8 0000000000000000 x9 0000000000000000 x10 0000000000000018 x11 0000000000000000
03-24 13:08:22.519 5578 5601 E AndroidRuntime: x12 0000013000000036 x13 0000000100000004 x14 0000000000000000 x15 00000070c2a277f0
03-24 13:08:22.519 5578 5601 E AndroidRuntime: x16 000000710a95a448 x17 00000071f28bdec0 x18 00000070c1965798 x19 0000007030458580
03-24 13:08:22.519 5578 5601 E AndroidRuntime: x20 00000070c0ff3e00 x21 0000007109c41190 x22 00000070c0ff3e00 x23 000000703047fea0
03-24 13:08:22.519 5578 5601 E AndroidRuntime: x24 0000000000000001 x25 000000710695edf0 x26 00000070c0ff3e00 x27 00000070c0ffeeb0
03-24 13:08:22.519 5578 5601 E AndroidRuntime: x28 0000007109895e4d x29 000000710695ee80
03-24 13:08:22.519 5578 5601 E AndroidRuntime: lr 000000710a1ae380 sp 000000710695ed50 pc 0000007109c411cc pst 0000000080001000
03-24 13:08:22.519 5578 5601 E AndroidRuntime:
03-24 13:08:22.519 5578 5601 E AndroidRuntime: backtrace:
03-24 13:08:22.519 5578 5601 E AndroidRuntime: #00 pc 00000000004ea1cc /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libunity.so (BuildId: 25cd9987f1e3a112)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: #01 pc 0000000000a5737c /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libunity.so (BuildId: 25cd9987f1e3a112)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: #02 pc 00000000004df184 /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libunity.so (BuildId: 25cd9987f1e3a112)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: #03 pc 00000000004deec0 /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libunity.so (BuildId: 25cd9987f1e3a112)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: #04 pc 00000000004e50b4 /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libunity.so (BuildId: 25cd9987f1e3a112)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: #05 pc 00000000024fb360 /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libil2cpp.so (BuildId: 7e33cf788b20d1b3)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: #06 pc 00000000024f9b44 /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libil2cpp.so (BuildId: 7e33cf788b20d1b3)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: #07 pc 00000000024f842c /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libil2cpp.so (BuildId: 7e33cf788b20d1b3)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: #08 pc 000000000262843c /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libil2cpp.so (BuildId: 7e33cf788b20d1b3)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: #09 pc 000000000121eae0 /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libil2cpp.so (BuildId: 7e33cf788b20d1b3)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: #10 pc 000000000121ea2c /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libil2cpp.so (BuildId: 7e33cf788b20d1b3)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: #11 pc 00000000005f1618 /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libunity.so (BuildId: 25cd9987f1e3a112)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: #12 pc 0000000000600930 /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libunity.so (BuildId: 25cd9987f1e3a112)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: #13 pc 00000000004e5f80 /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libunity.so (BuildId: 25cd9987f1e3a112)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: #14 pc 00000000009d3208 /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libunity.so (BuildId: 25cd9987f1e3a112)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: #15 pc 00000000009d3760 /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libunity.so (BuildId: 25cd9987f1e3a112)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: #16 pc 0000000000510f04 /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libunity.so (BuildId: 25cd9987f1e3a112)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: #17 pc 00000000005087a0 /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libunity.so (BuildId: 25cd9987f1e3a112)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: #18 pc 00000000005087e0 /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libunity.so (BuildId: 25cd9987f1e3a112)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: #19 pc 0000000000508a6c /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libunity.so (BuildId: 25cd9987f1e3a112)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: #20 pc 00000000006801d0 /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libunity.so (BuildId: 25cd9987f1e3a112)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: #21 pc 00000000006978a4 /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/lib/arm64/libunity.so (BuildId: 25cd9987f1e3a112)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: #22 pc 000000000000440c /data/app/com.kyb3r.ARTOdemo-ul-JlvXKvopnNo0pCcnfkg==/oat/arm64/base.odex
03-24 13:08:22.519 5578 5601 E AndroidRuntime:
03-24 13:08:22.519 5578 5601 E AndroidRuntime: at libunity.0x4ea1cc(Native Method)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: at libunity.0xa5737c(Native Method)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: at libunity.0x4df184(Native Method)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: at libunity.0x4deec0(Native Method)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: at libunity.0x4e50b4(Native Method)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: at libil2cpp.0x24fb360(Native Method)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: at libil2cpp.0x24f9b44(Native Method)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: at libil2cpp.0x24f842c(Native Method)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: at libil2cpp.0x262843c(Native Method)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: at libil2cpp.0x121eae0(Native Method)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: at libil2cpp.0x121ea2c(Native Method)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: at libunity.0x5f1618(Native Method)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: at libunity.0x600930(Native Method)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: at libunity.0x4e5f80(Native Method)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: at libunity.0x9d3208(Native Method)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: at libunity.0x9d3760(Native Method)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: at libunity.0x510f04(Native Method)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: at libunity.0x5087a0(Native Method)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: at libunity.0x5087e0(Native Method)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: at libunity.0x508a6c(Native Method)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: at libunity.0x6801d0(Native Method)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: at libunity.0x6978a4(Native Method)
03-24 13:08:22.519 5578 5601 E AndroidRuntime: at base.0x440c(Native Method)
Some other similar threads about similar error (but none of them helped me much or there are no answers):
https://communityforums.atmeta.com/t5/Unity-VR-Development/Reproducible-crash-in-Oculus-Integration-...
https://communityforums.atmeta.com/t5/Unity-VR-Development/Deadlocks-on-the-GPU/m-p/885238
03-24-2023 08:20 AM - edited 03-24-2023 08:36 AM
A few more things to add:
The game crashes way less when built as "Developmen Build".
The crash is also happening when Vulkan is used instead of OpenGL.
04-01-2023 06:32 AM
Appears to be solved by downgrading entire project tu Unity 2021.3.21f
04-11-2023 11:32 PM
I could help you out solving the problems
04-12-2023 05:05 AM
I also encounter null pointer dereference crashes. And have similar stacktrace. But downgrading is not option for me. Is there another way to fix that issue?
05-17-2023 03:02 PM
I am using 2020.3.43 but this is exactly what happens to me. Any news on the subject ?
10-26-2023 02:10 PM
Same here. Unity 2021.3.15f1.
11-25-2023 07:16 AM
Ran into the same issue and came here looking for a solution. Similar config, IL2CPP and Unity 2022.3.
After further investigation it appears our issue was likely caused by enabling graphicsJob (multi threaded rendering). https://docs.unity3d.com/ScriptReference/PlayerSettings-graphicsJobs.html