Hello,
Does anyone know this issue ?
Once packaged, my project sometimes crash with errors
Assertion failed: !InTemplate || InTemplate->IsA(InClass) || (InFlags & RF_ClassDefaultObject) [File:D:\build\++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\UObjectGlobals.cpp] [Line: 4184]
It allways ends with
is not an instance of class Class /Script/Niagara.NiagaraDataInterfaceStaticMesh and it is not a CDO.
I thought it was related to some niagara systems and the meshes I forgot to set “Allow CPUAccess”, but It keeps crashing randomly.
Sometimes, it’s telling me the issue is with a widget, sometimes the landscape… Makes no sense.
SettingsUI_C_2147461114.WidgetTree_2147461113.InputSettingsPage.WidgetTree_2147461014.StyledActionMappingWidget_C_47.WidgetTree_2147460567.ActionLabel.WidgetTree_2147460564.KeyContainer.HorizontalBoxSlot_2147459014 is not an instance of class Class /Script/Niagara.NiagaraDataInterfaceStaticMesh and it is not a CDO.
Today :
MaterialInstanceDynamic /Engine/Transient.MaterialInstanceDynamic_2147472084 is not an instance of class Class /Script/Niagara.NiagaraDataInterfaceSkeletalMesh and it is not a CDO.
Thank you !
Last time :
Assertion failed: !InTemplate || InTemplate->IsA(InClass) || (InFlags & RF_ClassDefaultObject) [File:D:\build\++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\UObjectGlobals.cpp] [Line: 4184] StaticConstructObject HorizontalBox /Engine/Transient.GameEngine_2147482615:SIOSGameInstance_C_2147482515.SettingsUI_C_2147420548.WidgetTree_2147420547.InputSettingsPage.WidgetTree_2147420448.InputRow_C_23.WidgetTree_2147420018.HorizontalBox_1 is not an instance of class Class /Script/Niagara.NiagaraDataInterfaceStaticMesh and it is not a CDO.
SiOS_Win64_DebugGame!StaticConstructObject_Internal()
SiOS_Win64_DebugGame!FDuplicateDataWriter::GetDuplicatedObject()
SiOS_Win64_DebugGame!FDuplicateDataWriter::operator<<()
SiOS_Win64_DebugGame!FDuplicateDataWriter::operator<<()
SiOS_Win64_DebugGame!FObjectPtrProperty::StaticSerializeItem()
SiOS_Win64_DebugGame!<lambda_2d2b7793a4a88c0c2cf6876841e4397f>::operator()()
SiOS_Win64_DebugGame!FArrayProperty::SerializeItem()
SiOS_Win64_DebugGame!FPropertyTag::SerializeTaggedProperty()
SiOS_Win64_DebugGame!UStruct::SerializeVersionedTaggedProperties()
SiOS_Win64_DebugGame!UScriptStruct::SerializeItem()
SiOS_Win64_DebugGame!FStructProperty::SerializeItem()
SiOS_Win64_DebugGame!FPropertyTag::SerializeTaggedProperty()
SiOS_Win64_DebugGame!UStruct::SerializeVersionedTaggedProperties()
SiOS_Win64_DebugGame!UObject::SerializeScriptProperties()
SiOS_Win64_DebugGame!UObject::Serialize()
SiOS_Win64_DebugGame!UObject::Serialize()
SiOS_Win64_DebugGame!UActorComponent::Serialize()
SiOS_Win64_DebugGame!USceneComponent::Serialize()
SiOS_Win64_DebugGame!UPrimitiveComponent::Serialize()
SiOS_Win64_DebugGame!UNiagaraComponent::Serialize()
SiOS_Win64_DebugGame!StaticDuplicateObjectEx()
SiOS_Win64_DebugGame!AActor::CreateComponentFromTemplate()
SiOS_Win64_DebugGame!USCS_Node::ExecuteNodeOnActor()
SiOS_Win64_DebugGame!USCS_Node::ExecuteNodeOnActor()
SiOS_Win64_DebugGame!USCS_Node::ExecuteNodeOnActor()
SiOS_Win64_DebugGame!USimpleConstructionScript::ExecuteScriptOnActor()
SiOS_Win64_DebugGame!AActor::ExecuteConstruction()
SiOS_Win64_DebugGame!AActor::FinishSpawning()
SiOS_Win64_DebugGame!UGameplayStatics::FinishSpawningActor()
SiOS_Win64_DebugGame!UGameplayStatics::execFinishSpawningActor()
SiOS_Win64_DebugGame!UObject::execCallMathFunction()
SiOS_Win64_DebugGame!UObject::execLetObj()
SiOS_Win64_DebugGame!ProcessLocalScriptFunction()
SiOS_Win64_DebugGame!ProcessScriptFunction<void (__cdecl*)(UObject * __ptr64,FFrame & __ptr64,void * __ptr64)>()
SiOS_Win64_DebugGame!ProcessLocalFunction()
SiOS_Win64_DebugGame!ProcessLocalScriptFunction()
SiOS_Win64_DebugGame!ProcessScriptFunction<void (__cdecl*)(UObject * __ptr64,FFrame & __ptr64,void * __ptr64)>()
SiOS_Win64_DebugGame!ProcessLocalFunction()
SiOS_Win64_DebugGame!ProcessLocalScriptFunction()
SiOS_Win64_DebugGame!ProcessScriptFunction<void (__cdecl*)(UObject * __ptr64,FFrame & __ptr64,void * __ptr64)>()
SiOS_Win64_DebugGame!ProcessLocalFunction()
SiOS_Win64_DebugGame!ProcessLocalScriptFunction()
SiOS_Win64_DebugGame!ProcessScriptFunction<void (__cdecl*)(UObject * __ptr64,FFrame & __ptr64,void * __ptr64)>()
SiOS_Win64_DebugGame!ProcessLocalFunction()
SiOS_Win64_DebugGame!ProcessLocalScriptFunction()
SiOS_Win64_DebugGame!ProcessScriptFunction<void (__cdecl*)(UObject * __ptr64,FFrame & __ptr64,void * __ptr64)>()
SiOS_Win64_DebugGame!ProcessLocalFunction()
SiOS_Win64_DebugGame!ProcessLocalScriptFunction()
SiOS_Win64_DebugGame!ProcessScriptFunction<void (__cdecl*)(UObject * __ptr64,FFrame & __ptr64,void * __ptr64)>()
SiOS_Win64_DebugGame!ProcessLocalFunction()
SiOS_Win64_DebugGame!ProcessLocalScriptFunction()
SiOS_Win64_DebugGame!UObject::ProcessInternal()
SiOS_Win64_DebugGame!ProcessScriptFunction<void (__cdecl*)(UObject * __ptr64,FFrame & __ptr64,void * __ptr64)>()
SiOS_Win64_DebugGame!UObject::CallFunction()
SiOS_Win64_DebugGame!UObject::ProcessContextOpcode()
SiOS_Win64_DebugGame!ProcessLocalScriptFunction()
SiOS_Win64_DebugGame!ProcessScriptFunction<void (__cdecl*)(UObject * __ptr64,FFrame & __ptr64,void * __ptr64)>()
SiOS_Win64_DebugGame!ProcessLocalFunction()
SiOS_Win64_DebugGame!ProcessLocalScriptFunction()
SiOS_Win64_DebugGame!UObject::ProcessInternal()
SiOS_Win64_DebugGame!ProcessScriptFunction<void (__cdecl*)(UObject * __ptr64,FFrame & __ptr64,void * __ptr64)>()
SiOS_Win64_DebugGame!UObject::CallFunction()
SiOS_Win64_DebugGame!UObject::ProcessContextOpcode()
SiOS_Win64_DebugGame!ProcessLocalScriptFunction()
SiOS_Win64_DebugGame!ProcessScriptFunction<void (__cdecl*)(UObject * __ptr64,FFrame & __ptr64,void * __ptr64)>()
SiOS_Win64_DebugGame!ProcessLocalFunction()
SiOS_Win64_DebugGame!ProcessLocalScriptFunction()
SiOS_Win64_DebugGame!ProcessScriptFunction<void (__cdecl*)(UObject * __ptr64,FFrame & __ptr64,void * __ptr64)>()
SiOS_Win64_DebugGame!ProcessLocalFunction()
SiOS_Win64_DebugGame!UObject::ProcessContextOpcode()
SiOS_Win64_DebugGame!ProcessLocalScriptFunction()
SiOS_Win64_DebugGame!ProcessScriptFunction<void (__cdecl*)(UObject * __ptr64,FFrame & __ptr64,void * __ptr64)>()
SiOS_Win64_DebugGame!ProcessLocalFunction()
SiOS_Win64_DebugGame!ProcessLocalScriptFunction()
SiOS_Win64_DebugGame!ProcessScriptFunction<void (__cdecl*)(UObject * __ptr64,FFrame & __ptr64,void * __ptr64)>()
SiOS_Win64_DebugGame!ProcessLocalFunction()
SiOS_Win64_DebugGame!ProcessLocalScriptFunction()
SiOS_Win64_DebugGame!UObject::ProcessInternal()
SiOS_Win64_DebugGame!ProcessScriptFunction<void (__cdecl*)(UObject * __ptr64,FFrame & __ptr64,void * __ptr64)>()
SiOS_Win64_DebugGame!UObject::CallFunction()
SiOS_Win64_DebugGame!ProcessLocalScriptFunction()
SiOS_Win64_DebugGame!ProcessScriptFunction<void (__cdecl*)(UObject * __ptr64,FFrame & __ptr64,void * __ptr64)>()
SiOS_Win64_DebugGame!ProcessLocalFunction()
SiOS_Win64_DebugGame!ProcessLocalScriptFunction()
SiOS_Win64_DebugGame!UObject::ProcessInternal()
SiOS_Win64_DebugGame!ProcessScriptFunction<void (__cdecl*)(UObject * __ptr64,FFrame & __ptr64,void * __ptr64)>()
SiOS_Win64_DebugGame!UObject::CallFunction()
SiOS_Win64_DebugGame!ProcessLocalScriptFunction()
SiOS_Win64_DebugGame!ProcessScriptFunction<void (__cdecl*)(UObject * __ptr64,FFrame & __ptr64,void * __ptr64)>()
SiOS_Win64_DebugGame!ProcessLocalFunction()
SiOS_Win64_DebugGame!ProcessLocalScriptFunction()
SiOS_Win64_DebugGame!UObject::ProcessInternal()
SiOS_Win64_DebugGame!UFunction::Invoke()
SiOS_Win64_DebugGame!UObject::ProcessEvent()
SiOS_Win64_DebugGame!TScriptDelegate<FWeakObjectPtr>::ProcessDelegate<UObject>() [F:\UnrealWin\UE_5.1\Engine\Source\Runtime\Core\Public\UObject\ScriptDelegates.h:248]
SiOS_Win64_DebugGame!FTimerUnifiedDelegate::Execute()
SiOS_Win64_DebugGame!FTimerManager::Tick()
SiOS_Win64_DebugGame!UWorld::Tick()
SiOS_Win64_DebugGame!UGameEngine::Tick()
SiOS_Win64_DebugGame!FEngineLoop::Tick()
SiOS_Win64_DebugGame!GuardedMain()
SiOS_Win64_DebugGame!GuardedMainWrapper()
SiOS_Win64_DebugGame!LaunchWindowsStartup()
SiOS_Win64_DebugGame!WinMain()
SiOS_Win64_DebugGame!__scrt_common_main_seh() [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
kernel32
ntdll
Did you ever find a fix for this? I’m running into the exact same issue on a project
StaticMeshComponent0 is not an instance of class Class /Script/Niagara.NiagaraDataInterfaceStaticMesh and it is not a CDO
Sorry for this late answer ! Yes, I’ve found a solution ! 
Do NOT try to sample a mesh as startup, it might not be loaded.
My solution is to set the system and the mesh component inside it from the blueprint at BeginPlay.