Description

Upon force deletion of a BP asset still referenced in memory an ensure is hit.

Steps to Reproduce
  1. Open a project
  2. Create a BP
  3. Place an instance of BP
  4. PIE
  5. Exit PIE
  6. Force delete BP asset
    OBSERVE: Ensure (log below)
Callstack
LogOutputDevice:Error: === Handled ensure: ===
LogOutputDevice:Error: Ensure condition failed: Lhs.CurrentNum == Lhs.InitialNum [File:D:\Builds\samuel.proctor_Switcher\Engine\Source\Runtime\Core\Public\Containers\Array.h] [Line: 196]
LogOutputDevice:Error: Array has changed during ranged-for iteration!
LogOutputDevice:Error: Stack: 
LogOutputDevice:Error: UE4Editor-Core.dll!FWindowsPlatformStackWalk::StackWalkAndDump() [d:\builds\samuel.proctor_switcher\engine\source\runtime\core\private\windows\windowsplatformstackwalk.cpp:183]
LogOutputDevice:Error: UE4Editor-Core.dll!FDebug::EnsureFailed() [d:\builds\samuel.proctor_switcher\engine\source\runtime\core\private\misc\outputdevice.cpp:297]
LogOutputDevice:Error: UE4Editor-Core.dll!FDebug::OptionallyLogFormattedEnsureMessageReturningFalse() [d:\builds\samuel.proctor_switcher\engine\source\runtime\core\private\misc\outputdevice.cpp:432]
LogOutputDevice:Error: UE4Editor-UnrealEd.dll!ObjectTools::ForceDeleteObjects() [d:\builds\samuel.proctor_switcher\engine\source\editor\unrealed\private\objecttools.cpp:2097]
LogOutputDevice:Error: UE4Editor-UnrealEd.dll!FAssetDeleteModel::DoForceDelete() [d:\builds\samuel.proctor_switcher\engine\source\editor\unrealed\private\assetdeletemodel.cpp:284]
LogOutputDevice:Error: UE4Editor-UnrealEd.dll!SDeleteAssetsDialog::ForceDelete() [d:\builds\samuel.proctor_switcher\engine\source\editor\unrealed\private\dialogs\sdeleteassetsdialog.cpp:705]
LogOutputDevice:Error: UE4Editor-UnrealEd.dll!TMemberFunctionCaller<SDeleteAssetsDialog,FReply (__cdecl SDeleteAssetsDialog::*)(void) __ptr64>::operator()<>() [d:\builds\samuel.proctor_switcher\engine\source\runtime\core\public\delegates\delegateinstanceinterface.h:161]
LogOutputDevice:Error: UE4Editor-UnrealEd.dll!TTupleImpl<TIntegerSequence<unsigned int> >::ApplyAfter<TMemberFunctionCaller<SDeleteAssetsDialog,FReply (__cdecl SDeleteAssetsDialog::*)(void) __ptr64> >() [d:\builds\samuel.proctor_switcher\engine\source\runtime\core\public\delegates\tuple.h:115]
LogOutputDevice:Error: UE4Editor-UnrealEd.dll!TBaseSPMethodDelegateInstance<0,SDeleteAssetsDialog,0,FReply __cdecl(void)>::Execute() [d:\builds\samuel.proctor_switcher\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:317]
LogOutputDevice:Error: UE4Editor-Slate.dll!TBaseDelegate<FReply>::Execute() [d:\builds\samuel.proctor_switcher\engine\source\runtime\core\public\delegates\delegatesignatureimpl.inl:521]
LogOutputDevice:Error: UE4Editor-Slate.dll!SButton::OnMouseButtonUp() [d:\builds\samuel.proctor_switcher\engine\source\runtime\slate\private\widgets\input\sbutton.cpp:278]
LogOutputDevice:Error: UE4Editor-Slate.dll!<lambda_8d0e9a1da76abd0a756a3a9d775f5ed1>::operator()() [d:\builds\samuel.proctor_switcher\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:4931]
LogOutputDevice:Error: UE4Editor-Slate.dll!FEventRouter::Route<FReply,FEventRouter::FToLeafmostPolicy,FPointerEvent,<lambda_8d0e9a1da76abd0a756a3a9d775f5ed1> >() [d:\builds\samuel.proctor_switcher\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:215]
LogOutputDevice:Error: UE4Editor-Slate.dll!FSlateApplication::RoutePointerUpEvent() [d:\builds\samuel.proctor_switcher\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:4920]
LogOutputDevice:Error: UE4Editor-Slate.dll!FSlateApplication::ProcessMouseButtonUpEvent() [d:\builds\samuel.proctor_switcher\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:5378]
LogOutputDevice:Error: UE4Editor-Slate.dll!FSlateApplication::OnMouseUp() [d:\builds\samuel.proctor_switcher\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:5358]
LogOutputDevice:Error: UE4Editor-Core.dll!FWindowsApplication::ProcessDeferredMessage() [d:\builds\samuel.proctor_switcher\engine\source\runtime\core\private\windows\windowsapplication.cpp:1631]
LogOutputDevice:Error: UE4Editor-Core.dll!FWindowsApplication::DeferMessage() [d:\builds\samuel.proctor_switcher\engine\source\runtime\core\private\windows\windowsapplication.cpp:1977]
LogOutputDevice:Error: UE4Editor-Core.dll!FWindowsApplication::ProcessMessage() [d:\builds\samuel.proctor_switcher\engine\source\runtime\core\private\windows\windowsapplication.cpp:750]
LogOutputDevice:Error: UE4Editor-Core.dll!FWindowsApplication::AppWndProc() [d:\builds\samuel.proctor_switcher\engine\source\runtime\core\private\windows\windowsapplication.cpp:672]
LogOutputDevice:Error: USER32.dll
LogOutputDevice:Error: USER32.dll
LogOutputDevice:Error: UE4Editor-Core.dll!FWindowsApplication::PumpMessages() [d:\builds\samuel.proctor_switcher\engine\source\runtime\core\private\windows\windowsapplication.cpp:1989]
LogOutputDevice:Error: UE4Editor-Slate.dll!FSlateApplication::TickPlatform() [d:\builds\samuel.proctor_switcher\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:1483]
LogOutputDevice:Error: UE4Editor-Slate.dll!FSlateApplication::AddModalWindow() [d:\builds\samuel.proctor_switcher\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:1987]
LogOutputDevice:Error: UE4Editor-UnrealEd.dll!UEditorEngine::EditorAddModalWindow() [d:\builds\samuel.proctor_switcher\engine\source\editor\unrealed\private\editorengine.cpp:3588]
LogOutputDevice:Error: UE4Editor-UnrealEd.dll!ObjectTools::DeleteObjects() [d:\builds\samuel.proctor_switcher\engine\source\editor\unrealed\private\objecttools.cpp:1698]
LogOutputDevice:Error: UE4Editor-UnrealEd.dll!ObjectTools::DeleteAssets() [d:\builds\samuel.proctor_switcher\engine\source\editor\unrealed\private\objecttools.cpp:1605]
LogOutputDevice:Error: UE4Editor-ContentBrowser.dll!FAssetContextMenu::ExecuteDelete() [d:\builds\samuel.proctor_switcher\engine\source\editor\contentbrowser\private\assetcontextmenu.cpp:1784]
LogOutputDevice:Error: UE4Editor-ContentBrowser.dll!SContentBrowser::HandleDeleteCommandExecute() [d:\builds\samuel.proctor_switcher\engine\source\editor\contentbrowser\private\scontentbrowser.cpp:1972]
LogOutputDevice:Error: UE4Editor-ContentBrowser.dll!TBaseSPMethodDelegateInstance<0,SContentBrowser,0,TTypeWrapper<void> __cdecl(void)>::Execute() [d:\builds\samuel.proctor_switcher\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:317]
LogOutputDevice:Error: UE4Editor-ContentBrowser.dll!TBaseSPMethodDelegateInstance<0,SContentBrowser,0,void __cdecl(void)>::ExecuteIfSafe() [d:\builds\samuel.proctor_switcher\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:424]
LogOutputDevice:Error: UE4Editor-Slate.dll!FUICommandList::ConditionalProcessCommandBindings() [d:\builds\samuel.proctor_switcher\engine\source\runtime\slate\private\framework\commands\uicommandlist.cpp:211]
LogOutputDevice:Error: UE4Editor-Slate.dll!FUICommandList::ProcessCommandBindings() [d:\builds\samuel.proctor_switcher\engine\source\runtime\slate\private\framework\commands\uicommandlist.cpp:155]
LogOutputDevice:Error: UE4Editor-ContentBrowser.dll!SContentBrowser::OnKeyDown() [d:\builds\samuel.proctor_switcher\engine\source\editor\contentbrowser\private\scontentbrowser.cpp:971]
LogOutputDevice:Error: UE4Editor-Slate.dll!<lambda_2afcd964c763e269e2d1a63f3a72f846>::operator()() [d:\builds\samuel.proctor_switcher\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:4547]
LogOutputDevice:Error: UE4Editor-Slate.dll!FEventRouter::Route<FReply,FEventRouter::FBubblePolicy,FKeyEvent,<lambda_2afcd964c763e269e2d1a63f3a72f846> >() [d:\builds\samuel.proctor_switcher\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:215]
LogOutputDevice:Error: UE4Editor-Slate.dll!FEventRouter::RouteAlongFocusPath<FEventRouter::FBubblePolicy,<lambda_2afcd964c763e269e2d1a63f3a72f846>,FKeyEvent>() [d:\builds\samuel.proctor_switcher\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:197]
LogOutputDevice:Error: UE4Editor-Slate.dll!FSlateApplication::ProcessKeyDownEvent() [d:\builds\samuel.proctor_switcher\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:4545]
LogOutputDevice:Error: UE4Editor-Slate.dll!FSlateApplication::OnKeyDown() [d:\builds\samuel.proctor_switcher\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:4460]
LogOutputDevice:Error: UE4Editor-Core.dll!FWindowsApplication::ProcessDeferredMessage() [d:\builds\samuel.proctor_switcher\engine\source\runtime\core\private\windows\windowsapplication.cpp:1466]
LogOutputDevice:Error: UE4Editor-Core.dll!FWindowsApplication::DeferMessage() [d:\builds\samuel.proctor_switcher\engine\source\runtime\core\private\windows\windowsapplication.cpp:1977]
LogOutputDevice:Error: UE4Editor-Core.dll!FWindowsApplication::ProcessMessage() [d:\builds\samuel.proctor_switcher\engine\source\runtime\core\private\windows\windowsapplication.cpp:750]
LogOutputDevice:Error: UE4Editor-Core.dll!FWindowsApplication::AppWndProc() [d:\builds\samuel.proctor_switcher\engine\source\runtime\core\private\windows\windowsapplication.cpp:672]
LogOutputDevice:Error: USER32.dll
LogOutputDevice:Error: USER32.dll
LogOutputDevice:Error: UE4Editor-Core.dll!FWindowsPlatformMisc::PumpMessages() [d:\builds\samuel.proctor_switcher\engine\source\runtime\core\private\windows\windowsplatformmisc.cpp:905]
LogOutputDevice:Error: UE4Editor.exe!FEngineLoop::Tick() [d:\builds\samuel.proctor_switcher\engine\source\runtime\launch\private\launchengineloop.cpp:2795]
LogOutputDevice:Error: UE4Editor.exe!GuardedMain() [d:\builds\samuel.proctor_switcher\engine\source\runtime\launch\private\launch.cpp:156]
LogOutputDevice:Error: UE4Editor.exe!GuardedMainWrapper() [d:\builds\samuel.proctor_switcher\engine\source\runtime\launch\private\windows\launchwindows.cpp:126]
LogOutputDevice:Error: UE4Editor.exe!WinMain() [d:\builds\samuel.proctor_switcher\engine\source\runtime\launch\private\windows\launchwindows.cpp:202]
LogOutputDevice:Error: UE4Editor.exe!__scrt_common_main_seh() [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:253]
LogOutputDevice:Error: kernel32.dll
LogOutputDevice:Error: ntdll.dll
LogOutputDevice:Error: ntdll.dll

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-34085 in the post.

1
Login to Vote

Fixed
ComponentUE - Gameplay - Blueprint
Affects Versions4.13
Target Fix4.13
Fix Commit3078952
Main Commit3092051
Release Commit3078952
CreatedAug 2, 2016
ResolvedAug 5, 2016
UpdatedApr 27, 2018
View Jira Issue