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

**URL:** <https://forums.unrealengine.com/t/ue4-help-crash-on-build-only-android-oculus-quest-2/243854>\
**Category:** Mobile\
**Tags:** unreal-engine, Android\
**Created:** [August 4, 2021, 2:23pm UTC](https://forums.unrealengine.com/t/ue4-help-crash-on-build-only-android-oculus-quest-2/243854 "2021-08-04T14:23:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JAbleman19](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jableman19/32/88719_2.png) [@JAbleman19](https://forums.unrealengine.com/u/JAbleman19)\
**Post date:** [August 4, 2021, 2:23pm UTC](https://forums.unrealengine.com/t/ue4-help-crash-on-build-only-android-oculus-quest-2/243854/1 "2021-08-04T14:23:23Z")

</div>

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

```auto
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

```

(edited)

_[4:02 PM]_

And the backtrace

```auto
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)

```

---

<div class="post-metadata">

**Author:** ![ShaneC](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ShaneC](https://forums.unrealengine.com/u/ShaneC)\
**Post date:** [September 27, 2021, 8:36am UTC](https://forums.unrealengine.com/t/ue4-help-crash-on-build-only-android-oculus-quest-2/243854/2 "2021-09-27T08:36:13Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![JAbleman19](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jableman19/32/88719_2.png) [@JAbleman19](https://forums.unrealengine.com/u/JAbleman19)\
**Post date:** [September 27, 2021, 12:31pm UTC](https://forums.unrealengine.com/t/ue4-help-crash-on-build-only-android-oculus-quest-2/243854/3 "2021-09-27T12:31:02Z")

</div>

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.
