Using Cast to on game mode causes uasset corruption

We have a custom game mode blueprint. If in a blueprint we use the node “get game mode” and use the “cast to” node for our type, it will work fine until we close the editor and try to reopen the project (I can even run the game and things work). After closing the editor and reopening, the project gets stuck on loading at 71-72% and will never finish. This then results in needing to go dig out a backup of the file that contained the cast to retrieve any lost work. I confirmed this happens both from a character blueprint as well as a HUD element.

Hello Dan Doptis,

I am having trouble reproducing this issue on our end. I have a couple quick questions that will help me narrow down your issue.

  1. Can you reproduce this issue in a new project?
  2. If so, could you provide a detailed list of steps so I can reproduce the issue on my end?
  3. Could you provide screenshots of you gamemode and other related Blueprints?

Thanks!