# Array Generating a Crash Report on Startup

**URL:** <https://forums.unrealengine.com/t/array-generating-a-crash-report-on-startup/2739290>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [July 29, 2026, 6:41pm UTC](https://forums.unrealengine.com/t/array-generating-a-crash-report-on-startup/2739290 "2026-07-29T18:41:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Max20192011](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Max20192011](https://forums.unrealengine.com/u/Max20192011)\
**Post date:** [July 29, 2026, 6:41pm UTC](https://forums.unrealengine.com/t/array-generating-a-crash-report-on-startup/2739290/1 "2026-07-29T18:41:32Z")

</div>

Add a couple of arrays to your gameinstance, one for names and the other booleans.

e.g. NameArray and BoolArray

10 entries in each and set them to any values.

Create a function in a function library that access them.

e.g ReturnArrayValues

get gameinstance-\>Cast to MyGameIinstance

MyGamestance-\>Get NameArray

-\>GetBoolArray

Nothing else needs to be done.

Save all, Quit Unreal.

Reopen the project and while everything is loaded it will generate a crash report:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/a/3/9a3b2f859589a8cad1e12ab517dcb0e0bf64faea.png)

The message log shows the crash happens in the forEachloop - setting the wildcard seems to fix the issue. Please note I have not used anything (no forloops in code) to access the array.

What I want to know is what is causing it?

I am guessing that the function might be getting accessed before the array is defined but since it all happens while Unreal is loading the project, I am not sure how to track the issue down. This is on the Mac, so do not know if the same thing happens on the PC.
