Running game then crash at MarkCompilationComplete

Just start running package game in Windows, then crash.

Crashes.zip(151 KB)

Steps to Reproduce

void MarkCompilationComplete(const FMaterialPSOPrecacheParams& Params, uint32 RequestLifecycleID)
{
    FRWScopeLock WriteLock(RWLock, SLT_Write);
    FPrecacheData* FindResult = MaterialPSORequestData.Find(Params);
    if (FindResult && RequestLifecycleID == LifecycleID)
    {
       verify(!CheckCompilingPSOs(*FindResult, false /*bBoostPriority*/));
    }
}

Failed at `verify(!CheckCompilingPSOs(*FindResult, false /*bBoostPriority*/));`

crash dump in attachment

Hi,

thanks for reaching out. Hitting the assert in MarkCompilationComplete has been reported by some other UE licensees as well in these threads and is likely caused by a race condition:

[Content removed]

[Content removed]

[Content removed] (you can translate this to English by right-clicking in Chrome)

There is also a bug report under https://issues.unrealengine.com/issue/UE-288175.

From those last two cases, it seems that a possible workaround is to comment out the verify statement in CL 42765782 (after applying that commit). Could you try that and see if it prevents the crash?

Thanks,

Sam

Thank you for recommendations. I will try it later on.

No problem, please let me know if you have further questions.

Thanks,

Sam