Description

This JIRA is being entered as a result of it being one of the top crashes occurring in 4.13 Preview 1.

Error message:

Ensure condition failed: Lhs.CurrentNum == Lhs.InitialNum [Link Removed] [Line: 196] Array has changed during ranged-for iteration!

Source Context:

 2082       int32 ReplaceableObjectsNum = 0;
 2083       {
 2084       TArray<UObject*> ObjectsToReplace;
 2085       ObjectsToReplace.Reserve(ObjectsToDelete.Num());
 2086       
 2087       for(TWeakObjectPtr<UObject>& Object : ObjectsToDelete)
 2088       {
 2089       if(Object.IsValid())
 2090       {
 2091       ObjectsToReplace.Add(Object.Get());
 2092       }
 2093       }
 2094       
 2095       for(UObject* Object : ObjectsToReplace)
 2096 ***** {
 2097       UBlueprint* BlueprintObject = Cast<UBlueprint>(Object);
 2098       if (BlueprintObject)
 2099       {
 2100       // If we're a blueprint add our generated class as well
 2101       if (BlueprintObject->GeneratedClass)
 2102       {
 2103       ObjectsToReplace.AddUnique(BlueprintObject->GeneratedClass);
 2104       }
 2105       
 2106       // Reparent any direct children to the parent class of the blueprint that's about to be deleted
 2107       if(BlueprintObject->ParentClass != nullptr)
 2108       {
 2109       for(TObjectIterator<UClass> ClassIt; ClassIt; ++ClassIt)
 2110       {
 2111       UClass* ChildClass = *ClassIt;

Most recent user affected CL: 3072953

Logs:
[Link Removed]
[Link Removed]
[Link Removed]


CrashReporter User Descriptions:

  • UEQA - Samuel.Proctor - Force deleting Bluepritn Actor and Actor component with instances in the level.
Steps to Reproduce
  1. Open the editor
  2. Create a new actor
  3. Create a new actor component
  4. Add the actor component to the actor
  5. Place an instance of each in the level
  6. Select both in the content browser, press delete, and select Force Delete

Result: Editor crashes

Callstack
UE4Editor_UnrealEd!ObjectTools::ForceDeleteObjects() [objecttools.cpp:2097]
UE4Editor_UnrealEd!FAssetDeleteModel::DoForceDelete() [assetdeletemodel.cpp:284]
UE4Editor_UnrealEd!SDeleteAssetsDialog::ForceDelete() [sdeleteassetsdialog.cpp:705]
UE4Editor_UnrealEd!TMemberFunctionCaller<SDeleteAssetsDialog,FReply() [delegateinstanceinterface.h:161]
UE4Editor_UnrealEd!TTupleImpl<TIntegerSequence<unsigned int> >::ApplyAfter<TMemberFunctionCaller<SDeleteAssetsDialog,FReply() [tuple.h:115]
UE4Editor_UnrealEd!TBaseSPMethodDelegateInstance<0,SDeleteAssetsDialog,0,FReply __cdecl() [delegateinstancesimpl.h:317]
UE4Editor_Slate!TBaseDelegate<FReply>::Execute() [delegatesignatureimpl.inl:521]
UE4Editor_Slate!SButton::OnMouseButtonUp() [sbutton.cpp:278]
UE4Editor_Slate!<lambda_8d0e9a1da76abd0a756a3a9d775f5ed1>::operator() [slateapplication.cpp:4891]
UE4Editor_Slate!FEventRouter::Route<FReply,FEventRouter::FToLeafmostPolicy,FPointerEvent,<lambda_8d0e9a1da76abd0a756a3a9d775f5ed1> >() [slateapplication.cpp:215]
UE4Editor_Slate!FSlateApplication::RoutePointerUpEvent() [slateapplication.cpp:4880]
UE4Editor_Slate!FSlateApplication::ProcessMouseButtonUpEvent() [slateapplication.cpp:5338]
UE4Editor_Slate!FSlateApplication::OnMouseUp() [slateapplication.cpp:5318]
UE4Editor_Core!FWindowsApplication::ProcessDeferredMessage() [windowsapplication.cpp:1584]
UE4Editor_Core!FWindowsApplication::DeferMessage() [windowsapplication.cpp:1930]
UE4Editor_Core!FWindowsApplication::ProcessMessage() [windowsapplication.cpp:747]
UE4Editor_Core!FWindowsApplication::AppWndProc() [windowsapplication.cpp:669]
user32!<Unknown>
user32!<Unknown>
UE4Editor_Core!FWindowsApplication::PumpMessages() [windowsapplication.cpp:1942]
UE4Editor_Slate!FSlateApplication::TickPlatform() [slateapplication.cpp:1481]
UE4Editor_Slate!FSlateApplication::AddModalWindow() [slateapplication.cpp:1978]
UE4Editor_UnrealEd!UEditorEngine::EditorAddModalWindow() [editorengine.cpp:3588]
UE4Editor_UnrealEd!ObjectTools::DeleteObjects() [objecttools.cpp:1698]
UE4Editor_UnrealEd!ObjectTools::DeleteAssets() [objecttools.cpp:1605]
UE4Editor_ContentBrowser!FAssetContextMenu::ExecuteDelete() [assetcontextmenu.cpp:1784]
UE4Editor_ContentBrowser!SContentBrowser::HandleDeleteCommandExecute() [scontentbrowser.cpp:1972]
UE4Editor_ContentBrowser!TBaseSPMethodDelegateInstance<0,SContentBrowser,0,TTypeWrapper<void> __cdecl() [delegateinstancesimpl.h:317]
UE4Editor_ContentBrowser!TBaseSPMethodDelegateInstance<0,SContentBrowser,0,void __cdecl() [delegateinstancesimpl.h:423]
UE4Editor_Slate!FUICommandList::ConditionalProcessCommandBindings() [uicommandlist.cpp:211]
UE4Editor_Slate!FUICommandList::ProcessCommandBindings() [uicommandlist.cpp:155]
UE4Editor_ContentBrowser!SContentBrowser::OnKeyDown() [scontentbrowser.cpp:971]
UE4Editor_Slate!<lambda_2afcd964c763e269e2d1a63f3a72f846>::operator() [slateapplication.cpp:4507]
UE4Editor_Slate!FEventRouter::Route<FReply,FEventRouter::FBubblePolicy,FKeyEvent,<lambda_2afcd964c763e269e2d1a63f3a72f846> >() [slateapplication.cpp:215]
UE4Editor_Slate!FEventRouter::RouteAlongFocusPath<FEventRouter::FBubblePolicy,<lambda_2afcd964c763e269e2d1a63f3a72f846>,FKeyEvent>() [slateapplication.cpp:197]
UE4Editor_Slate!FSlateApplication::ProcessKeyDownEvent() [slateapplication.cpp:4505]
UE4Editor_Slate!FSlateApplication::OnKeyDown() [slateapplication.cpp:4420]
UE4Editor_Core!FWindowsApplication::ProcessDeferredMessage() [windowsapplication.cpp:1419]
UE4Editor_Core!FWindowsApplication::DeferMessage() [windowsapplication.cpp:1930]
UE4Editor_Core!FWindowsApplication::ProcessMessage() [windowsapplication.cpp:747]
UE4Editor_Core!FWindowsApplication::AppWndProc() [windowsapplication.cpp:669]
user32!<Unknown>
user32!<Unknown>
UE4Editor_Core!FWindowsPlatformMisc::PumpMessages() [windowsplatformmisc.cpp:905]
UE4Editor!FEngineLoop::Tick() [launchengineloop.cpp:2788]
UE4Editor!GuardedMain() [launch.cpp:156]
UE4Editor!GuardedMainWrapper() [launchwindows.cpp:126]
UE4Editor!WinMain() [launchwindows.cpp:202]
UE4Editor!__scrt_common_main_seh() [exe_common.inl:264]
kernel32!<Unknown>
ntdll!<Unknown>

Have Comments or More Details?

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

0
Login to Vote

Duplicate
ComponentUE - Gameplay - Blueprint
Affects Versions4.134.14
CreatedAug 8, 2016
ResolvedAug 8, 2016
UpdatedApr 27, 2018
View Jira Issue