Cook failed with nativization

When I try to package my android project with exclusive nativization this error occurs.

Steps I take:

  1. I create interface and blueprint which implements that interface.

  2. set nativization exclusive.

  3. but only blueprint is included in nativization list, the interface is not.

  4. package the project and an error occurs and says I have to nativize also the interface.

  5. add the interface in the nativization list and re try packaging

  6. following error occurs

    LogCook: Display: Cooker output 021CA410461F5F5B934AA09EDB28A5CE: [2018.02.24-13.33.37:519][ 0]LogWindows: Error: begin: stack for UAT
    LogCook: Display: Cooker output 021CA410461F5F5B934AA09EDB28A5CE: [2018.02.24-13.33.37:519][ 0]LogWindows: Error: === Critical error: ===
    LogCook: Display: Cooker output 021CA410461F5F5B934AA09EDB28A5CE: [2018.02.24-13.33.37:519][ 0]LogWindows: Error:
    LogCook: Display: Cooker output 021CA410461F5F5B934AA09EDB28A5CE: [2018.02.24-13.33.37:519][ 0]LogWindows: Error: Assertion failed: (!ModuleInfo->bWasUnloadedAtShutdown) [File:D:\Build++UE4+Release-4.18+Compile\Sync\Engine\Source\Runtime\Core\Private\Modules\ModuleManager.cpp] [Line: 397]
    LogCook: Display: Cooker output 021CA410461F5F5B934AA09EDB28A5CE: [2018.02.24-13.33.37:519][ 0]LogWindows: Error: Attempted to load module ‘BlueprintCompilerCppBackend’ that was already unloaded at shutdown. FModuleManager::LoadModule() was called to load a module that was previously loaded, and was unloaded at shutdown time. If this assert goes off, your trying to load a module during the shutdown phase that was already cleaned up. The easiest way to fix this is to change your code to query for an already-loaded module instead of trying to load it directly.
    LogCook: Display: Cooker output 021CA410461F5F5B934AA09EDB28A5CE: [2018.02.24-13.33.37:520][ 0]LogWindows: Error:
    LogCook: Display: Cooker output 021CA410461F5F5B934AA09EDB28A5CE: [2018.02.24-13.33.37:520][ 0]LogWindows: Error:
    LogCook: Display: Cooker output 021CA410461F5F5B934AA09EDB28A5CE: [2018.02.24-13.33.37:520][ 0]LogWindows: Error: [Callstack] 0x000000005BF83FB8 KERNELBASE.dll!UnknownFunction []
    LogCook: Display: Cooker output 021CA410461F5F5B934AA09EDB28A5CE: [2018.02.24-13.33.37:520][ 0]LogWindows: Error: [Callstack] 0x000000003EB376D4 UE4Editor-ApplicationCore.dll!FWindowsErrorOutputDevice::Serialize() [d:\build++ue4+release-4.18+compile\sync\engine\source\runtime\applicationcore\private\windows\windowserroroutputdevice.cpp:65]
    LogCook: Display: Cooker output 021CA410461F5F5B934AA09EDB28A5CE: [2018.02.24-13.33.37:520][ 0]LogWindows: Error: [Callstack] 0x000000003163330B UE4Editor-Core.dll!FOutputDevice::Logf__VA() [d:\build++ue4+release-4.18+compile\sync\engine\source\runtime\core\private\misc\outputdevice.cpp:70]
    LogCook: Display: Cooker output 021CA410461F5F5B934AA09EDB28A5CE: [2018.02.24-13.33.37:520][ 0]LogWindows: Error: [Callstack] 0x00000000315C47F9 UE4Editor-Core.dll!FDebug::AssertFailed() [d:\build++ue4+release-4.18+compile\sync\engine\source\runtime\core\private\misc\assertionmacros.cpp:414]
    LogCook: Display: Cooker output 021CA410461F5F5B934AA09EDB28A5CE: [2018.02.24-13.33.37:521][ 0]LogWindows: Error: [Callstack] 0x00000000316C1F3E UE4Editor-Core.dll!FModuleManager::LoadModuleWithFailureReason() [d:\build++ue4+release-4.18+compile\sync\engine\source\runtime\core\private\modules\modulemanager.cpp:397]
    LogCook: Display: Cooker output 021CA410461F5F5B934AA09EDB28A5CE: [2018.02.24-13.33.37:521][ 0]LogWindows: Error: [Callstack] 0x00000000316C1593 UE4Editor-Core.dll!FModuleManager::LoadModule() [d:\build++ue4+release-4.18+compile\sync\engine\source\runtime\core\private\modules\modulemanager.cpp:338]
    LogCook: Display: Cooker output 021CA410461F5F5B934AA09EDB28A5CE: [2018.02.24-13.33.37:521][ 0]LogWindows: Error: [Callstack] 0x00000000316C1707 UE4Editor-Core.dll!FModuleManager::LoadModuleChecked() [d:\build++ue4+release-4.18+compile\sync\engine\source\runtime\core\private\modules\modulemanager.cpp:349]
    LogCook: Display: Cooker output 021CA410461F5F5B934AA09EDB28A5CE: [2018.02.24-13.33.37:521][ 0]LogWindows: Error: [Callstack] 0x0000000019B71CCE UE4Editor-BlueprintNativeCodeGen.dll!FBlueprintNativeCodeGenModule::ShutdownModule() [d:\build++ue4+release-4.18+compile\sync\engine\source\developer\blueprintnativecodegen\private\blueprintnativecodegenmodule.cpp:371]
    LogCook: Display: Cooker output 021CA410461F5F5B934AA09EDB28A5CE: [2018.02.24-13.33.37:522][ 0]LogWindows: Error: [Callstack] 0x00000000316E74B7 UE4Editor-Core.dll!FModuleManager::UnloadModulesAtShutdown() [d:\build++ue4+release-4.18+compile\sync\engine\source\runtime\core\private\modules\modulemanager.cpp:694]
    LogCook: Display: Cooker output 021CA410461F5F5B934AA09EDB28A5CE: [2018.02.24-13.33.37:522][ 0]LogWindows: Error: [Callstack] 0x00000000983B47D6 UE4Editor-Cmd.exe!FEngineLoop::Exit() [d:\build++ue4+release-4.18+compile\sync\engine\source\runtime\launch\private\launchengineloop.cpp:2888]
    LogCook: Display: Cooker output 021CA410461F5F5B934AA09EDB28A5CE: [2018.02.24-13.33.37:522][ 0]LogWindows: Error: [Callstack] 0x00000000983B5465 UE4Editor-Cmd.exe!GuardedMain() [d:\build++ue4+release-4.18+compile\sync\engine\source\runtime\launch\private\launch.cpp:177]
    LogCook: Display: Cooker output 021CA410461F5F5B934AA09EDB28A5CE: [2018.02.24-13.33.37:523][ 0]LogWindows: Error: [Callstack] 0x00000000983B54AA UE4Editor-Cmd.exe!GuardedMainWrapper() [d:\build++ue4+release-4.18+compile\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:134]
    LogCook: Display: Cooker output 021CA410461F5F5B934AA09EDB28A5CE: [2018.02.24-13.33.37:523][ 0]LogWindows: Error: [Callstack] 0x00000000983C2379 UE4Editor-Cmd.exe!WinMain() [d:\build++ue4+release-4.18+compile\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:210]
    LogCook: Display: Cooker output 021CA410461F5F5B934AA09EDB28A5CE: [2018.02.24-13.33.37:523][ 0]LogWindows: Erro
    LogCook: Display: Cooker output 021CA410461F5F5B934AA09EDB28A5CE: r: [Callstack] 0x00000000983C3193 UE4Editor-Cmd.exe!__scrt_common_main_seh() [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:253]
    LogCook: Display: Cooker output 021CA410461F5F5B934AA09EDB28A5CE: [2018.02.24-13.33.37:552][ 0]LogWindows: Error: [Callstack] 0x000000005CE01FE4 KERNEL32.DLL!UnknownFunction []
    LogCook: Display: Cooker output 021CA410461F5F5B934AA09EDB28A5CE: [2018.02.24-13.33.37:552][ 0]LogWindows: Error: [Callstack] 0x000000005EF4EF91 ntdll.dll!UnknownFunction []
    LogCook: Display: Cooker output 021CA410461F5F5B934AA09EDB28A5CE: [2018.02.24-13.33.37:552][ 0]LogWindows: Error: [Callstack] 0x000000005EF4EF91 ntdll.dll!UnknownFunction []
    LogCook: Display: Cooker output 021CA410461F5F5B934AA09EDB28A5CE: [2018.02.24-13.33.37:552][ 0]LogWindows: Error:
    LogCook: Display: Cooker output 021CA410461F5F5B934AA09EDB28A5CE: [2018.02.24-13.33.37:552][ 0]LogWindows: Error: end: stack for UAT
    LogCook: Error: Child cooker 021CA410461F5F5B934AA09EDB28A5CE returned error code -1073741819

After I face the issue in my project, I can’t do nativization even in a new blank project. It’s like something triggers something, and BlueprintCompilerCppBackend module is unloaded while cooking.

I tried clearing Intermediate and Saved folders but that doesnt work

But when I uninstall and re install the engine, that error disappear.

Ever find the issue? Running into the same problem here.

Dont know what is the cause exactly.
That problem not occur in 4.19 preview version. But havent test in stable 4.19 one.