Description

This is a common cook crash affecting users in 4.16. It is possibly the same issue as described in UE-22912 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       	}
Steps to Reproduce

repro steps currently unknown

Callstack
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()

Have Comments or More Details?

There's no existing public thread on this issue, so head over toAnswerHub just mention UE-47669 in the post.

1
Login to Vote

Unresolved
ComponentCore
Affects Versions4.164.184.194.204.214.22
Target Fix4.24
CreatedJul 24, 2017
UpdatedJul 11, 2019