UE 5.4.1 - How to diagnose? Assertion failed: (Index >=0) & (Index < ArrayNum)

Hello!

I’m currently taking an online course and the project I’m working on is a FPS shooter. Currently I’m working with animations, blend spaces, retargeting, aim offsets etc. but I have just run into an issue that crashes UE without fail. I have a set of animations that use the UE4 mannequin. Some of these are using different weapons, like a pistol or a rifle. Opening these animations before the retargeting is fine. They open, and I can see them performing as intended. The issue comes after I have set up another skeleton to use these animations, but ONLY the rifle related animations. When I attempt to open them, UE crashes and I get the following:

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: 68 into an array of size 68

How can I figure out what Array it is referencing? Is the problem the skeleton, the skeletal mesh, the rifle asset or the animation? I have so many questions, and I don’t know how to solve them on my own.

I guess I have a few options I could try if all else fails:

  1. Do the retargeting again.
  2. Do the retargeting with a different skeleton/mesh.

Thank you for your time.

1 Like

Greetings @PeacefulJim

Welcome back to the Unreal Engine Community Forum. The error you’re posting is because it’s trying to access an index out of bounds(It’s trying to access a file/files that don’t exist usually). If you’ve made any changes to your file names/calls or removed anything recently I’d start by checking to make sure none of it is still being called for in your existing files. I hope that helps! I’ll monitor the thread for future troubleshooting if it does not fix it. Thanks!

Hey Frosty,

Forgive me, but I’m still fairly new to UE, and my troubleshooting skills are not that great. How can I know which file specifically it is referencing, when you say it’s trying to reference something that doesn’t exist? Additionally, how do I check if something is being called for in my existing files if I don’t even know what part of it is causing the problem in the first place?

Thanks for your patience!

Hey! All good! So, I usually start by checking blueprint files. That’s where you’re going to see things being called to be used. There are some guides out there you can find from community members and such. (I’m a Googler and a YouTuber quite often when I run into problems myself) Also, do you recall any specific files that you may have had in the project but deleted or moved? (Including moving your project folder etc)

I managed to fix it, somehow. It was something to do with the IK Rig, and it not having “IK goals” set. I used the auto feature which sets those things automatically, and it seems to have worked for me, which is good, because I didn’t really know what I was doing, truth be told. The joys of learning! I would love it if the Crash Report was a bit more helpful. Nothing in it pointed to what the issue actually was.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.