Description

In the attached project, there are crashes that occur in a few instances. When you open the Third Person Character BP, compiling or attempting to delete it will cause the editor to crash. Also, attempting to PIE will cause the editor to crash. However, the copy of the Third Person Character BP compiles without issue.

Project Link: [Link Removed]

Source Context:

  510       		
  511       		if(InVariableDescription.HasMetaData(FBlueprintMetadata::MD_Tooltip))
  512       		{
  513       			TooltipResult = InVariableDescription.GetMetaData(FBlueprintMetadata::MD_Tooltip);
  514       		}
  515       		InWriter->WriteValue(FFindInBlueprintSearchTags::FiB_Tooltip, TooltipResult);
  516       
  517       		// Save the variable's pin type
  518       		SavePinTypeToJson(InWriter, VariableType);
  519       
  520       		// Find the UProperty and convert it into a Json value.
  521       		UProperty* VariableProperty = FindField<UProperty>(InBlueprint->GeneratedClass, InVariableDescription.VarName);
  522       		if(VariableProperty)
  523       		{
  524 ***** 			const uint8* PropData = VariableProperty->ContainerPtrToValuePtr<uint8>(InBlueprint->GeneratedClass->GetDefaultObject());
  525       			auto JsonValue = FJsonObjectConverter::UPropertyToJsonValue(VariableProperty, PropData, 0, 0);
  526       
  527       			// Only use the value if it is searchable
  528       			if(BlueprintSearchMetaDataHelpers::CheckIfJsonValueIsSearchable(JsonValue))
  529       			{
  530       				TSharedRef< FJsonValue > JsonValueAsSharedRef = JsonValue.ToSharedRef();
  531       				FJsonSerializer::Serialize(JsonValue, FFindInBlueprintSearchTags::FiB_DefaultValue.ToString(), StaticCastSharedRef<SearchMetaDataWriterParentClass>(InWriter) );
  532       			}
  533       		}
  534       
  535       		InWriter->WriteObjectEnd();
  536       	}
  537       
  538       	/**
  539       	 * Gathers all nodes from a specified graph and serializes their searchable data to Json
Steps to Reproduce

1. Download the project from the link provided
2. Open the project
3. PIE
4. Result: Editor crashes
5. Re-open the project
6. Open the Third Person Character BP
7. Attempt to Compile

Result: Editor crashes upon compiling or attempting to delete the Third Person Character BP, or attempting to PIE.

Callstack

Assertion failed: ((UObject*)ContainerPtr)->IsA((UClass*)GetOuter()) [Link Removed] [Line: 308] 'Default__Merchant_Header_C' is of class 'Merchant_Header_C' however property 'Cast 3PC Controller' belongs to class 'GameHUD_C'

UE4Editor_Kismet!BlueprintSearchMetaDataHelpers::SaveVariableDescriptionToJson() findinblueprintmanager.cpp:525 
UE4Editor_Kismet!FFindInBlueprintSearchManager::GatherBlueprintSearchMetadata() findinblueprintmanager.cpp:1076 
UE4Editor_Kismet!FFindInBlueprintSearchManager::AddOrUpdateBlueprintSearchMetadata() findinblueprintmanager.cpp:1170 
UE4Editor_UnrealEd!FKismetEditorUtilities::CompileBlueprint() kismet2.cpp:709 
UE4Editor_UnrealEd!FBlueprintCompileReinstancer::ReinstanceObjects() kismetreinstanceutilities.cpp:594 
UE4Editor_UnrealEd!FKismetEditorUtilities::CompileBlueprint() kismet2.cpp:790 
UE4Editor_Kismet!FBlueprintEditor::Compile() blueprinteditor.cpp:3110 
UE4Editor_Kismet!TBaseSPMethodDelegateInstance<0,FBlueprintEditor,0,TTypeWrapper<void> __cdecl() delegateinstancesimpl_variadics.inl:282 
UE4Editor_Kismet!TBaseSPMethodDelegateInstance<0,FBlueprintEditor,0,void __cdecl() delegateinstancesimpl_variadics.inl:387 
UE4Editor_Slate!FUICommandList::ExecuteAction() uicommandlist.cpp:87 
UE4Editor_Slate!SToolBarButtonBlock::OnClicked() stoolbarbuttonblock.cpp:296 
UE4Editor_Slate!TMemberFunctionCaller<SToolBarButtonBlock,FReply() delegateinstanceinterface_variadics.h:161 
UE4Editor_Slate!TTupleImpl<TIntegerSequence<> >::ApplyAfter_ExplicitReturnType<FReply,TMemberFunctionCaller<SToolBarButtonBlock,FReply() tuple.h:113 
UE4Editor_Slate!TBaseSPMethodDelegateInstance<0,SToolBarButtonBlock,0,FReply __cdecl() delegateinstancesimpl_variadics.inl:282 
UE4Editor_Slate!TBaseDelegate<FReply>::Execute() delegatesignatureimpl_variadics.inl:440 
UE4Editor_Slate!SButton::OnMouseButtonUp() sbutton.cpp:236 
UE4Editor_Slate!<lambda_4ba5b0c116ad939f50a9b616659f063a>::operator() slateapplication.cpp:4276 
UE4Editor_Slate!FEventRouter::Route<FReply,FEventRouter::FToLeafmostPolicy,FPointerEvent,<lambda_4ba5b0c116ad939f50a9b616659f063a> >() slateapplication.cpp:214 
UE4Editor_Slate!FSlateApplication::RoutePointerUpEvent() slateapplication.cpp:4266 
UE4Editor_Slate!FSlateApplication::ProcessMouseButtonUpEvent() slateapplication.cpp:4663 
UE4Editor_Slate!FSlateApplication::OnMouseUp() slateapplication.cpp:4641 
UE4Editor_Core!FWindowsApplication::ProcessDeferredMessage() windowsapplication.cpp:1404 
UE4Editor_Core!FWindowsApplication::DeferMessage() windowsapplication.cpp:1709 
UE4Editor_Core!FWindowsApplication::ProcessMessage() windowsapplication.cpp:707 
UE4Editor_Core!FWindowsApplication::AppWndProc() windowsapplication.cpp:629 
user32!<Unknown> 
user32!<Unknown> 
UE4Editor_Core!FWindowsPlatformMisc::PumpMessages() windowsplatformmisc.cpp:884 
UE4Editor!FEngineLoop::Tick() launchengineloop.cpp:2391 
UE4Editor!GuardedMain() launch.cpp:142 
UE4Editor!GuardedMainWrapper() launchwindows.cpp:126 
UE4Editor!WinMain() launchwindows.cpp:200 
UE4Editor!__scrt_common_main_seh() exe_common.inl:264 
kernel32!<Unknown> 
ntdll!<Unknown> 

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

0
Login to Vote

Fixed
ComponentUE - Gameplay - Blueprint
Affects Versions4.10
Target Fix4.11
Fix Commit2815340
Main Commit2818924
Release Commit2815340
CreatedNov 20, 2015
ResolvedJan 5, 2016
UpdatedApr 27, 2018
View Jira Issue