[UE4] Help! Crash on build only (Android/Oculus Quest 2)

Hey everyone - looking for some advice. We are having crashes on build with an android device (Quest 2) the crash occurs when making a level change after recording user audio. It works fine in editor and we can’t seem to find the issue. Any pointers would be phenomenal. Thanks. Here is the tombstone crash log

Timestamp: 2021-08-02 15:40:38-0500
pid: 17713, tid: 17846, name: AudioRecord  >>> com.[Studio].[Project] <<<
uid: 10070
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x1
Cause: null pointer dereference
    r0  00000001  r1  00000000  r2  b5065ca0  r3  00000180
    r4  bd07b110  r5  00000180  r6  b5065ca0  r7  c4d57ed4
    r8  ef84a260  r9  00000000  r10 00000000  r11 ab6ce0c8
    ip  c4d57ed4  sp  ab6ce050  lr  c4d580c4  pc  c4d580e0


[4:02 PM]

And the backtrace

      #00 pc 072fb0e0  /data/app/com.[Studio].[Project]--T3k6tYYCR5wE7O5bSAlFw==/lib/arm/libUE4.so (oboe::AudioStreamAAudio::callOnAudioReady(AAudioStreamStruct*, void*, int)+92) (BuildId: a6ad9b3e5ab6a43a038f6f4c3673a148f68d12c4)
      #01 pc 00013e79  /system/lib/libaaudio.so (aaudio::AudioStream::maybeCallDataCallback(void*, int)+44) (BuildId: 50e7f0033aac3a9cf133de2e08c7d0f2)
      #02 pc 00015217  /system/lib/libaaudio.so (aaudio::AudioStreamLegacy::processCallbackCommon(int, void*)+318) (BuildId: 50e7f0033aac3a9cf133de2e08c7d0f2)
      #03 pc 00031015  /system/lib/libaudioclient.so (android::AudioRecord::processAudioBuffer()+788) (BuildId: 3161bca2fda3372c9c3a6d5a71ef78b8)
      #04 pc 00031957  /system/lib/libaudioclient.so (android::AudioRecord::AudioRecordThread::threadLoop()+122) (BuildId: 3161bca2fda3372c9c3a6d5a71ef78b8)
      #05 pc 0000e8a9  /system/lib/libutils.so (android::Thread::_threadLoop(void*)+312) (BuildId: 93e563413029b25892ee0148b2d8b3f2)
      #06 pc 00080661  /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+84) (BuildId: 8f7945bf3ff3fae739d8b4b88561981c)
      #07 pc 000a553f  /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+20) (BuildId: 7e897e5635aa3ef130be5057e9ba1df0)
      #08 pc 0005f673  /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30) (BuildId: 7e897e5635aa3ef130be5057e9ba1df0)

Hey JAbleman19,
I am encountering the exact same issue.
Did you ever work out a fix, or a workaround for the issue?
I would very much like to know. Cheers :slight_smile:

Hey there Shane — unfortunately after about a week of trying various things, I did not find a fix in time as the project was time sensitive and ended up dumping a feature before launch.

That being said, something I did discover is that when I took out part of the interaction in my level earlier on it stopped crashing. Couldn’t tell you why but maybe that will help you. Good luck with this.