Infamous Array out of Bounds Build Error

Hey all,

I’m getting the infamous Array of size 0 error when opening the packaged build of my game. I tried deleting the Intermediate and Binaries folders before packaging but nothing changed.

Array of Size 0

Can anyone help me track this down? Is there a standard operating procedure for doing this that I’m not aware of?

Thanks in advance for any of your help.

CorsairOfLight

UPDATE

I’ve gone through my blueprints and disabled mass sections down to the last blueprint-- still no results in packaging.

I’ve heard that sometimes plugins cause these Array out of Bounds errors. Anybody think that’s what is happening?

CorsairOfLight

You can debug packaged game with visual studio to find out where that comes from.
Make sure there is PDB file with the executable.

1 Like

Thanks! How do I generate one of those? I can’t seem to find the PDB file anywhere so far.

CorsairOfLight

Anybody know how to generate that file? Do you do it through the debug packaging?

I’m not super familiar with packaging, expected someone who knows to chime in…
Have you looked into this? https://unrealcommunity.wiki/debugging-a-packaged-build-o9c2ta8f

When you package you have everything - before packaging head over to Window → Debugging Tools? → Output Log

This may come in handy in every day use as well

When packaging fails you will get at the end (but not the VERY end) an URL with generated file with more info

Mostly there’s not to much to catch out or it’s hard to understand

Just to mention my lil story - I couldn’t build a game until I manually recreated parts (removed and placed exactly same stuff back) that gave me errors and for whatever reason it was gone

That happens to me mostly if I change something in the code that includes changing References to some Actors/Components

I cannot tell what your issue is but the Output Log will show you the path to the generated error file :ok_hand:

One more tip - create a blank project without any content

Migrate your project there (easiest method is to migrate a Level as it will take everything it contains so if you place your Player there it will get migrated as well)

Go to Project Settings to fix missing stuff (new project doesn’t have axis/input mappings, selected GameMode or level etc)

Save everything, run the game once to see if it’s all looking okay

PACKAGE!

That always works for me ;]

Hey again, I just stumbled upon this thread and you may want to check inside of it :slight_smile:

Correct me if I’m wrong, but I don’t think his errors come from the packaging itself / automation tool, but rather it is a crash that happens when running the shipping build.

When I compile source code, .exe and .pdb files are generated in Binaries/Win64/ folder, even for shipping.

Thank you thank you for all of your tips! I will be sure to use them on my next build. You may get points for answering with a solution soon!

Thanks man, worked 100%

1 Like

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