CreateWidget in GameInstance blueprint crashes Standalone

Having a CreateWidget blueprint node with certain UserWidget classes causes the engine to crash intermittently in Standalone.


The blueprint node isn’t even hooked up to anything, just having it in the GameInstance blueprint causes the game to crash.

This also happens if there is a variable in the GameInstance blueprint with a UserWidget type.

This only happens on some UMG widgets, we’ve tried a few of the widgets we’ve created and some actually work fine.

One of the symptoms of this bug is that other UI widgets will turn black on in-game menus.

The crash seems to occur under the following conditions in standalone:

  • When a unrelated in-game widget is created
  • When a button is pressed
  • When the standalone instance is started

We found the problem and fixed it by removing an offending ‘blueprint function library’ node:


At some point over the course of engine transitions the world context pin appeared in this macro and broke some widgets that were using it.

We replaced the node with some in-line code and the problem was solved.

I’ve attached the diagnostic output from the error.

[Diagnostics][2]

Hi ZakBlystone,

I am happy to hear this fixed your error. Which macro were you using? Was it a custom macro or one that is in the editor already?

It was a custom macro we had made.

Excellent. I will mark this as answered for tracking purposes. If you end up experiencing this error again, please post back and I’ll be happy to take another look.