[4.7] Crash on casting player controller

Inside of a widget blueprint I cast the player’s controller to the custom “MyController” and then access a variable it has stored (custom character). The stored variable’s controller is gotten and that is stored. (the stored character has an AIController that gets stored).

No crash will occur until changes are made to the character’s blueprint (in this case changing values of its components) and the game is played.

Note: The crash can be avoided again by removing the above mentioned nodes and recreating them (in exactly the same way)

From Crash Report

Unknown exception - code 00000001 (first/second chance not available)

Assertion failed: ((UObject*)ContainerPtr)->IsA((UClass*)GetOuter()) [File:D:\BuildFarm\buildmachine_++depot+UE4-Releases+4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\UnrealType.h] [Line: 357]
‘MyController_C_0’ is of class 'MyControlle

Hello Sandstrike,

I have a few questions that will help narrow down what issue it is that you are experiencing.

Quick questions:

  1. Can you reproduce this issue in a clean project?
  2. If so, could you provide a detailed list of steps to reproduce this issue on our end?
  3. Could you provide screen shots of the blueprints involved with this issue?

It seems as of [4.7.1] I’m no longer having the issue. Thank you for your time.

Hello Sandstrike,

I am happy to hear that your issue has been resolved. I am going to mark this issue as resolved. If this problem reoccurs please feel free to post here and reopen this issue with any additional information.

Make it a great day