Download

Error Compilling and building project with nativization (UE 4.21 and 4.24)

Hi, I’m struggling for some time with building my project with nativization feature. Basically when I’m trying to build it, either on 4.21 and 4.24 I keep to get these two errors. One is about BlueprintGeneratedClass


[2020.03.30-12.36.33:939]  0]LogOutputDevice: Error: === Handled ensure: ===
[2020.03.30-12.36.33:939]  0]LogOutputDevice: Error: 
[2020.03.30-12.36.33:939]  0]LogOutputDevice: Error: Ensure condition failed: PointerToUberGraphFrame->UberGraphFunctionKey == BPGC->UberGraphFunctionKey [File:D:\Build\++UE4\Sync\Engine\Source\Runtime\Engine\Private\BlueprintGeneratedClass.cpp] [Line: 1499]
[2020.03.30-12.36.33:939]  0]LogOutputDevice: Error: Detected key mismatch in uber graph frame for instance /Engine/Transient.TRASH_Default__BP_MinerAi_C_0 of type /Game/AI/NPC/BP_MinerAi.BP_MinerAi_C, iteration will be unsafe
[2020.03.30-12.36.33:939]  0]LogOutputDevice: Error: Stack: 
[2020.03.30-12.36.33:939]  0]LogOutputDevice: Error: [Callstack] 0x00007ff8a97a2e13 UE4Editor-Engine.dll!UnknownFunction ]
[2020.03.30-12.36.33:939]  0]LogOutputDevice: Error: [Callstack] 0x00007ff8b8356b9c UE4Editor-CoreUObject.dll!UnknownFunction ]
[2020.03.30-12.36.33:939]  0]LogOutputDevice: Error: [Callstack] 0x00007ff8b830f5fa UE4Editor-CoreUObject.dll!UnknownFunction ]
[2020.03.30-12.36.33:939]  0]LogOutputDevice: Error: [Callstack] 0x00007ff8b8316560 UE4Editor-CoreUObject.dll!UnknownFunction ]
[2020.03.30-12.36.33:939]  0]LogOutputDevice: Error: [Callstack] 0x00007ff8b92b0aec UE4Editor-Core.dll!UnknownFunction ]
[2020.03.30-12.36.33:939]  0]LogOutputDevice: Error: [Callstack] 0x00007ff8b92b1d70 UE4Editor-Core.dll!UnknownFunction ]
[2020.03.30-12.36.33:939]  0]LogOutputDevice: Error: [Callstack] 0x00007ff8b92bbaae UE4Editor-Core.dll!UnknownFunction ]
[2020.03.30-12.36.33:939]  0]LogOutputDevice: Error: [Callstack] 0x00007ff8b970c500 UE4Editor-Core.dll!UnknownFunction ]
[2020.03.30-12.36.33:939]  0]LogOutputDevice: Error: [Callstack] 0x00007ff8b96fcac1 UE4Editor-Core.dll!UnknownFunction ]
[2020.03.30-12.36.33:939]  0]LogOutputDevice: Error: [Callstack] 0x00007ff9194f7bd4 KERNEL32.DLL!UnknownFunction ]
[2020.03.30-12.36.33:939]  0]LogOutputDevice: Error: [Callstack] 0x00007ff9196cced1 ntdll.dll!UnknownFunction ]
[2020.03.30-12.36.33:939]  0]LogOutputDevice: Error: 
[2020.03.30-12.36.33:940]  0]LogStats:                SubmitErrorReport -  0.001 s
[2020.03.30-12.36.33:940]  0]LogStats:                    SendNewReport -  1.627 s
[2020.03.30-12.36.33:940]  0]LogStats:             FDebug::EnsureFailed -  3.400 s

From time to time, I’m also getting this error( about CPPBackEndGatherDependencies):


PackagingResults: Error: begin: stack for UAT
PackagingResults: Error: === Critical error: ===
PackagingResults: Error: Assertion failed: InClass [File:D:\Build\++UE4\Sync\Engine\Source\Developer\BlueprintCompilerCppBackend\Private\BlueprintCompilerCppBackendGatherDependencies.cpp] [Line: 484]
PackagingResults: Error: [Callstack] 0x00007ff9bb6da859 KERNELBASE.dll!UnknownFunction ]
PackagingResults: Error: [Callstack] 0x00007ff93723cd1a UE4Editor-Core.dll!UnknownFunction ]
PackagingResults: Error: [Callstack] 0x00007ff93701a967 UE4Editor-Core.dll!UnknownFunction ]
PackagingResults: Error: [Callstack] 0x00007ff936f50df7 UE4Editor-Core.dll!UnknownFunction ]
PackagingResults: Error: [Callstack] 0x00007ff928212eb4 UE4Editor-BlueprintCompilerCppBackend.dll!UnknownFunction ]
PackagingResults: Error: [Callstack] 0x00007ff9281ef5f5 UE4Editor-BlueprintCompilerCppBackend.dll!UnknownFunction ]
PackagingResults: Error: [Callstack] 0x00007ff9281d1475 UE4Editor-BlueprintCompilerCppBackend.dll!UnknownFunction ]
PackagingResults: Error: [Callstack] 0x00007ff928208313 UE4Editor-BlueprintCompilerCppBackend.dll!UnknownFunction ]
PackagingResults: Error: [Callstack] 0x00007ff9298d4ae2 UE4Editor-KismetCompiler.dll!UnknownFunction ]
PackagingResults: Error: [Callstack] 0x00007ff92978d829 UE4Editor-BlueprintNativeCodeGen.dll!UnknownFunction ]
PackagingResults: Error: [Callstack] 0x00007ff92979225b UE4Editor-BlueprintNativeCodeGen.dll!UnknownFunction ]
PackagingResults: Error: [Callstack] 0x00007ff92978e03a UE4Editor-BlueprintNativeCodeGen.dll!UnknownFunction ]
PackagingResults: Error: [Callstack] 0x00007ff9344429e4 UE4Editor-UnrealEd.dll!UnknownFunction ]
PackagingResults: Error: [Callstack] 0x00007ff9344bd3e4 UE4Editor-UnrealEd.dll!UnknownFunction ]
PackagingResults: Error: [Callstack] 0x00007ff93431a79b UE4Editor-UnrealEd.dll!UnknownFunction ]
PackagingResults: Error: [Callstack] 0x00007ff93434d0bf UE4Editor-UnrealEd.dll!UnknownFunction ]
PackagingResults: Error: [Callstack] 0x00007ff676cbed22 UE4Editor-Cmd.exe!UnknownFunction ]
PackagingResults: Error: [Callstack] 0x00007ff676cb5783 UE4Editor-Cmd.exe!UnknownFunction ]
PackagingResults: Error: [Callstack] 0x00007ff676cb59ea UE4Editor-Cmd.exe!UnknownFunction ]
PackagingResults: Error: [Callstack] 0x00007ff676cc48da UE4Editor-Cmd.exe!UnknownFunction ]
PackagingResults: Error: [Callstack] 0x00007ff676cc584e UE4Editor-Cmd.exe!UnknownFunction ]
PackagingResults: Error: [Callstack] 0x00007ff9bd357bd4 KERNEL32.DLL!UnknownFunction ]
PackagingResults: Error: [Callstack] 0x00007ff9bd90ced1 ntdll.dll!UnknownFunction ]
PackagingResults: Error: end: stack for UAT
PackagingResults: Error: Cook failed.
PackagingResults: Error: Unknown Cook Failure

Can anyone help me? I was trying to find the answer in this forum or in google, unfortunetaly without success. It’s really frustrating as I and my team are planning to release demo of our production, yet nativization seems to fail us everytine :frowning:

Thank you guys for help and for your time

It’s having issues with one of your AI blueprints.
/Game/AI/NPC/BP_MinerAi.BP_MinerAi_C Not sure why. You can check that one to make sure there isn’t anything weird with it, or just disable nativization for that specific BP.

The thing is, once I removed this blueprint, it starts the same error with other blueprints in the project assets. I’ve checked if everything is compiled successfully and there were no errors on normal build (without nativization).

Check out this thread: [Solved] Nativization - 4.20 worked, 4.21 does not (Circular dependency) - Blueprint Visual Scripting - Unreal Engine Forums

Looks like you may have some circular dependency. Looking at the code in C++, it’s complaining that you’re referencing some object that isn’t in the ubergraph frame (if you’re referencing yourself, then that would make since as you are still compiling that asset).