Description

We may fix this issue by the following codes.

 

FPakPlatformFile::FPakPlatformFile(): 
   LowerLevel(NULL)	
   ,bSigned(false)
{
   // remove
   //FCoreDelegates::GetRegisterEncryptionKeyMulticastDelegate().AddRaw(this, &FPakPlatformFile::RegisterEncryptionKey);
}

bool FPakPlatformFile::Initialize(IPlatformFile* Inner, const TCHAR* CmdLine)
{
   ...
   FCoreDelegates::OnFEngineLoopInitComplete.AddRaw(this, &FPakPlatformFile::OptimizeMemoryUsageForMountedPaks); 	

   // add	
   FCoreDelegates::GetRegisterEncryptionKeyMulticastDelegate().AddRaw(this, &FPakPlatformFile::RegisterEncryptionKey);
   return !!LowerLevel;
}
Steps to Reproduce
  1. Open attached project
  2. Set HttpChunkInsatllDataDirectory of ProjectSettings to appropriate path
  3.  Create Mac or iOS package

expect : generate package and chunks
result : packaging doesn't finish  

Callstack

    2 Thread_215890   DispatchQueue_1: com.apple.main-thread  (serial)
    + 2 start  (in libdyld.dylib) + 8  [0x7fff6f1decd0]
    +   2 exit  (in libsystem_c.dylib) + 55  [0x7fff6f288412]
    +     2 __cxa_finalize_ranges  (in libsystem_c.dylib) + 319  [0x7fff6f28813c]
    +       2 FModuleManager::~FModuleManager()  (in BuildPatchTool) + 700  [0x1067de43c]  ModuleManager.cpp:114
    +         2 TSparseArray<TSetElement<TTuple<FName, TSharedRef<FModuleManager::FModuleInfo, (ESPMode)1> > >, TSparseArrayAllocator<TSizedDefaultAllocator<32>, FDefaultBitArrayAllocator> >::~TSparseArray()  (in BuildPatchTool) + 17  [0x1067e1d31]  SparseArray.h:87
    +           2 TSparseArray<TSetElement<TTuple<FName, TSharedRef<FModuleManager::FModuleInfo, (ESPMode)1> > >, TSparseArrayAllocator<TSizedDefaultAllocator<32>, FDefaultBitArrayAllocator> >::Empty(int)  (in BuildPatchTool) + 363  [0x1067e1eeb]  SparseArray.h:341
    +             2 SharedPointerInternals::TReferenceControllerWithDeleter<FModuleManager::FModuleInfo, SharedPointerInternals::DefaultDeleter<FModuleManager::FModuleInfo> >::DestroyObject()  (in BuildPatchTool) + 30  [0x1067e446e]  SharedPointerInternals.h:116
    +               2 FPakFileModule::~FPakFileModule()  (in BuildPatchTool) + 38  [0x106bd5606]  IPlatformFilePak.cpp:7604
    +                 2 FPakPlatformFile::~FPakPlatformFile()  (in BuildPatchTool) + 14  [0x106bbc61e]  IPlatformFilePak.cpp:6707
    +                   2 FPakPlatformFile::~FPakPlatformFile()  (in BuildPatchTool) + 46  [0x106bbc2de]  IPlatformFilePak.cpp:6708
    +                     2 TMulticastDelegateBase<FDefaultDelegateUserPolicy>::RemoveAll(void const*)  (in BuildPatchTool) + 469  [0x1067a50d5]  MulticastDelegateBase.h:129
    +                       2 TArray<TDelegateBase<FDefaultDelegateUserPolicy>, TSizedHeapAllocator<32> >::ResizeTo(int)  (in BuildPatchTool) + 80  [0x10663b9b0]  Array.h:2580
    +                         2 FMallocAnsi::Realloc(void*, unsigned long, unsigned int)  (in BuildPatchTool) + 88  [0x1066a01d8]  MallocAnsi.cpp:202
    +                           2 malloc_report  (in libsystem_malloc.dylib) + 151  [0x7fff6f3a640f]
    +                             2 malloc_vreport  (in libsystem_malloc.dylib) + 548  [0x7fff6f3a350b]
    +                               2 abort  (in libsystem_c.dylib) + 120  [0x7fff6f2ad808]
    +                                 2 0x0

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-107077 in the post.

27
Login to Vote

Unresolved
ComponentPortal
Affects Versions4.26
Target Fix5.6
CreatedJan 25, 2021
UpdatedNov 18, 2024
View Jira Issue