Inside Unreal: ChunkDownloader Explained

I am getting this crash when I close my Packaged unreal game after downloading some pack files.

[2024.12.02-11.57.31:059][636]LogWindows: Error: === Critical error: ===
[2024.12.02-11.57.31:059][636]LogWindows: Error: 
[2024.12.02-11.57.31:059][636]LogWindows: Error: Assertion failed: !"Pak cannot be unmounted with outstanding requests" [File:D:\build\++UE5\Sync\Engine\Source\Runtime\PakFile\Private\IPlatformFilePak.cpp] [Line: 3007] 
[2024.12.02-11.57.31:059][636]LogWindows: Error: 
[2024.12.02-11.57.31:059][636]LogWindows: Error: 
[2024.12.02-11.57.31:059][636]LogWindows: Error: 
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7f6ff466e TPSCpp.exe!UE::Core::Private::Function::TFunctionRefCaller<<lambda_a52ccc16266ef7bd9b514f2e821f2682>,bool __cdecl(unsigned int)>::Call() []
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7f6fe142d TPSCpp.exe!SharedPointerInternals::NewIntrusiveReferenceController<1,FFilePackageStoreBackend>() []
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7f6fe1321 TPSCpp.exe!SharedPointerInternals::NewIntrusiveReferenceController<1,FFilePackageStoreBackend>() []
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7f7036841 TPSCpp.exe!FPakPrecacher::Unmount() []
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7f7036508 TPSCpp.exe!FPakPlatformFile::Unmount() []
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7f7000595 TPSCpp.exe!TBaseRawMethodDelegateInstance<0,FPakPlatformFile,bool __cdecl(FString const & __ptr64),FDefaultDelegateUserPolicy>::Execute() []
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7f13c3dc4 TPSCpp.exe!FChunkDownloader::UnmountPakFile() [G:\Aadesh\Projects\newcrea\Creative_Studio\Plugins\Pixis_Chunk_Handler\ChunkDownloader\Source\Private\ChunkDownloader.cpp:736]
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7f13b728d TPSCpp.exe!FChunkDownloader::Finalize() [G:\Aadesh\Projects\newcrea\Creative_Studio\Plugins\Pixis_Chunk_Handler\ChunkDownloader\Source\Private\ChunkDownloader.cpp:606]
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7f13c032b TPSCpp.exe!FChunkDownloader::Shutdown() [G:\Aadesh\Projects\newcrea\Creative_Studio\Plugins\Pixis_Chunk_Handler\ChunkDownloader\Source\Private\ChunkDownloaderModule.cpp:167]
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7f13d6302 TPSCpp.exe!UPakDataHandlerSubsystem::execDeninitializePakSystem() [G:\Aadesh\Projects\newcrea\Creative_Studio\Plugins\Pixis_Chunk_Handler\PakDataHandler\Intermediate\Build\Win64\UnrealGame\Inc\PakDataHandler\UHT\PakDataHandlerSubsystem.gen.cpp:191]
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7f3164da9 TPSCpp.exe!UFunction::Invoke() []
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7f3369971 TPSCpp.exe!UObject::CallFunction() []
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7f33833bf TPSCpp.exe!UObject::ProcessContextOpcode() []
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7f3386a0b TPSCpp.exe!ProcessLocalScriptFunction() []
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7f3354e0d TPSCpp.exe!ProcessScriptFunction<void (__cdecl*)(UObject * __ptr64,FFrame & __ptr64,void * __ptr64)>() []
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7f33864a9 TPSCpp.exe!ProcessLocalFunction() []
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7f3386a0b TPSCpp.exe!ProcessLocalScriptFunction() []
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7f3385c11 TPSCpp.exe!UObject::ProcessInternal() []
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7f3164da9 TPSCpp.exe!UFunction::Invoke() []
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7f3384e4e TPSCpp.exe!UObject::ProcessEvent() []
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7ef2df4db TPSCpp.exe!TMulticastScriptDelegate<FWeakObjectPtr>::ProcessMulticastDelegate<UObject>() [C:\Program Files\Epic Games\UE_5.2\Engine\Source\Runtime\Core\Public\UObject\ScriptDelegates.h:565]
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7f6cc25c7 TPSCpp.exe!UButton::SlateHandleClicked() []
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7f6c74881 TPSCpp.exe!TBaseUObjectMethodDelegateInstance<0,UButton,FReply __cdecl(void),FDefaultDelegateUserPolicy>::Execute() []
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7f39a8ac2 TPSCpp.exe!SButton::ExecuteOnClick() []
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7f39d52b8 TPSCpp.exe!SButton::OnMouseButtonUp() []
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7f37bbc1b TPSCpp.exe!SButton::FArguments::operator[]() []
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7f37b3612 TPSCpp.exe!TArray<TSharedPtr<SWindow,1>,TSizedDefaultAllocator<32> >::RemoveAll<<lambda_e2369253746a3fa7ae5830b136b55ef0> >() []
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7f37f9f89 TPSCpp.exe!FSlateApplication::RoutePointerUpEvent() []
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7f37eb9db TPSCpp.exe!FSlateApplication::ProcessMouseButtonUpEvent() []
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7f37e0f74 TPSCpp.exe!FSlateApplication::OnMouseUp() []
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7f35191a7 TPSCpp.exe!FWindowsApplication::ProcessDeferredMessage() []
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7f35002bb TPSCpp.exe!FWindowsApplication::DeferMessage() []
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7f351b974 TPSCpp.exe!FWindowsApplication::ProcessMessage() []
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7f34f9dcf TPSCpp.exe!FWindowsApplication::AppWndProc() []
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ffaeff25801 USER32.dll!UnknownFunction []
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ffaeff2334d USER32.dll!UnknownFunction []
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7f351ce66 TPSCpp.exe!FWindowsPlatformApplicationMisc::PumpMessages() []
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7ef2aaa3d TPSCpp.exe!FEngineLoop::Tick() []
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7ef2c690c TPSCpp.exe!GuardedMain() []
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7ef2c69ea TPSCpp.exe!GuardedMainWrapper() []
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7ef2c98f6 TPSCpp.exe!LaunchWindowsStartup() []
[2024.12.02-11.57.31:059][636]LogWindows: Error: [Callstack] 0x00007ff7ef2dc624 TPSCpp.exe!WinMain() []
[2024.12.02-11.57.31:060][636]LogWindows: Error: [Callstack] 0x00007ff7f9e93eba TPSCpp.exe!__scrt_common_main_seh() [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
[2024.12.02-11.57.31:060][636]LogWindows: Error: [Callstack] 0x00007ffaf1dce8d7 KERNEL32.DLL!UnknownFunction []
[2024.12.02-11.57.31:060][636]LogWindows: Error: [Callstack] 0x00007ffaf1fbfbcc ntdll.dll!UnknownFunction []
[2024.12.02-11.57.31:060][636]LogWindows: Error: 
[2024.12.02-11.57.31:062][636]LogExit: Executing StaticShutdownAfterError
[2024.12.02-11.57.31:063][636]LogWindows: FPlatformMisc::RequestExit(1)
[2024.12.02-11.57.31:063][636]LogWindows: FPlatformMisc::RequestExitWithStatus(1, 3)
[2024.12.02-11.57.31:063][636]LogCore: Engine exit requested (reason: Win RequestExit)