Description

This is a regression. Tested in //UE4/Release-4.27 CL18319896

Editor crashes when keying a frame to an Animation from Pose with Appended Frames.

Steps to Reproduce
  1. Create a new project using the Third Person template
  2. Open MM_Run_Fwd Animation Sequence
  3. Scrub to any frame
  4. Select Create Asset > Create Animation > Current Pose then press Okay
  5. Right click in the time line then select Append at the End
  6. Set the frames to any number greater than 0 then press Enter
  7. Navigate to the Skeleton Tree then select any bone
  8. Rotate the bone
  9. Select Key

Expected Results:
The pose is keyed at that selected frame

Actual Results:
The Editor crashes with an Ensure:

Ensure condition failed: RawTrack.PosKeys.Num() == NumberOfSampledKeys [File:D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\Animation\AnimSequence.cpp] [Line: 4158]
Callstack

Crash Reporter:

Assertion failed: (Index >= 0) & (Index < ArrayNum) [File:D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Public\Containers\Array.h] [Line: 691] Array index out of bounds: 2 from an array of size 2

Logs:

Error: === Handled ensure: ===
Error: 
Error: Ensure condition failed: RawTrack.PosKeys.Num() == NumberOfSampledKeys [File:D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\Animation\AnimSequence.cpp] [Line: 4158]
Error: 
Error: Stack: 
Error: [Callstack] 0x00007ff901c69571 UnrealEditor-Engine.dll!UAnimSequence::BakeTrackCurvesToRawAnimationTracks() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\Animation\AnimSequence.cpp:4158]
Error: [Callstack] 0x00007ff901b8182d UnrealEditor-Engine.dll!FCompressibleAnimData::FCompressibleAnimData() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\Animation\AnimCompressionTypes.cpp:141]
Error: [Callstack] 0x00007ff901cb7fc5 UnrealEditor-Engine.dll!UAnimSequence::RequestAnimCompression() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\Animation\AnimSequence.cpp:2149]
Error: [Callstack] 0x00007ff901cac539 UnrealEditor-Engine.dll!UAnimSequence::RecompressAnimationData() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\Animation\AnimSequence.cpp:5926]
Error: [Callstack] 0x00007ff901ca73c5 UnrealEditor-Engine.dll!UAnimSequence::OnModelModified() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\Animation\AnimSequence.cpp:5794]
Error: [Callstack] 0x00007ff901cf54fd UnrealEditor-Engine.dll!TBaseUObjectMethodDelegateInstance<0,UAnimSequenceBase,void __cdecl(enum EAnimDataModelNotifyType const &,UAnimDataModel *,FAnimDataModelNotifPayload const &),FDefaultDelegateUserPolicy>::ExecuteIfSafe() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:611]
Error: [Callstack] 0x00007ff9019f95f4 UnrealEditor-Engine.dll!UAnimDataModel::Notify() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Classes\Animation\AnimData\AnimDataModel.h:357]
Error: [Callstack] 0x00007ff8ef4aa362 UnrealEditor-AnimationDataController.dll!UAnimDataController::CloseBracket() [D:\build\++UE5\Sync\Engine\Source\Developer\AnimationDataController\Private\AnimDataController.cpp:128]
Error: [Callstack] 0x00007ff901c63001 UnrealEditor-Engine.dll!UAnimSequence::AddKeyToSequence() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\Animation\AnimSequence.cpp:4224]
Error: [Callstack] 0x00007ff911abd25a UnrealEditor-AnimGraph.dll!FAnimPreviewInstanceProxy::SetKeyImplementation() [D:\build\++UE5\Sync\Engine\Source\Editor\AnimGraph\Private\AnimPreviewInstance.cpp:396]
Error: [Callstack] 0x00007ff911a72395 UnrealEditor-AnimGraph.dll!FAnimPreviewInstanceProxy::Evaluate() [D:\build\++UE5\Sync\Engine\Source\Editor\AnimGraph\Private\AnimPreviewInstance.cpp:237]
Error: [Callstack] 0x00007ff901bf8528 UnrealEditor-Engine.dll!FAnimInstanceProxy::EvaluateAnimation_WithRoot() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\Animation\AnimInstanceProxy.cpp:1204]
Error: [Callstack] 0x00007ff901c27c6f UnrealEditor-Engine.dll!UAnimInstance::ParallelEvaluateAnimation() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\Animation\AnimInstance.cpp:757]
Error: [Callstack] 0x00007ff90209185b UnrealEditor-Engine.dll!USkeletalMeshComponent::EvaluateAnimation() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\Components\SkeletalMeshComponent.cpp:1950]
Error: [Callstack] 0x00007ff9020a7099 UnrealEditor-Engine.dll!USkeletalMeshComponent::PerformAnimationProcessing() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\Components\SkeletalMeshComponent.cpp:2042]
Error: [Callstack] 0x00007ff9020a6195 UnrealEditor-Engine.dll!USkeletalMeshComponent::ParallelAnimationEvaluation() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\Components\SkeletalMeshComponent.cpp:3886]
Error: [Callstack] 0x00007ff90208f676 UnrealEditor-Engine.dll!USkeletalMeshComponent::DoParallelEvaluationTasks_OnGameThread() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\Components\SkeletalMeshComponent.cpp:2503]
Error: [Callstack] 0x00007ff9020ace61 UnrealEditor-Engine.dll!USkeletalMeshComponent::RefreshBoneTransforms() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\Components\SkeletalMeshComponent.cpp:2400]
Error: [Callstack] 0x00007ff9201603ea UnrealEditor-UnrealEd.dll!UDebugSkelMeshComponent::RefreshBoneTransforms() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\Animation\DebugSkelMeshComponent.cpp:702]
Error: [Callstack] 0x00007ff902133fbe UnrealEditor-Engine.dll!USkinnedMeshComponent::TickComponent() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\Components\SkinnedMeshComponent.cpp:917]
Error: [Callstack] 0x00007ff9020bd8b7 UnrealEditor-Engine.dll!USkeletalMeshComponent::TickComponent() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\Components\SkeletalMeshComponent.cpp:1449]
Error: [Callstack] 0x00007ff92017f09a UnrealEditor-UnrealEd.dll!UDebugSkelMeshComponent::TickComponent() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\Animation\DebugSkelMeshComponent.cpp:1063]
Error: [Callstack] 0x00007ff901f78a5c UnrealEditor-Engine.dll!FActorComponentTickFunction::ExecuteTickHelper<<lambda_8e93cba63652895611dfa1bc126611cb> >() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Classes\GameFramework\Actor.h:3931]
Error: [Callstack] 0x00007ff901fa9378 UnrealEditor-Engine.dll!FActorComponentTickFunction::ExecuteTick() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\Components\ActorComponent.cpp:1070]
Error: [Callstack] 0x00007ff9035a410f UnrealEditor-Engine.dll!FTickFunctionTask::DoTask() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\TickTaskManager.cpp:284]
Error: [Callstack] 0x00007ff9035ab3f8 UnrealEditor-Engine.dll!TGraphTask<FTickFunctionTask>::ExecuteTask() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Public\Async\TaskGraphInterfaces.h:975]
Error: [Callstack] 0x00007ff922d23a9d UnrealEditor-Core.dll!FNamedTaskThread::ProcessTasksNamedThread() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:753]
Error: [Callstack] 0x00007ff922d23f3e UnrealEditor-Core.dll!FNamedTaskThread::ProcessTasksUntilQuit() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:642]
Error: [Callstack] 0x00007ff922d2d6af UnrealEditor-Core.dll!FTaskGraphCompatibilityImplementation::WaitUntilTasksComplete() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:2169]
Error: [Callstack] 0x00007ff9035c160a UnrealEditor-Engine.dll!FTickTaskSequencer::ReleaseTickGroup() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\TickTaskManager.cpp:565]
Error: [Callstack] 0x00007ff9035c7fb0 UnrealEditor-Engine.dll!FTickTaskManager::RunTickGroup() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\TickTaskManager.cpp:1592]
Error: [Callstack] 0x00007ff90260c13f UnrealEditor-Engine.dll!UWorld::RunTickGroup() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\LevelTick.cpp:790]
Error: [Callstack] 0x00007ff902614a70 UnrealEditor-Engine.dll!UWorld::Tick() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\LevelTick.cpp:1531]
Error: [Callstack] 0x00007ff8ed76a934 UnrealEditor-Persona.dll!FAnimationEditorPreviewScene::Tick() [D:\build\++UE5\Sync\Engine\Source\Editor\Persona\Private\AnimationEditorPreviewScene.cpp:1168]
Error: [Callstack] 0x00007ff920099529 UnrealEditor-UnrealEd.dll!FTickableEditorObject::TickObjects() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Public\TickableEditorObject.h:45]
Error: [Callstack] 0x00007ff92056d204 UnrealEditor-UnrealEd.dll!UEditorEngine::Tick() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\EditorEngine.cpp:1536]
Error: [Callstack] 0x00007ff920ef9f56 UnrealEditor-UnrealEd.dll!UUnrealEdEngine::Tick() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\UnrealEdEngine.cpp:474]
Error: [Callstack] 0x00007ff6ce0f82f6 UnrealEditor.exe!FEngineLoop::Tick() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:5215]
Error: [Callstack] 0x00007ff6ce110d9c UnrealEditor.exe!GuardedMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:183]
Error: [Callstack] 0x00007ff6ce110e8a UnrealEditor.exe!GuardedMainWrapper() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:147]
Error: [Callstack] 0x00007ff6ce113c4d UnrealEditor.exe!LaunchWindowsStartup() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:283]
Error: [Callstack] 0x00007ff6ce125534 UnrealEditor.exe!WinMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:330]
Error: [Callstack] 0x00007ff6ce1286e6 UnrealEditor.exe!__scrt_common_main_seh() [d:\a01\_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
Error: [Callstack] 0x00007ff98dca7c24 KERNEL32.DLL!UnknownFunction []
Error: [Callstack] 0x00007ff98ed2d721 ntdll.dll!UnknownFunction []

Have Comments or More Details?

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

0
Login to Vote

Fixed
ComponentUE - Anim - Runtime
Affects Versions5.0.1
Target Fix5.1
Fix Commit19917036
Release Commit19917036
CreatedMay 17, 2022
ResolvedMay 18, 2022
UpdatedJan 25, 2023
View Jira Issue