Sporadic crash during cook when enabling multiprocess cooks

Set CookProcessCount to 3 and perform multiple cooks and eventually this will hit (ball park, 1 in 10)

Call stack didn’t post for some reason so editing it in here:

LogWindows: Error: appError called: Assertion failed: PackageData.IsInProgress() [File:D:\Horde\<project>-IncrementalCook\Sync\Engine\Source\Editor\UnrealEd\Private\CookOnTheFlyServer.cpp] [Line: 2821] LogWindows: Error: begin: stack for UAT LogWindows: Error: === Critical error: === LogWindows: Error: LogWindows: Error: Assertion failed: PackageData.IsInProgress() [File:D:\Horde\<project>-IncrementalCook\Sync\Engine\Source\Editor\UnrealEd\Private\CookOnTheFlyServer.cpp] [Line: 2821] LogWindows: Error: LogWindows: Error: LogWindows: Error: LogWindows: Error: [Callstack] 0x00007ffbcc39b866 UnrealEditor-UnrealEd.dll!UCookOnTheFlyServer::PromoteToSaveComplete() [] LogWindows: Error: [Callstack] 0x00007ffbcc2bf92f UnrealEditor-UnrealEd.dll!UE::Cook::FCookWorkerServer::RecordResults() [] LogWindows: Error: [Callstack] 0x00007ffbcc2b0525 UnrealEditor-UnrealEd.dll!UE::Cook::FCookWorkerServer::HandleReceiveMessagesInternal() [] LogWindows: Error: [Callstack] 0x00007ffbcc2b0299 UnrealEditor-UnrealEd.dll!UE::Cook::FCookWorkerServer::HandleReceiveMessages() [] LogWindows: Error: [Callstack] 0x00007ffbcc259686 UnrealEditor-UnrealEd.dll!UE::Cook::FCookDirector::TickFromSchedulerThread() [] LogWindows: Error: [Callstack] 0x00007ffbcc39c8da UnrealEditor-UnrealEd.dll!UCookOnTheFlyServer::PumpPollables() [] LogWindows: Error: [Callstack] 0x00007ffbcc3bfcac UnrealEditor-UnrealEd.dll!UCookOnTheFlyServer::TickMainCookLoop() [] LogWindows: Error: [Callstack] 0x00007ffbcc3bf3ec UnrealEditor-UnrealEd.dll!UCookOnTheFlyServer::TickCookByTheBook() [] LogWindows: Error: [Callstack] 0x00007ffbcc048f70 UnrealEditor-UnrealEd.dll!UCookCommandlet::RunCookByTheBookCook() [] LogWindows: Error: [Callstack] 0x00007ffbcc0047a7 UnrealEditor-UnrealEd.dll!UCookCommandlet::CookByTheBook() [] LogWindows: Error: [Callstack] 0x00007ffbcc0256f3 UnrealEditor-UnrealEd.dll!UCookCommandlet::Main() [] LogWindows: Error: [Callstack] 0x00007ff6f64beb4e UnrealEditor-Cmd.exe!FEngineLoop::PreInitPostStartupScreen() [] LogWindows: Error: [Callstack] 0x00007ff6f64b5566 UnrealEditor-Cmd.exe!GuardedMain() [] LogWindows: Error: [Callstack] 0x00007ff6f64b589a UnrealEditor-Cmd.exe!GuardedMainWrapper() [] LogWindows: Error: [Callstack] 0x00007ff6f64b9114 UnrealEditor-Cmd.exe!LaunchWindowsStartup() [] LogWindows: Error: [Callstack] 0x00007ff6f64cbd04 UnrealEditor-Cmd.exe!WinMain() [] LogWindows: Error: [Callstack] 0x00007ff6f64ce422 UnrealEditor-Cmd.exe!__scrt_common_main_seh() [] LogWindows: Error: [Callstack] 0x00007ffc448ce8d7 KERNEL32.DLL!UnknownFunction [] LogWindows: Error: LogWindows: Error: end: stack for UAT Took 483.78s to run UnrealEditor-Cmd.exe, ExitCode=3

Steps to Reproduce

After setting CookProcessCount to 3 in DefaultEditor.ini, we’re getting the following crash a few times a day

Doesn’t seem related to OOM and looks like someone else is hitting something similar here https://forums.unrealengine.com/t/crash-when-using-multi-core-cooking/2495726, though there were no responses after 3 weeks

I know multiprocess cooks are relatively new, are they considered stable? Is there some kind of race condition happening causing this crash?

Hi,

I found the same exact crash in JIRA (UE-226067). Fixed at CL 36712027 (https://github.com/EpicGames/UnrealEngine/commit/893d6ce60310a35baccb10dfbac8e04de7e9453b). Can you try integrating the fix?

Regards,

Patrick

Awesome, thank you! We’re planning on swapping over to 5.6 in the next month or so so we’ll re-try multiprocess cooks then