Android SDK 12l causing crashing for development builds
Recently I've been trying to update my project's android api from 29 to 32, so it can comply with the new requirements for Quest 2.
After the update attempting to launch a non-distribution build causes the following crash during the initial splash screen:
06-07 16:16:54.995 29239 29239 F DEBUG : Cause: null pointer dereference
06-07 16:16:54.995 29239 29239 F DEBUG : x0 0000007c83885ab0 x1 0000007c8a6094c0 x2 0000007c8a6092e4 x3 0000007c8a6092f0
06-07 16:16:54.995 29239 29239 F DEBUG : x4 0000000000000001 x5 0000000000000001 x6 0000007da5d9b280 x7 0000000000000001
06-07 16:16:54.995 29239 29239 F DEBUG : x8 0000000000000000 x9 e5d9a1578e8c507b x10 000000000000722d x11 000000000000722d
06-07 16:16:54.995 29239 29239 F DEBUG : x12 000000000004c000 x13 0f9160e40d945523 x14 0000000000000001 x15 0000000000000000
06-07 16:16:54.995 29239 29239 F DEBUG : x16 0000007c83799190 x17 0000007d8b7140c0 x18 0000007c89dc0000 x19 0000007c83885aa0
06-07 16:16:54.995 29239 29239 F DEBUG : x20 0000007c83885ab0 x21 0000007c83858130 x22 0000007c8b034a80 x23 0000000000000000
06-07 16:16:54.995 29239 29239 F DEBUG : x24 0000007c8a6094c0 x25 0000000000000030 x26 0000007c838580e8 x27 0000007c8a60e000
06-07 16:16:54.995 29239 29239 F DEBUG : x28 0000000000000038 x29 0000007c8a609390
06-07 16:16:54.995 29239 29239 F DEBUG : lr 0000007c7dc5a9c8 sp 0000007c8a609130 pc 0000007c7dc5d43c pst 0000000060001000
06-07 16:16:54.995 29239 29239 F DEBUG : backtrace:
06-07 16:16:54.995 29239 29239 F DEBUG : #00 pc 000000000965a43c /data/app/~~57KirAbmQeqCJ5_LgmuvEQ==/com.***.******-0BMYONjMB5VHuThMvsiV3A==/lib/arm64/libUE4.so (FZipUnionFile::AddPatchFile(TSharedPtr<FFileHandleAndroid, (ESPMode)1>)+64) (BuildId: fdcad66b69c55c6a31b6a1875b4d0d0e2d07a926)
06-07 16:16:54.995 29239 29239 F DEBUG : #01 pc 00000000096579c4 /data/app/~~57KirAbmQeqCJ5_LgmuvEQ==/com.***.******-0BMYONjMB5VHuThMvsiV3A==/lib/arm64/libUE4.so (FAndroidPlatformFile::Initialize(IPlatformFile*, char16_t const*)+3812) (BuildId: fdcad66b69c55c6a31b6a1875b4d0d0e2d07a926)
06-07 16:16:54.995 29239 29239 F DEBUG : #02 pc 00000000079c35b4 /data/app/~~57KirAbmQeqCJ5_LgmuvEQ==/com.***.******-0BMYONjMB5VHuThMvsiV3A==/lib/arm64/libUE4.so (AndroidMain(android_app*)+3244) (BuildId: fdcad66b69c55c6a31b6a1875b4d0d0e2d07a926)
06-07 16:16:54.995 29239 29239 F DEBUG : #03 pc 00000000079d3ac0 /data/app/~~57KirAbmQeqCJ5_LgmuvEQ==/com.***.******-0BMYONjMB5VHuThMvsiV3A==/lib/arm64/libUE4.so (android_main+148) (BuildId: fdcad66b69c55c6a31b6a1875b4d0d0e2d07a926)
06-07 16:16:54.995 29239 29239 F DEBUG : #04 pc 00000000079fedec /data/app/~~57KirAbmQeqCJ5_LgmuvEQ==/com.***.******-0BMYONjMB5VHuThMvsiV3A==/lib/arm64/libUE4.so (BuildId: fdcad66b69c55c6a31b6a1875b4d0d0e2d07a926)
06-07 16:16:54.995 29239 29239 F DEBUG : #05 pc 00000000000dddec /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+132) (BuildId: d7676abcaa144b1eeebd8fdc21061019)
06-07 16:16:54.995 29239 29239 F DEBUG : #06 pc 000000000008a02c /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: d7676abcaa144b1eeebd8fdc21061019)
06-07 16:16:55.019 29183 29229 F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 29229 (GameThread), pid 29183 (*****)
06-07 16:16:55.021 1096 1221 I BootReceiver: Copying /data/tombstones/tombstone_12 to DropBox (SYSTEM_TOMBSTONE)
Initially I thought this was down to lack of permissions. MANAGE_EXTERNAL_STORAGE was added in api 30 without which access to $Storage/obb, where non-distribution obbs are stored on device, would have been denied. However adding this to the extra permissions and ensuring it has been requested on game start has not fixed the issue. Below are the android packaging settings.
I also tried editing the automation script to have the obbs appear in the $storage/android/obb folder, while this did fix the initial crashing it lead to other side effects (such as no logs being recorded and instability) & ultimately feels like a step in the wrong direction.
Has there been anyone else run into this issue? If so did you find a solution?
Any suggestions or troubleshooting thoughts would be deeply appreciated.
