Description

This Jira was created from CrashReports submitted by the public due to the high number of occurrences.

Error message:

Assertion failed: (Index >= 0) & (Index < ArrayNum) [Link Removed] [Line: 833] Array index out of bounds: 1 from an array of size 1

Source Context:

 682       	{
  683       		if ( StartIndex == 0 )
  684       		{
  685       			// clear the global pointer to the soon-to-be-deleted transaction
  686       			GUndo = NULL;
  687       			
  688       			// remove the currently active transaction from the buffer
  689       			UndoBuffer.Pop();
  690       		}
  691       		else
  692       		{
  693       			int32 RecordsToKeep = 0;
  694       			for (int32 ActiveIndex = 0; ActiveIndex <= StartIndex; ++ActiveIndex)
  695       			{
  696 ***** 				RecordsToKeep += ActiveRecordCounts[ActiveIndex];
  697       			}
  698       
  699       			FTransaction& Transaction = UndoBuffer.Last();
  700       			Transaction.RemoveRecords(Transaction.GetRecordCount() - RecordsToKeep);
  701       		}
  702       
  703       		// reset the active count
  704       		ActiveCount = StartIndex;
  705       		ActiveRecordCounts.SetNum(StartIndex);
  706       	}
  707       
  708       	CheckState();
  709       }
  710       
  711       

Most recent user affected CL: 3172292

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

Steps to Reproduce

Repro steps unknown

Callstack
UE4Editor_UnrealEd!UTransBuffer::Cancel() [editortransaction.cpp:697]
UE4Editor_UnrealEd!FScopedTransaction::Cancel() [scopedtransaction.cpp:48]
UE4Editor_UnrealEd!FLevelEditorViewportClient::TrackingStopped() [leveleditorviewport.cpp:2728]
UE4Editor_UnrealEd!FMouseDeltaTracker::EndTracking() [mousedeltatracker.cpp:306]
UE4Editor_UnrealEd!FEditorViewportClient::StopTracking() [editorviewportclient.cpp:2364]
UE4Editor_UnrealEd!FEditorViewportClient::InputKey() [editorviewportclient.cpp:2298]
UE4Editor_UnrealEd!FLevelEditorViewportClient::InputKey() [leveleditorviewport.cpp:2468]
UE4Editor_Engine!FSceneViewport::OnMouseButtonUp() [sceneviewport.cpp:508]
UE4Editor_Slate!SViewport::OnMouseButtonUp() [sviewport.cpp:181]
UE4Editor_Slate!<lambda_8d0e9a1da76abd0a756a3a9d775f5ed1>::operator() [slateapplication.cpp:4901]
UE4Editor_Slate!FEventRouter::Route<FReply,FEventRouter::FToLeafmostPolicy,FPointerEvent,<lambda_8d0e9a1da76abd0a756a3a9d775f5ed1> >() [slateapplication.cpp:215]
UE4Editor_Slate!FSlateApplication::RoutePointerUpEvent() [slateapplication.cpp:4890]
UE4Editor_Slate!FSlateApplication::ProcessMouseButtonUpEvent() [slateapplication.cpp:5348]
UE4Editor_Slate!FSlateApplication::OnMouseUp() [slateapplication.cpp:5328]
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!UserCallWinProcCheckWow()
user32!DispatchMessageWorker()
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!BaseThreadInitThunk()
ntdll!RtlUserThreadStart()

Have Comments or More Details?

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

0
Login to Vote

Duplicate
ComponentTools
Affects Versions4.124.134.174.184.194.204.214.224.234.24
CreatedNov 17, 2016
ResolvedMay 28, 2020
UpdatedJul 14, 2020