UE5.1 Crash to desktop when drag clicking in behaviour tree editor

after updating my project from unreal 5.03 to unreal 5.1 i haven’t been able to work on my AI Behaviour trees due to crashes every few minutes, this usually happens when i drag click to move tasks or decorators about in the behaviour tree editor but it will sometimes allow me to continue without crash for a couple of minutes after restart. this didn’t happen before updating the project at all.

steps to reproduce (not tested on any other project):
1- update project to 5.1 which includes an AI Behaviour tree
2- Launch project and open the behaviour tree
3- Drag click behaviour tree decorators or tasks a few times until it decides to crash

i don’t know how to find the file mentioned below as I have limited engine coding knowledge and would appreciate any help debugging, i have attached the crash log in case this helps. the only error i could find is the one mentioning : [File:D:\build++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\Class.cpp] [Line: 2207]
but i dont know where to find this code.
CrashLog.log (238.1 KB)

Error message on crash:

Assertion failed: this [File:D:\build++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\Class.cpp] [Line: 2207]

UnrealEditor_CoreUObject
UnrealEditor_AIModule
UnrealEditor_BehaviorTreeEditor
UnrealEditor_BehaviorTreeEditor
UnrealEditor_PropertyEditor
UnrealEditor_PropertyEditor
UnrealEditor_PropertyEditor
UnrealEditor_PropertyEditor
UnrealEditor_PropertyEditor
UnrealEditor_PropertyEditor
UnrealEditor_PropertyEditor
UnrealEditor_PropertyEditor
UnrealEditor_PropertyEditor
UnrealEditor_PropertyEditor
UnrealEditor_PropertyEditor
UnrealEditor_PropertyEditor
UnrealEditor_PropertyEditor
UnrealEditor_PropertyEditor
UnrealEditor_BehaviorTreeEditor
UnrealEditor_BehaviorTreeEditor
UnrealEditor_GraphEditor
UnrealEditor_GraphEditor
UnrealEditor_GraphEditor
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_Slate
UnrealEditor_ApplicationCore
UnrealEditor_ApplicationCore
UnrealEditor_ApplicationCore
UnrealEditor_ApplicationCore
user32
user32
InkObj
atlthunk
user32
user32
UnrealEditor_ApplicationCore
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
kernel32
ntdll

1 Like

I have the same issue, any news

Hello,

I am experiencing a similar problem, but it only happens when I interact with a MoveTo task. Specifically, when I try to move or click on the node, unreal crashes with the following error code:

Assertion failed: this [File:D:\build\++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\Class.cpp] [Line: 2207]

UnrealEditor_CoreUObject!UStruct::IsChildOf() [D:\build\++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\Class.cpp:2207]
UnrealEditor_AIModule!UBlackboardKeyType_Object::IsAllowedByFilter() [D:\build\++UE5\Sync\Engine\Source\Runtime\AIModule\Private\BehaviorTree\Blackboard\BlackboardKeyType_Object.cpp:61]
UnrealEditor_BehaviorTreeEditor!FBlackboardSelectorDetails::CacheBlackboardData() [D:\build\++UE5\Sync\Engine\Source\Editor\BehaviorTreeEditor\Private\DetailCustomizations\BlackboardSelectorDetails.cpp:166]
UnrealEditor_BehaviorTreeEditor!FBlackboardSelectorDetails::CustomizeHeader() [D:\build\++UE5\Sync\Engine\Source\Editor\BehaviorTreeEditor\Private\DetailCustomizations\BlackboardSelectorDetails.cpp:52]
UnrealEditor_PropertyEditor!FDetailPropertyRow::OnItemNodeInitialized() [D:\build\++UE5\Sync\Engine\Source\Editor\PropertyEditor\Private\DetailPropertyRow.cpp:288]
UnrealEditor_PropertyEditor!FDetailItemNode::InitPropertyEditor() [D:\build\++UE5\Sync\Engine\Source\Editor\PropertyEditor\Private\DetailItemNode.cpp:154]
UnrealEditor_PropertyEditor!FDetailItemNode::Initialize() [D:\build\++UE5\Sync\Engine\Source\Editor\PropertyEditor\Private\DetailItemNode.cpp:46]
UnrealEditor_PropertyEditor!FDetailCategoryImpl::GenerateNodesFromCustomizations() [D:\build\++UE5\Sync\Engine\Source\Editor\PropertyEditor\Private\DetailCategoryBuilderImpl.cpp:959]
UnrealEditor_PropertyEditor!FDetailCategoryImpl::GenerateChildrenForSingleLayout() [D:\build\++UE5\Sync\Engine\Source\Editor\PropertyEditor\Private\DetailCategoryBuilderImpl.cpp:981]
UnrealEditor_PropertyEditor!FDetailCategoryImpl::GenerateChildrenForLayouts() [D:\build\++UE5\Sync\Engine\Source\Editor\PropertyEditor\Private\DetailCategoryBuilderImpl.cpp:997]
UnrealEditor_PropertyEditor!FDetailCategoryImpl::GenerateLayout() [D:\build\++UE5\Sync\Engine\Source\Editor\PropertyEditor\Private\DetailCategoryBuilderImpl.cpp:1167]
UnrealEditor_PropertyEditor!FDetailLayoutBuilderImpl::BuildCategories() [D:\build\++UE5\Sync\Engine\Source\Editor\PropertyEditor\Private\DetailLayoutBuilderImpl.cpp:318]
UnrealEditor_PropertyEditor!FDetailLayoutBuilderImpl::GenerateDetailLayout() [D:\build\++UE5\Sync\Engine\Source\Editor\PropertyEditor\Private\DetailLayoutBuilderImpl.cpp:367]
UnrealEditor_PropertyEditor!SDetailsViewBase::UpdateSinglePropertyMap() [D:\build\++UE5\Sync\Engine\Source\Editor\PropertyEditor\Private\SDetailsViewBase.cpp:488]
UnrealEditor_PropertyEditor!SDetailsViewBase::UpdatePropertyMaps() [D:\build\++UE5\Sync\Engine\Source\Editor\PropertyEditor\Private\SDetailsViewBase.cpp:428]
UnrealEditor_PropertyEditor!SDetailsView::PostSetObject() [D:\build\++UE5\Sync\Engine\Source\Editor\PropertyEditor\Private\SDetailsView.cpp:983]
UnrealEditor_PropertyEditor!SDetailsView::SetObjectArrayPrivate() [D:\build\++UE5\Sync\Engine\Source\Editor\PropertyEditor\Private\SDetailsView.cpp:755]
UnrealEditor_PropertyEditor!SDetailsView::SetObjects() [D:\build\++UE5\Sync\Engine\Source\Editor\PropertyEditor\Private\SDetailsView.cpp:516]
UnrealEditor_BehaviorTreeEditor!FBehaviorTreeEditor::OnSelectedNodesChanged() [D:\build\++UE5\Sync\Engine\Source\Editor\BehaviorTreeEditor\Private\BehaviorTreeEditor.cpp:790]
UnrealEditor_BehaviorTreeEditor!TBaseSPMethodDelegateInstance<0,FBehaviorTreeEditor,1,void __cdecl(TSet<UObject *,DefaultKeyFuncs<UObject *,0>,FDefaultSetAllocator> const &),FDefaultDelegateUserPolicy>::ExecuteIfSafe() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:312]
UnrealEditor_GraphEditor!FGraphSelectionManager::SelectSingleNode() [D:\build\++UE5\Sync\Engine\Source\Editor\GraphEditor\Private\SNodePanel.cpp:137]
UnrealEditor_GraphEditor!FGraphSelectionManager::ClickedOnNode() [D:\build\++UE5\Sync\Engine\Source\Editor\GraphEditor\Private\SNodePanel.cpp:210]
UnrealEditor_GraphEditor!SNodePanel::OnMouseButtonUp() [D:\build\++UE5\Sync\Engine\Source\Editor\GraphEditor\Private\SNodePanel.cpp:1011]
UnrealEditor_GraphEditor!SGraphPanel::OnMouseButtonUp() [D:\build\++UE5\Sync\Engine\Source\Editor\GraphEditor\Private\SGraphPanel.cpp:843]
UnrealEditor_Slate!<lambda_51e270ca99ea7ce852539efd04dd453f>::operator()() [D:\build\++UE5\Sync\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:5046]
UnrealEditor_Slate!FEventRouter::Route<FReply,FEventRouter::FToLeafmostPolicy,FPointerEvent,<lambda_51e270ca99ea7ce852539efd04dd453f> >() [D:\build\++UE5\Sync\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:412]
UnrealEditor_Slate!FSlateApplication::RoutePointerUpEvent() [D:\build\++UE5\Sync\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:5032]
UnrealEditor_Slate!FSlateApplication::ProcessMouseButtonUpEvent() [D:\build\++UE5\Sync\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:5601]
UnrealEditor_Slate!FSlateApplication::OnMouseUp() [D:\build\++UE5\Sync\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:5566]
UnrealEditor_ApplicationCore!FWindowsApplication::ProcessDeferredMessage() [D:\build\++UE5\Sync\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:2219]
UnrealEditor_ApplicationCore!FWindowsApplication::DeferMessage() [D:\build\++UE5\Sync\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:2726]
UnrealEditor_ApplicationCore!FWindowsApplication::ProcessMessage() [D:\build\++UE5\Sync\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:1895]
UnrealEditor_ApplicationCore!FWindowsApplication::AppWndProc() [D:\build\++UE5\Sync\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:925]
user32
user32
InkObj
atlthunk
user32
user32
UnrealEditor_ApplicationCore!FWindowsPlatformApplicationMisc::PumpMessages() [D:\build\++UE5\Sync\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsPlatformApplicationMisc.cpp:142]
UnrealEditor!FEngineLoop::Tick() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:5291]
UnrealEditor!GuardedMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:202]
UnrealEditor!GuardedMainWrapper() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:107]
UnrealEditor!LaunchWindowsStartup() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:244]
UnrealEditor!WinMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:282]
UnrealEditor!__scrt_common_main_seh() [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
kernel32
ntdll

Any news with this issue?

Same problem here. Unreal 5.2 latest, material editor to connect some textures and desktop crash. empty project, just imported one single mesh for testing. i work with all kind of 3D tools and don’t have any crashes at all. clean OS, only the important tools installed. latest drivers.

Happened to me, too. Ensure that the blackboard value shown in the MoveTo, RotateToFaceBBEntry, etc. (Anything that needs an Actor) is not set to object but to the subclass Actor (or anything that inherits from Actor). Fixed the problem for me. It seems like a bug they introduced somewhere along the introduction of UE5. I can’t remember ever running into it before.

I had the same problem and I resolved this issue by deleting a task that i wasnt even using, but for some reason this task was the problem and deleting it was the solution, hope this help