Unreal Engine 5.1 Crash Bug Report Array index out of bounds: 111 from an array of size 106

Can report that this nanite thing seemed to fix my issue —the engine wanted SM6 enabling and showed a dialogue box

Project Settings/Platforms/Windows/D3d12 Targeted Shader Formats --then enable SM6

I’m having the exact same problem in both 5.3 and 5.4 preview. This has nothing to do with Nanite and I have no Animation Blue Print. I am working with a control rig component in a character blueprint though.

Sorry to bump this topic, but It seems this was never solved.

2 Likes

A little more information on this problem that has me stumped. I’m not sure what to try next. I’m running 5.3.2 from the market place. I’ve completely rebuilt my project and reimported the assets.

From the stack trace I surmise that this is happening in my control rig. I have a control rig component in a Non-playing character blueprint. I’m not using any arrays in the control rig blueprint itself. I’ve gone through my entire character blueprint to make sure every place I use an array, I check the length before trying to access a member.

The weird thing is the this just happens at random times, sometimes while PIE and sometimes when I’m sitting idle and just staring at my code in editor.

Any help or ideas would be hugely appreciated.

The stack trace:

Assertion failed: (Index >= 0) & (Index < ArrayNum) [File:D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Public\Containers\Array.h] [Line: 771] Array index out of bounds: 0 from an array of size 0

UnrealEditor_ControlRig
UnrealEditor_Renderer
UnrealEditor_Renderer
UnrealEditor_Renderer
UnrealEditor_Renderer
UnrealEditor_Renderer
UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_Renderer
UnrealEditor_Renderer
UnrealEditor_Renderer
UnrealEditor_Renderer
UnrealEditor_Renderer
UnrealEditor_Renderer
UnrealEditor_Renderer
UnrealEditor_Renderer
UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_RenderCore
UnrealEditor_RenderCore
UnrealEditor_Core
UnrealEditor_Core
kernel32
ntdll

Since this morning I am having this problem too. 5 crashes, 1 every 5 minutes… I am working wiith Metasound, but the error messages regarding an array are the same…

Hello, every one for reading this message, i have a same problem, and i found it made by Nanite System, The Nanite System is the key. So, i Close every option about enable Nanite in static mesh rightmenu, the, the bake is success.But, the FPS in enable Nanite is 120, the FPS in disable Nanite is 70. :joy:
hope this information can help you!

1 Like

Here in 5.3.1 and it’s still crashing after setting up Advanced Grid Inventory System in a new and current project. I’m honestly frustrated at this point I spent ($103FJD) on this and I get this bug.

Assertion failed: (Index >= 0) & (Index < ArrayNum) [File:D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Containers\Array.h] [Line: 771]
Array index out of bounds: 0 from an array of size 0

0x00007ffd5a33c175 UnrealEditor-Engine.dll!UnknownFunction
0x00007ffd5a3aba96 UnrealEditor-Engine.dll!UnknownFunction
0x00007ffd5a01101a UnrealEditor-Engine.dll!UnknownFunction
0x00007ffd821ea7d6 UnrealEditor-AnimGraphRuntime.dll!UnknownFunction
0x00007ffd9fcaa2d9 UnrealEditor-AnimGraph.dll!UnknownFunction
0x00007ffd9fb51072 UnrealEditor-AnimGraph.dll!UnknownFunction
0x00007ffd9fb51a11 UnrealEditor-AnimGraph.dll!UnknownFunction
0x00007ffd9fb50948 UnrealEditor-AnimGraph.dll!UnknownFunction
0x00007ffd9fb4e599 UnrealEditor-AnimGraph.dll!UnknownFunction
0x00007ffd848dae02 UnrealEditor-KismetCompiler.dll!UnknownFunction
0x00007ffd848df281 UnrealEditor-KismetCompiler.dll!UnknownFunction
0x00007ffd848d1f0a UnrealEditor-KismetCompiler.dll!UnknownFunction
0x00007ffd926cc4a4 UnrealEditor-Kismet.dll!UnknownFunction
0x00007ffd926c9403 UnrealEditor-Kismet.dll!UnknownFunction
0x00007ffdbfa61e30 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd28dd2 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd4f672 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd26a1d UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd4f672 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd274a0 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd2935b UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd5048e UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbff7d3f5 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd1b22e UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd8218b UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd7ffd0 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd8228e UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd7ffd0 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd7fc34 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd311b6 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd6839f UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd7bb9c UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd2b20b UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd4ae69 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbff7d08d UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd1b22e UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd8218b UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd7ffd0 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd8228e UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd7ffd0 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd7fc34 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd311b6 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd6839f UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd7bb9c UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd2b20b UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd4ae69 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbff7d08d UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd1b22e UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd8218b UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd7ffd0 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd8228e UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd7ffd0 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd7fc34 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd311b6 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd6839f UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd7bb9c UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd2b20b UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd4ae69 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbff7d08d UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd1b22e UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd8218b UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd7ffd0 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd8228e UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd7ffd0 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd7fc34 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd311b6 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd6839f UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd7bb9c UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd2b20b UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbfd4ae69 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbff7d08d UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbff7b918 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffdbff7beb6 UnrealEditor-CoreUObject.dll!UnknownFunction
0x00007ffd5516b8f2 UnrealEditor-UnrealEd.dll!UnknownFunction
0x00007ffd55156adf UnrealEditor-UnrealEd.dll!UnknownFunction
0x00007ffd5513f2cf UnrealEditor-UnrealEd.dll!UnknownFunction
0x00007ffdb1b047a6 UnrealEditor-Core.dll!UnknownFunction
0x00007ffd5c01ee5b UnrealEditor-Engine.dll!UnknownFunction
0x00007ffd55ce2250 UnrealEditor-UnrealEd.dll!UnknownFunction
0x00007ffd5553fcc0 UnrealEditor-UnrealEd.dll!UnknownFunction
0x00007ffd5553f461 UnrealEditor-UnrealEd.dll!UnknownFunction
0x00007ffd55d267ee UnrealEditor-UnrealEd.dll!UnknownFunction
0x00007ffd55cde6f3 UnrealEditor-UnrealEd.dll!UnknownFunction
0x00007ff6dee0d138 UnrealEditor.exe!UnknownFunction
0x00007ff6dee0d37a UnrealEditor.exe!UnknownFunction
0x00007ff6dee10854 UnrealEditor.exe!UnknownFunction
0x00007ff6dee26984 UnrealEditor.exe!UnknownFunction
0x00007ff6dee29d7a UnrealEditor.exe!UnknownFunction
0x00007ffe25a0257d KERNEL32.DLL!UnknownFunction

me too exact same error.

Assertion failed: (Index >= 0) & (Index < ArrayNum) [File:D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Containers\Array.h] [Line: 758]
Array index out of bounds: 0 into an array of size 0

UnrealEditor_HairStrandsCore
UnrealEditor_HairStrandsCore
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_Core
UnrealEditor_Engine
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
kernel32
ntdll

1 Like

Im having this issue in 5.4.2… still isnt fixed it seems… crashes randomly between 1-30 minutes.

5.4.4 same. No idea why, but crash in editor, no pie

I also am working on a animation rig trying to work out the new animation system on 5.4.

I’m currently etargeting animations from Animation Sample Pack (provided by Epic) to my bought character asset. I get to the point where the character’s head follows the camera movement and the game is running fine but whenever I start moving the Unreal crashes and I get the following error:

Error: appError called: Assertion failed: (Index >= 0) & (Index < ArrayNum) [File:D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Containers\ArrayView.h] [Line: 313]
Array index out of bounds: -1 from an array of size 237

It seems something goes missing or corrupted during the retargeting process or there is something in the model that the Animation Rig system does not like. (Extra bag etc)

In this topic there was a comment by Shermanimation:

"I have ran into this a couple times, and my fix has been to remove the blend profile FastFeet and weight blend profiles that are on the mannequin skeleton. "

I tried to clean up any blend profiles but my target skeleton didn’t have any. It’s possible I just missed them as I haven’t really used them or built my own skeleton. I don’t feel like I should be messing around with the source skeleton as that will surely blew this thing up.

All the other models from the animation sample pack work just fine. I had some trouble with the current animation system and my hands are acting weird. These must be related somehow but as I’m discarding the old animations I don’t bother with the existing files.

I will now try to import the model with skeletons directly to the animation sample project and retarget it there. If I get the same error I’ll come back to report.

EDIT: The above worked. Apparently I need to choose a set of animations when I do the retargeting and the guy in the tutorial didn’t do it. So it didn’t have any of the referenced animations and that’s what gave the error.

It also usually happens when you apply Nanite to an object and at the same time you make some adjustments to the UVs, well my solution has been to go to the “Content Browser” and change the display in the pinion to “columns” to be able to see all the fields of each object and then in the look at which ones I applied the Nanite and among them remove the Nanite to which one may be giving the problem, save and voila the error goes away and allows me to compile, then I apply Nanite but I have to test one by one


The crash prompt window that appears when I run the packaging program and kill a certain number of monsters.
In my case, the error that occurs when this happens is because I connected the destruction actor to the montage interruption while delaying the destruction of the monster. The reason for the error may be that the system is trying to destroy a non-existent actor。Adjusting the animation time does not solve the problem, the key is not to connect both at the same time to destroy actor.