Assertion failed: ParentAnimClass->GetSparseClassDataStruct() [File:D:\build++UE5\Sync\Engine\Source\Editor\AnimGraph\Private\AnimBlueprintCompiler.cpp] [Line: 1268]




In case for those who had this error here is how to solve it download the three files then go:

  1. D:\UE_5.0\Engine\Source\Editor\AnimGraph\Private
    and replace all the files you downloaded
    Debug Error Ue5 - Google Drive

I just checked. These files are the normal 5.0 versions.

I am having the same issue.

Had the same issue, one of the animation blueprints in the hierarchy got corrupted and corrupted all of it’s children.
I suspect that it was created as a duplicate, rather than by right clicking on parent and creating a child blueprint class.

What solved the problem for me was recreating that part of hierarchy.

UAnimInstance

  • UMyAnimInstance
    • ABP_Base
      • ABP_Player
      • ABP_Enemy (this one was corrupted)
        • ABP_Enemy_A (so that this one couldn’t reach parent’s sparse class data struct)

Tried out re-saving the asset, refreshing all nodes, setting all of the settings to defaults, save - exit - open, no result. Only newly created ABP_Enemy and ABP_Enemy_A fixed the issue.

Hope it helps, and you don’t have too much to copy&paste there :stuck_out_tongue:

1 Like

The link doesn’t work, please help!

Dead link ):

I might be late to the party, I just encountered this error. (my suspicion) What triggered it for me was overriding the EventBlueprintInitializeAnimation on the AnimLayers blueprint and not calling parent function.

But once triggered it didn’t go away until I added a boolean bHasBaseAnim. So on EventBlueprintInitializeAnimation I check if base anim is valid and only then allow the update functions to run.

On BlueprintThreadSafeUpdateAnimation I have a branch connected to bHasBaseAnim that locks any further update afterwise.

Now I can compile the base anim without problems.

EDIT : Turns out it was overriding a threadsafe function in child AnimBP. Removing the override and restrating editor fixes the issue.