Cook error. Assertion failed: Pair != nullptr

Cook error in 4.12.

I typed out a large paragraph about how I’m using backup assets from a corrupted save, but the only major error I can see in the compiler is

Assertion failed: Pair != nullptr [File:D:\Build++UE4+Release-4.12+Compile\Sync\Engine\Source\Runtime\Core\Public\Containers\Map.h] [Line: 520]

I’ve tried some of the other solutions I’ve seen, but they seem to have had no effect.

Any way i can resolve this would be appreciated as I can get it to play in-editor, but if it will never package then that’s a massive problem.

Thanks

Leyrr,

  • Please try to delete your Intermediate and Saved folders from your project.
  • Check to see whether or not you have any unused variables in any blueprint
  • Create a 4.13 and 4.14 version of your project, and see if the same issue happens

Let me know how it goes!

1 Like

Thank you for your reply.

  • Deleting both these folders appeared to have no impact.
  • Upgrading the 4.12 project to 4.14 and cleaning all decrepit blueprints results in this error

UATHelper: Cooking (Windows): UE4Editor-Cmd: [2017.01.11-16.38.14:117][ 0]LogWindows:Error: Assertion failed: !DependencyIndex.IsNull() [File:D:\Build++UE4+Release-4.14+Compile\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\SavePackage.cpp] [Line: 4600]
UATHelper: Cooking (Windows): UE4Editor-Cmd: [2017.01.11-16.38.14:128][ 0]LogWindows:Error: Failed to find dependency index for WidgetBlueprintGeneratedClass /Game/RTS_Game/HUDs/building_hud.building_hud_C (Function /Game/RTS_Game/Blueprints/Buildings/building_master_bp.building_master_bp_C:ExecuteUbergraph_building_master_bp)

  • I have a lot of blueprints in the 4.12 build, so any indication in which blueprint the variable might be would be of an immense help.

Thanks

Leyrr,

You need to look at your HUD ‘Building_HUD’ and possibly the function referencing the HUD in the Building_Master_BP blueprint. Have you already done that? It’s possible that you only need to reconnect the nodes, sometimes nodes are outdated when the project is updated with an engine version.

Thanks!