Custom Widget disappears after reopening project

I have a custom Widget that for some reason is disappearing when I close the project and open it again.

Sadly I have not been able to reproduce it yet. But what could be causing this?

I’m using 4.15, but it was also happening in 4.14

First it looks like this:

127090-widget_disappears4.jpg

I save Widget_GameHUD, open project again and it looks like this:

Save it again, reopen and now it’s gone:

127091-widget_disappears3.jpg

I made a video: 2017 02 20 16 57 40 - YouTube

Widget_GameHUD contains Widget_Abilities_Box (second custom widget) which is made of an horizontal box with 6 Widget_Ability_Box (another custom widget)

Hello Ghar,

Could you use the reference viewer to check for circular dependencies? If you find any could you try and break these for testing purposes and let me know if the issue still occurs when there are now circular dependencies?

I found an indirect circular dependency. BP_PlayerController → Widget_MainHUD → Widget_AbilitiesBox → Widget_AbilityBox → BP_PlayerController

I got rid of it and it works ok now! Thanks.

I’m having the same problem…

Indirect circular dependency? Can you send a screenshot of it please :smiley:

In our case we had issues with deprecation. We had a parent class for the widgets (c++) that were deprecated. Widgets kept displaying correctly. After making changes to the widget containing the widgets with deprecated parent, they simply were gone after editor restart.

The editor was throwing deprecation warnings for another widget after the change, but not for these. Changing the parent of the affected widgets to UserWidget resolved the issue.