Check() failure in FPackageIndex::ToExport()

Using a source build of UE 4.25.3.

Occasionally when launching the editor an assert is triggered by a check failure while regenerating blueprint classes. The blueprint being regenerated appears to be different each time. I suspect there is a race condition somewhere in the asset loading code.

Continuing past the check() failure doesn’t appear to cause any bad behavior and launching again rarely reproduces the issue. Myself and other devs on my team experience this issue about once or twice a week each.

Any insight into this issue would be appreciated.

Thank you!

Callstack:


     	[Inline Frame] UE4Editor-CoreUObject.dll!FPackageIndex::ToExport() Line 67	C++
    >	UE4Editor-CoreUObject.dll!FLinkerLoad::ResolvePlaceholder(ULinkerPlaceholderExportObject * Placeholder) Line 2085	C++
     	[Inline Frame] UE4Editor-CoreUObject.dll!FResolvingExportTracker::ResolvePlaceholders(UClass *) Line 586	C++
     	UE4Editor-CoreUObject.dll!FLinkerLoad::RegenerateBlueprintClass(UClass * LoadClass, UObject * ExportObject) Line 654	C++
     	UE4Editor-CoreUObject.dll!FLinkerLoad::FinalizeBlueprint(UClass * LoadClass) Line 1843	C++
     	UE4Editor-CoreUObject.dll!FLinkerLoad::Preload(UObject * Object) Line 3867	C++
     	UE4Editor-CoreUObject.dll!FLinkerLoad::CreateExport(int Index) Line 4572	C++
     	UE4Editor-CoreUObject.dll!FLinkerLoad::IndexToObject(FPackageIndex Index) Line 4811	C++
     	UE4Editor-CoreUObject.dll!FLinkerLoad::CreateExport(int Index) Line 4185	C++
     	UE4Editor-CoreUObject.dll!FLinkerLoad::CreateExportAndPreload(int ExportIndex, bool bForcePreload) Line 3233	C++
     	UE4Editor-CoreUObject.dll!FLinkerLoad::LoadAllObjects(bool bForcePreload) Line 3397	C++
     	UE4Editor-CoreUObject.dll!LoadPackageInternal(UPackage * InOuter, const wchar_t * InLongPackageNameOrFilename, unsigned int LoadFlags, FLinkerLoad * ImportLinker, FArchive * InReaderOverride, FUObjectSerializeContext * InLoadContext) Line 1312	C++
     	UE4Editor-CoreUObject.dll!FLinkerLoad::VerifyImportInner(const int ImportIndex, FString & WarningSuffix) Line 2861	C++
     	UE4Editor-CoreUObject.dll!FLinkerLoad::VerifyImport(int ImportIndex) Line 2583	C++
     	UE4Editor-CoreUObject.dll!FLinkerLoad::VerifyImportInner(const int ImportIndex, FString & WarningSuffix) Line 2927	C++
     	UE4Editor-CoreUObject.dll!FLinkerLoad::VerifyImport(int ImportIndex) Line 2583	C++
     	UE4Editor-CoreUObject.dll!FLinkerLoad::VerifyImportInner(const int ImportIndex, FString & WarningSuffix) Line 2927	C++
     	UE4Editor-CoreUObject.dll!FLinkerLoad::VerifyImport(int ImportIndex) Line 2583	C++
     	UE4Editor-CoreUObject.dll!FLinkerLoad::Verify() Line 2355	C++
     	UE4Editor-CoreUObject.dll!FLinkerLoad::FinalizeCreation(TMap<TTuple,FPackageIndex,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<TTuple,FPackageIndex,0>> * ObjectNameWithOuterToExportMap) Line 2257	C++
     	UE4Editor-CoreUObject.dll!FLinkerLoad::Tick(float InTimeLimit, bool bInUseTimeLimit, bool bInUseFullTimeLimit, TMap<TTuple,FPackageIndex,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<TTuple,FPackageIndex,0>> * ObjectNameWithOuterToExportMap) Line 790	C++
     	UE4Editor-CoreUObject.dll!FLinkerLoad::CreateLinker(FUObjectSerializeContext * LoadContext, UPackage * Parent, const wchar_t * Filename, unsigned int LoadFlags, FArchive * InLoader) Line 459	C++
     	UE4Editor-CoreUObject.dll!GetPackageLinker(UPackage * InOuter, const wchar_t * InLongPackageName, unsigned int LoadFlags, UPackageMap * Sandbox, FGuid * CompatibleGuid, FArchive * InReaderOverride, FUObjectSerializeContext * * InOutLoadContext) Line 745	C++
     	UE4Editor-CoreUObject.dll!LoadPackageInternal(UPackage * InOuter, const wchar_t * InLongPackageNameOrFilename, unsigned int LoadFlags, FLinkerLoad * ImportLinker, FArchive * InReaderOverride, FUObjectSerializeContext * InLoadContext) Line 1208	C++
     	UE4Editor-CoreUObject.dll!FLinkerLoad::VerifyImportInner(const int ImportIndex, FString & WarningSuffix) Line 2861	C++
     	UE4Editor-CoreUObject.dll!FLinkerLoad::VerifyImport(int ImportIndex) Line 2583	C++
     	UE4Editor-CoreUObject.dll!FLinkerLoad::VerifyImportInner(const int ImportIndex, FString & WarningSuffix) Line 2927	C++
     	UE4Editor-CoreUObject.dll!FLinkerLoad::VerifyImport(int ImportIndex) Line 2583	C++
     	UE4Editor-CoreUObject.dll!FLinkerLoad::VerifyImportInner(const int ImportIndex, FString & WarningSuffix) Line 2927	C++
     	UE4Editor-CoreUObject.dll!FLinkerLoad::VerifyImport(int ImportIndex) Line 2583	C++
     	UE4Editor-CoreUObject.dll!FLinkerLoad::Verify() Line 2355	C++
     	UE4Editor-CoreUObject.dll!FLinkerLoad::FinalizeCreation(TMap<TTuple,FPackageIndex,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<TTuple,FPackageIndex,0>> * ObjectNameWithOuterToExportMap) Line 2257	C++
     	UE4Editor-CoreUObject.dll!FLinkerLoad::Tick(float InTimeLimit, bool bInUseTimeLimit, bool bInUseFullTimeLimit, TMap<TTuple,FPackageIndex,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<TTuple,FPackageIndex,0>> * ObjectNameWithOuterToExportMap) Line 790	C++
     	UE4Editor-CoreUObject.dll!FLinkerLoad::CreateLinker(FUObjectSerializeContext * LoadContext, UPackage * Parent, const wchar_t * Filename, unsigned int LoadFlags, FArchive * InLoader) Line 459	C++
     	UE4Editor-CoreUObject.dll!GetPackageLinker(UPackage * InOuter, const wchar_t * InLongPackageName, unsigned int LoadFlags, UPackageMap * Sandbox, FGuid * CompatibleGuid, FArchive * InReaderOverride, FUObjectSerializeContext * * InOutLoadContext) Line 745	C++
     	UE4Editor-CoreUObject.dll!LoadPackageInternal(UPackage * InOuter, const wchar_t * InLongPackageNameOrFilename, unsigned int LoadFlags, FLinkerLoad * ImportLinker, FArchive * InReaderOverride, FUObjectSerializeContext * InLoadContext) Line 1208	C++
     	UE4Editor-CoreUObject.dll!LoadPackage(UPackage * InOuter, const wchar_t * InLongPackageName, unsigned int LoadFlags, FArchive * InReaderOverride, FUObjectSerializeContext * InLoadContext) Line 1427	C++
     	UE4Editor-UnrealEd.dll!UEditorEngine::Map_Load(const wchar_t * Str, FOutputDevice & Ar) Line 2619	C++
     	UE4Editor-UnrealEd.dll!UEditorEngine::HandleMapCommand(const wchar_t * Str, FOutputDevice & Ar, UWorld * InWorld) Line 6167	C++
     	UE4Editor-UnrealEd.dll!UEditorEngine::Exec(UWorld * InWorld, const wchar_t * Stream, FOutputDevice & Ar) Line 5647	C++
     	UE4Editor-UnrealEd.dll!UUnrealEdEngine::Exec(UWorld * InWorld, const wchar_t * Stream, FOutputDevice & Ar) Line 697	C++
     	UE4Editor-UnrealEd.dll!FEditorFileUtils::LoadMap(const FString & InFilename, bool LoadAsTemplate, const bool bShowProgress) Line 2561	C++
     	UE4Editor-UnrealEd.dll!FEditorFileUtils::LoadDefaultMapAtStartup() Line 3950	C++
     	UE4Editor-UnrealEd.dll!FUnrealEdMisc::OnInit() Line 361	C++
     	UE4Editor-UnrealEd.dll!EditorInit(IEngineLoop & EngineLoop) Line 114	C++
     	UE4Editor.exe!GuardedMain(const wchar_t * CmdLine) Line 149	C++
     	UE4Editor.exe!WinMain(HINSTANCE__ * hInInstance, HINSTANCE__ * hPrevInstance, char * __formal, int nCmdShow) Line 257	C++
     	[External Code]	

Hello,

We’ve made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

Thanks