This is a common cook crash affecting users in 4.16. It is possibly the same issue as described in [Link Removed] for past engine versions.
Source Context
33 virtual void Serialize(void* Data, int64 Num) override 34 { 35 const int64 NumBytesToAdd = Offset + Num - Bytes.Num(); 36 if( NumBytesToAdd > 0 ) 37 { 38 const int64 NewArrayCount = Bytes.Num() + NumBytesToAdd; 39 if( NewArrayCount >= MAX_int32 ) 40 { 41 ***** UE_LOG( LogSerialization, Fatal, TEXT( "FMemoryWriter does not support data larger than 2GB. Archive name: %s." ), *ArchiveName.ToString() ); 42 } 43 44 Bytes.AddUninitialized( (int32)NumBytesToAdd ); 45 } 46 47 check((Offset + Num) <= Bytes.Num()); 48 49 if( Num ) 50 { 51 FMemory::Memcpy( &Bytes[Offset], Data, Num ); 52 Offset+=Num; 53 } 54 }
repro steps currently unknown
Fatal error: [File:D:\Build\++UE4+Release-4.16+Compile\Sync\Engine\Source\Runtime\Core\Public\Serialization/MemoryWriter.h] [Line: 42] FMemoryWriter does not support data larger than 2GB. Archive name: None. UE4Editor_CoreUObject!FMemoryWriter::Serialize() [memorywriter.h:42] UE4Editor_CoreUObject!FUntypedBulkData::SerializeBulkData() [bulkdata.cpp:1206] UE4Editor_CoreUObject!UPackage::Save() [savepackage.cpp:5058] UE4Editor_UnrealEd!UEditorEngine::Save() [editorengine.cpp:4185] UE4Editor_UnrealEd!UCookOnTheFlyServer::SaveCookedPackage() [cookontheflyserver.cpp:2999] UE4Editor_UnrealEd!UCookOnTheFlyServer::TickCookOnTheSide() [cookontheflyserver.cpp:2051] UE4Editor_UnrealEd!UCookCommandlet::CookByTheBook() [cookcommandlet.cpp:926] UE4Editor_UnrealEd!UCookCommandlet::Main() [cookcommandlet.cpp:589] UE4Editor_Cmd!FEngineLoop::PreInit() [launchengineloop.cpp:2070] UE4Editor_Cmd!GuardedMain() [launch.cpp:127] UE4Editor_Cmd!GuardedMainWrapper() [launchwindows.cpp:134] UE4Editor_Cmd!WinMain() [launchwindows.cpp:210] UE4Editor_Cmd!__scrt_common_main_seh() [exe_common.inl:253] kernel32!BaseThreadInitThunk() ntdll!RtlUserThreadStart()
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-47669 in the post.