# Oculus Quest 2 App crash 

**URL:** <https://forums.unrealengine.com/t/oculus-quest-2-app-crash/510832>\
**Category:** Mobile\
**Tags:** unreal-engine, Android, UE4-27, question\
**Created:** [March 30, 2022, 8:10am UTC](https://forums.unrealengine.com/t/oculus-quest-2-app-crash/510832 "2022-03-30T08:10:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nodnord](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nodnord](https://forums.unrealengine.com/u/Nodnord)\
**Post date:** [March 30, 2022, 8:10am UTC](https://forums.unrealengine.com/t/oculus-quest-2-app-crash/510832/1 "2022-03-30T08:10:26Z")

</div>

Hi all.  
Really need help or a tip: I built a project for Android on Oculus Quest 2 (ASTC). The project consists of two levels.  
Each level has its own GM blueprint and its own player character blueprint.  
Not always, but sometimes, when changing levels, the app crashes. This is what the logs say:

```auto
03-29 17:21:33.333 21339 21499 D UE4 : Assertion failed: (Index >= 0) & (Index < ArrayNum) [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/Core/Public\Containers/Array.h] [Line: 703]
03-29 17:21:33.333 21339 21499 D UE4 : Array index out of bounds: 1 from an array of size 1
03-29 17:21:33.333 21339 21499 D UE4 : [2022.03.29-14.21.33:333][549]Assertion failed: (Index >= 0) & (Index < ArrayNum) [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/Core/Public\Containers/Array.h] [Line: 703]
03-29 17:21:33.333 21339 21499 D UE4 : Array index out of bounds: 1 from an array of size 1
03-29 17:21:33.333 21339 21499 D UE4 : [2022.03.29-14.21.33:333][549]LogAndroid: Error: === Critical error: ===
03-29 17:21:33.333 21339 21499 D UE4 : [2022.03.29-14.21.33:333][549]LogAndroid: Error:
03-29 17:21:33.333 21339 21499 D UE4 : [2022.03.29-14.21.33:333][549]LogAndroid: Error: Assertion failed: (Index >= 0) & (Index < ArrayNum) [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/Core/Public\Containers/Array.h] [Line: 703]
03-29 17:21:33.334 21339 21499 D UE4 : [2022.03.29-14.21.33:333][549]LogAndroid: Error: Array index out of bounds: 1 from an array of size 1
03-29 17:21:33.334 21339 21499 D UE4 : [2022.03.29-14.21.33:334][549]LogAndroid: Error:
03-29 17:21:33.334 21339 21499 D UE4 : [2022.03.29-14.21.33:334][549]LogAndroid: Error:
03-29 17:21:33.346 21339 21499 D UE4 : [2022.03.29-14.21.33:346][549]LogExit: Executing StaticShutdownAfterError

```

Can anyone tell me what is this means ? Or in what is the direction to look information for?

---

<div class="post-metadata">

**Author:** ![MOTYSHIZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MOTYSHIZ](https://forums.unrealengine.com/u/MOTYSHIZ)\
**Post date:** [September 14, 2022, 7:40pm UTC](https://forums.unrealengine.com/t/oculus-quest-2-app-crash/510832/2 "2022-09-14T19:40:47Z")

</div>

Hello there, I’m having the exact same issue with the exact same repro steps/setup and error messages.  
Were you able to find a solution or at least find a way to get a more detailed stack trace from your Quest 2?

---

<div class="post-metadata">

**Author:** ![Nodnord](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nodnord](https://forums.unrealengine.com/u/Nodnord)\
**Post date:** [September 27, 2022, 8:43am UTC](https://forums.unrealengine.com/t/oculus-quest-2-app-crash/510832/3 "2022-09-27T08:43:10Z")

</div>

No, I still haven’t found a solution. I had to find the problematic module in my program that causes this error and turn it off.

---

<div class="post-metadata">

**Author:** ![MOTYSHIZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MOTYSHIZ](https://forums.unrealengine.com/u/MOTYSHIZ)\
**Post date:** [October 4, 2022, 3:30pm UTC](https://forums.unrealengine.com/t/oculus-quest-2-app-crash/510832/4 "2022-10-04T15:30:46Z")

</div>

I actually did find a solution, and that for me it was caused by messages being printed to screen early when a level was loaded.  
In shipping builds, there is no issue because printing to screen is disabled.  
For a quick fix and testing for development builds, there is the option of disabling screenmessages via a “DisableAllScreenMessages” console command on GameInstance initialization.  
A more solid fix would be to just make sure nothing is printing to screen at the beginning of a map load.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/4/9/84999f94ba24d792a614bd2e8f9932fd5b4b7e3d.png)

---

<div class="post-metadata">

**Author:** ![Nodnord](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nodnord](https://forums.unrealengine.com/u/Nodnord)\
**Post date:** [May 2, 2023, 6:10am UTC](https://forums.unrealengine.com/t/oculus-quest-2-app-crash/510832/5 "2023-05-02T06:10:26Z")

</div>

Sometimes switch between developers build and shipping can help
