Adding Widget Component to PawnMaster causes stack overflow

Hello!

We’re trying to add a Widget Component to each of our pawns by adding it to the PawnMaster, and then go through each of our remaining (287) pawns and recompiling and saving all of them. It plays fine in test levels within the editor, but upon closing and reopening the editor, we’re met with a stack overflow, and a break at LinkerLoad::2316.

Has this been solved in a newer version of the engine? If so, what was the change? If not, is there anything we can do about it?

Here’s a picture of my callstack:

Hi Daniel,

This usually happens when content has big dependency tree. The engine tries to verify all the dependencies (imports) and does that recursively (verifies import of imports of imports…).

One way of solving this would be to flatten the tree. It’s something you’d need to do on the content/game side.

The other way is to increase the default stack size in UBT (look for /STACK).

When you say UBT, you’re talking about the UnrealBuildTool.cs file, correct? I don’t see anything to do with /STACK in there.

I mean UnrealBuildTool in general. You can set the windows specific stack size in VCToolChain.cs:

Arguments.Append(" /STACK:5000000");