Description

Occurs on?
4.16 - 3466753 - YES
4.17 - 3521650 - YES


Error message:

Assertion failed: RefBonePose.Num() == NumBones [Link Removed] [Line: 4400]

Source Context:

4387       ResetAnimation();
 4388       
 4389       const FReferenceSkeleton& RefSkeleton = Mesh->RefSkeleton;
 4390       SequenceLength = MINIMUM_ANIMATION_LENGTH;
 4391       NumFrames = 1;
 4392       
 4393       const int32 NumBones = RefSkeleton.GetRawBoneNum();
 4394       RawAnimationData.AddZeroed(NumBones);
 4395       AnimationTrackNames.AddUninitialized(NumBones);
 4396       
 4397       const TArray<FTransform>& RefBonePose = RefSkeleton.GetRefBonePose();
 4398       
 4399       check (RefBonePose.Num() == NumBones);
 4400       
 4401 ***** for (int32 BoneIndex=0; BoneIndex<NumBones; ++BoneIndex)
 4402       {
 4403       AnimationTrackNames[BoneIndex] = RefSkeleton.GetBoneName(BoneIndex);
 4404       
 4405       FRawAnimSequenceTrack& RawTrack = RawAnimationData[BoneIndex];
 4406       
 4407       RawTrack.PosKeys.Add(RefBonePose[BoneIndex].GetTranslation());
 4408       RawTrack.RotKeys.Add(RefBonePose[BoneIndex].GetRotation());
 4409       RawTrack.ScaleKeys.Add(RefBonePose[BoneIndex].GetScale3D());
 4410       }
 4411       
 4412       // refresh TrackToskeletonMapIndex
 4413       RefreshTrackMapFromAnimTrackNames();
 4414       
 4415       // should recreate track map
 4416       PostProcessSequence();

Most recent user affected CL: 3514769

Logs:
Attached


CrashReporter User Descriptions:

Steps to Reproduce

NEW REPRO

  1. Create a Third Person Template project
  2. Open any animation sequence
  3. Window>Skeleton Tree
  4. Right click any bone>Create Virtual Bone>Select a bone in the tree
  5. Create Asset>Create Animation>Current Pose
  6. Select a folder and hit OK

ORIGINAL REPRO:

  1. Create a Third Person Template project
  2. Open any animation sequence
  3. Window>Skeleton Tree
  4. Right click any bone>Create Virtual Bone>Select a bone in the tree
  5. Create Asset>Create Animation>Reference Pose
  6. Select a folder and hit OK

Result: Crash
Expected: Asset created from reference pose in the selected folder

Callstack
UE4Editor_Engine!UAnimSequence::CreateAnimation() [animsequence.cpp:4402]
UE4Editor_AnimationEditor!FAnimationEditor::CreateAnimation() [animationeditor.cpp:988]
UE4Editor_AnimationEditor!TBaseSPMethodDelegateInstance<0,FAnimationEditor const ,0,TTypeWrapper<void> __cdecl() [delegateinstancesimpl.h:327]
UE4Editor_UnrealEd!AnimationEditorUtils::CreateAnimationAssets() [animationeditorutils.cpp:313]
UE4Editor_AnimationEditor!AnimationEditorUtils::ExecuteNewAnimAsset<UAnimSequenceFactory,UAnimSequence>() [animationeditorutils.h:180]
UE4Editor_AnimationEditor!UE4Tuple_Private::TTupleImpl<TIntegerSequence<unsigned int,0,1,2,3>,TArray<TWeakObjectPtr<UObject,FWeakObjectPtr>,FDefaultAllocator>,FString,TBaseDelegate<void,TArray<UObject * __ptr64,FDefaultAllocator> >,bool>::ApplyAfter<void() [tuple.h:423]
UE4Editor_AnimationEditor!TBaseStaticDelegateInstance<void __cdecl() [delegateinstancesimpl.h:1027]
UE4Editor_Slate!SMenuEntryBlock::OnClicked() [smenuentryblock.cpp:1051]
UE4Editor_Slate!SMenuEntryBlock::OnMenuItemButtonClicked() [smenuentryblock.cpp:1002]
UE4Editor_Slate!TMemberFunctionCaller<SMenuEntryBlock,FReply() [delegateinstanceinterface.h:165]
UE4Editor_Slate!UE4Tuple_Private::TTupleImpl<TIntegerSequence<unsigned int> >::ApplyAfter<TMemberFunctionCaller<SMenuEntryBlock,FReply() [tuple.h:497]
UE4Editor_Slate!TBaseSPMethodDelegateInstance<0,SMenuEntryBlock,0,FReply __cdecl() [delegateinstancesimpl.h:327]
UE4Editor_Slate!TBaseDelegate<FReply>::Execute() [delegatesignatureimpl.inl:537]
UE4Editor_Slate!SButton::OnMouseButtonUp() [sbutton.cpp:278]
UE4Editor_Slate!SMenuEntryButton::OnMouseButtonUp() [smenuentryblock.cpp:399]
UE4Editor_Slate!<lambda_8d0e9a1da76abd0a756a3a9d775f5ed1>::operator() [slateapplication.cpp:5049]
UE4Editor_Slate!FEventRouter::Route<FReply,FEventRouter::FToLeafmostPolicy,FPointerEvent,<lambda_8d0e9a1da76abd0a756a3a9d775f5ed1> >() [slateapplication.cpp:239]
UE4Editor_Slate!FSlateApplication::RoutePointerUpEvent() [slateapplication.cpp:5038]
UE4Editor_Slate!FSlateApplication::ProcessMouseButtonUpEvent() [slateapplication.cpp:5515]
UE4Editor_Slate!FSlateApplication::OnMouseUp() [slateapplication.cpp:5495]
UE4Editor_Core!FWindowsApplication::ProcessDeferredMessage() [windowsapplication.cpp:1704]
UE4Editor_Core!FWindowsApplication::DeferMessage() [windowsapplication.cpp:2127]
UE4Editor_Core!FWindowsApplication::ProcessMessage() [windowsapplication.cpp:867]
UE4Editor_Core!FWindowsApplication::AppWndProc() [windowsapplication.cpp:714]
user32!<Unknown>
user32!<Unknown>
UE4Editor_Core!FWindowsPlatformMisc::PumpMessages() [windowsplatformmisc.cpp:1009]
UE4Editor!FEngineLoop::Tick() [launchengineloop.cpp:3058]
UE4Editor!GuardedMain() [launch.cpp:166]
UE4Editor!GuardedMainWrapper() [launchwindows.cpp:134]
UE4Editor!WinMain() [launchwindows.cpp:210]
UE4Editor!__scrt_common_main_seh() [exe_common.inl:253]
kernel32!<Unknown>
ntdll!<Unknown>

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

0
Login to Vote

Fixed
ComponentOLD - Anim
Affects Versions4.164.17
Target Fix4.17
Fix Commit3528799
Main Commit3555226
Release Commit3528799
CreatedJul 5, 2017
ResolvedJul 10, 2017
UpdatedApr 27, 2018