If I cook (or package) my project using the default (game) configuration, all is fine.
However, if I cook for configuration “WindowsServer” with UE 4.18.2, an Assertion Failure occurs, and the process is aborted. Cooking for dedicated server is required for blueprint nativization, so I cannot skip this. I use the following command line, which worked fine for me using UE 4.18.0:
"D:\Games\Unreal Launcher\Epic Games\UE_source\Engine\Binaries\Win64\UE4Editor-Cmd.exe" D:\Projects\Unreal\TestProject\TestProject.uproject -run=Cook -NoLogTimes -TargetPlatform=WindowsServer -fileopenlog -unversioned -stdout -CrashForUAT -unattended -UTF8Output
Building the server (without cooking) works fine, but the result will not run due to missing BP nativized assets.
Anyway, the assertion also occurs if I disable Blueprint nativization.
This is the relevant part of the log:
LogTargetPlatformManager: Display: Building Assets For WindowsServer
LogWindows: Error: begin: stack for UAT
LogWindows: Error: === Critical error: ===
LogWindows: Error:
LogWindows: Error: Assertion failed: PlatformFormats.Num() [File:D:\Games\Unreal Launcher\Epic Games\UE_source\Engine\Source\Runtime\Engine\Private\TextureDerivedData.cpp] [Line: 371]
LogWindows: Error:
LogWindows: Error:
LogWindows: Error:
LogWindows: Error: [Callstack] 0x000000003FA13FB8 KERNELBASE.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x00000000315870E4 UE4Editor-ApplicationCore.dll!FWindowsErrorOutputDevice::Serialize() [d:\games\unreal launcher\epic games\ue_source\engine\source\runtime\applicationcore\private\windows\windowserroroutputdevice.cpp:65]
LogWindows: Error: [Callstack] 0x000000000BC478FB UE4Editor-Core.dll!FOutputDevice::Logf__VA() [d:\games\unreal launcher\epic games\ue_source\engine\source\runtime\core\private\misc\outputdevice.cpp:70]
LogWindows: Error: [Callstack] 0x000000000BBD9988 UE4Editor-Core.dll!FDebug::AssertFailed() [d:\games\unreal launcher\epic games\ue_source\engine\source\runtime\core\private\misc\assertionmacros.cpp:414]
LogWindows: Error: [Callstack] 0x00000000F9A62BF8 UE4Editor-Engine.dll!GetBuildSettingsForRunningPlatform() [d:\games\unreal launcher\epic games\ue_source\engine\source\runtime\engine\private\texturederiveddata.cpp:372]
LogWindows: Error: [Callstack] 0x00000000F9A52D15 UE4Editor-Engine.dll!UTexture::CachePlatformData() [d:\games\unreal launcher\epic games\ue_source\engine\source\runtime\engine\private\texturederiveddata.cpp:1088]
LogWindows: Error: [Callstack] 0x00000000F9A819A9 UE4Editor-Engine.dll!UTexture2D::Serialize() [d:\games\unreal launcher\epic games\ue_source\engine\source\runtime\engine\private\texture2d.cpp:249]
LogWindows: Error: [Callstack] 0x000000000B66AF60 UE4Editor-CoreUObject.dll!FLinkerLoad::Preload() [d:\games\unreal launcher\epic games\ue_source\engine\source\runtime\coreuobject\private\uobject\linkerload.cpp:3300]
LogWindows: Error: [Callstack] 0x000000000B74B179 UE4Editor-CoreUObject.dll!EndLoad() [d:\games\unreal launcher\epic games\ue_source\engine\source\runtime\coreuobject\private\uobject\uobjectglobals.cpp:1554]
LogWindows: Error: [Callstack] 0x000000000B75E789 UE4Editor-CoreUObject.dll!LoadPackageInternal() [d:\games\unreal launcher\epic games\ue_source\engine\source\runtime\coreuobject\private\uobject\uobjectglobals.cpp:1333]
LogWindows: Error: [Callstack] 0x000000000B75DBE0 UE4Editor-CoreUObject.dll!LoadPackage() [d:\games\unreal launcher\epic games\ue_source\engine\source\runtime\coreuobject\private\uobject\uobjectglobals.cpp:1430]
LogWindows: Error: [Callstack] 0x000000000B7731F7 UE4Editor-CoreUObject.dll!ResolveName() [d:\games\unreal launcher\epic games\ue_source\engine\source\runtime\coreuobject\private\uobject\uobjectglobals.cpp:798]
LogWindows: Error: [Callstack] 0x000000000B77C144 UE4Editor-CoreUObject.dll!StaticLoadObjectInternal() [d:\games\unreal launcher\epic games\ue_source\engine\source\runtime\coreuobject\private\uobject\uobjectglobals.cpp:886]
LogWindows: Error: [Callstack] 0x000000000B77B8E5 UE4Editor-CoreUObject.dll!StaticLoadObject() [d:\games\unreal launcher\epic games\ue_source\engine\source\runtime\coreuobject\private\uobject\uobjectglobals.cpp:953]
LogWindows: Error: [Callstack] 0x00000000F9AFE50E UE4Editor-Engine.dll!LoadSpecialMaterial() [d:\games\unreal launcher\epic games\ue_source\engine\source\runtime\engine\private\unrealengine.cpp:1811]
LogWindows: Error: [Callstack] 0x00000000F9AF6E34 UE4Editor-Engine.dll!UEngine::InitializeObjectReferences() [d:\games\unreal launcher\epic games\ue_source\engine\source\runtime\engine\private\unrealengine.cpp:1887]
LogWindows: Error: [Callstack] 0x00000000F75382FF UE4Editor-UnrealEd.dll!UEditorEngine::InitializeObjectReferences() [d:\games\unreal launcher\epic games\ue_source\engine\source\editor\unrealed\private\editorengine.cpp:809]
LogWindows: Error: [Callstack] 0x00000000F9AF226A UE4Editor-Engine.dll!UEngine::Init() [d:\games\unreal launcher\epic games\ue_source\engine\source\runtime\engine\private\unrealengine.cpp:1205]
LogWindows: Error: [Callstack] 0x00000000F75378A5 UE4Editor-UnrealEd.dll!UEditorEngine::InitEditor() [d:\games\unreal launcher\epic games\ue_source\engine\source\editor\unrealed\private\editorengine.cpp:575]
LogWindows: Error: [Callstack] 0x00000000921EC589 UE4Editor-Cmd.exe!FEngineLoop::PreInit() [d:\games\unreal launcher\epic games\ue_source\engine\source\runtime\launch\private\launchengineloop.cpp:2115]
LogWindows: Error: [Callstack] 0x00000000921E3EA7 UE4Editor-Cmd.exe!GuardedMain() [d:\games\unreal launcher\epic games\ue_source\engine\source\runtime\launch\private\launch.cpp:127]
LogWindows: Error: [Callstack] 0x00000000921E410A UE4Editor-Cmd.exe!GuardedMainWrapper() [d:\games\unreal launcher\epic games\ue_source\engine\source\runtime\launch\private\windows\launchwindows.cpp:134]
LogWindows: Error: [Callstack] 0x00000000921F1C5B UE4Editor-Cmd.exe!WinMain() [d:\games\unreal launcher\epic games\ue_source\engine\source\runtime\launch\private\windows\launchwindows.cpp:210]
LogWindows: Error: [Callstack] 0x00000000921F2B0B UE4Editor-Cmd.exe!__scrt_common_main_seh() [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:283]
LogWindows: Error: [Callstack] 0x0000000041DB1FE4 KERNEL32.DLL!UnknownFunction []
LogWindows: Error: [Callstack] 0x0000000042F8EF91 ntdll.dll!UnknownFunction []
LogWindows: Error: [Callstack] 0x0000000042F8EF91 ntdll.dll!UnknownFunction []
LogWindows: Error:
LogWindows: Error: end: stack for UAT
Unfortunately, I cannot reproduce this bug with a minimal project. Is there anything I can do to help you recreate this issue?
This bug occurs for me using UE 4.18.2 built with Visual Studio 2017 15.4.4. For me it is a regression against UE 4.18.0, but since I renamed a lot of assets in the meantime I cannot entirely rule out side effects.
