Download

Crash on sending to Ragdoll

Hi,

I get a crash sometimes when sending my character to ragdoll. I use the physics animation component to make the character react to physics objects and from what I’ve seen, I can’t directly set Simulate Physics" on the mesh to send the character to ragdoll, or else I get really weird behaviors (the mesh starts spinning like crazy). The only method I found that works is to reset the Physics Asset forcing a re-init.

This is the code:

It works for some time, but eventually I get this crash:

[2017.09.05-23.21.19:826][709]LogWindows: Error: === Critical error: ===
[2017.09.05-23.21.19:826][709]LogWindows: Error:
[2017.09.05-23.21.19:826][709]LogWindows: Error: Assertion failed: !bPostEvaluatingAnimation [File:D:\Build++UE4+Release-4.17+Compile\Sync\Engine\Source\Runtime\Engine\Private\Components\SkeletalMeshComponent.cpp] [Line: 1954]
[2017.09.05-23.21.19:826][709]LogWindows: Error: PostAnimEvaluation already in progress, recursion detected for SkeletalMeshComponent [CharacterMesh0], AnimInstance [GladiatorC_ABP_C_0]
[2017.09.05-23.21.19:826][709]LogWindows: Error:
[2017.09.05-23.21.19:826][709]LogWindows: Error:
[2017.09.05-23.21.19:826][709]LogWindows: Error: KERNELBASE.dll!0x0000000098AC9E08
[2017.09.05-23.21.19:827][709]LogWindows: Error: UE4Editor-Core.dll!FOutputDeviceWindowsError::Serialize() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\core\private\windows\windowsplatformoutputdevices.cpp:120]
[2017.09.05-23.21.19:827][709]LogWindows: Error: UE4Editor-Core.dll!FOutputDevice::Logf__VA() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\core\private\misc\outputdevice.cpp:70]
[2017.09.05-23.21.19:827][709]LogWindows: Error: UE4Editor-Core.dll!FDebug::AssertFailed() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\core\private\misc\assertionmacros.cpp:349]
[2017.09.05-23.21.19:828][709]LogWindows: Error: UE4Editor-Engine.dll!USkeletalMeshComponent::PostAnimEvaluation() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\engine\private\components\skeletalmeshcomponent.cpp:1954]
[2017.09.05-23.21.19:828][709]LogWindows: Error: UE4Editor-Engine.dll!USkeletalMeshComponent::RefreshBoneTransforms() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\engine\private\components\skeletalmeshcomponent.cpp:1941]
[2017.09.05-23.21.19:828][709]LogWindows: Error: UE4Editor-Engine.dll!USkeletalMeshComponent::SetPhysicsAsset() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\engine\private\skeletalmeshcomponentphysics.cpp:1703]
[2017.09.05-23.21.19:830][709]LogWindows: Error: UE4Editor-Engine.dll!USkinnedMeshComponent::execSetPhysicsAsset() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\engine\classes\components\skinnedmeshcomponent.h:179]
[2017.09.05-23.21.19:830][709]LogWindows: Error: UE4Editor-CoreUObject.dll!UFunction::Invoke() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\coreuobject\private\uobject\class.cpp:4461]
[2017.09.05-23.21.19:830][709]LogWindows: Error: UE4Editor-CoreUObject.dll!UObject::CallFunction() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:732]
[2017.09.05-23.21.19:830][709]LogWindows: Error: UE4Editor-CoreUObject.dll!UObject::ProcessContextOpcode() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:2192]
[2017.09.05-23.21.19:830][709]LogWindows: Error: UE4Editor-CoreUObject.dll!UObject::ProcessInternal() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:954]
[2017.09.05-23.21.19:830][709]LogWindows: Error: UE4Editor-CoreUObject.dll!UObject::CallFunction() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:856]
[2017.09.05-23.21.19:830][709]LogWindows: Error: UE4Editor-CoreUObject.dll!UObject::ProcessInternal() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:954]
[2017.09.05-23.21.19:833][709]LogWindows: Error: UE4Editor-CoreUObject.dll!UFunction::Invoke() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\coreuobject\private\uobject\class.cpp:4461]
[2017.09.05-23.21.19:833][709]LogWindows: Error: UE4Editor-CoreUObject.dll!UObject::ProcessEvent() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:1334]
[2017.09.05-23.21.19:838][709]LogWindows: Error: UE4Editor-Engine.dll!AActor::ProcessEvent() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\engine\private\actor.cpp:699]
[2017.09.05-23.21.19:838][709]LogWindows: Error: UE4Editor-Engine.dll!AActor::ReceivePointDamage()
[2017.09.05-23.21.19:838][709]LogWindows: Error: UE4Editor-Engine.dll!AActor::TakeDamage() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\engine\private\actor.cpp:2107]
[2017.09.05-23.21.19:838][709]LogWindows: Error: UE4Editor-Engine.dll!APawn::TakeDamage() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\engine\private\pawn.cpp:421]
[2017.09.05-23.21.19:838][709]LogWindows: Error: UE4Editor-Engine.dll!UGameplayStatics::ApplyPointDamage() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\engine\private\gameplaystatics.cpp:345]
[2017.09.05-23.21.19:838][709]LogWindows: Error: UE4Editor-Engine.dll!UGameplayStatics::execApplyPointDamage() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\engine\classes\kismet\gameplaystatics.h:40]
[2017.09.05-23.21.19:838][709]LogWindows: Error: UE4Editor-CoreUObject.dll!UFunction::Invoke() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\coreuobject\private\uobject\class.cpp:4461]
[2017.09.05-23.21.19:838][709]LogWindows: Error: UE4Editor-CoreUObject.dll!UObject::CallFunction() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:732]
[2017.09.05-23.21.19:838][709]LogWindows: Error: UE4Editor-CoreUObject.dll!UObject::ProcessContextOpcode() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:2192]
[2017.09.05-23.21.19:838][709]LogWindows: Error: UE4Editor-CoreUObject.dll!UObject::execLet() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:1978]
[2017.09.05-23.21.19:838][709]LogWindows: Error: UE4Editor-CoreUObject.dll!UObject::ProcessInternal() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:954]
[2017.09.05-23.21.19:839][709]LogWindows: Error: UE4Editor-CoreUObject.dll!UObject::CallFunction() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:856]
[2017.09.05-23.21.19:839][709]LogWindows: Error: UE4Editor-CoreUObject.dll!UObject::ProcessInternal() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:954]
[2017.09.05-23.21.19:839][709]LogWindows: Error: UE4Editor-CoreUObject.dll!UFunction::Invoke() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\coreuobject\private\uobject\class.cpp:4461]
[2017.09.05-23.21.19:839][709]LogWindows: Error: UE4Editor-CoreUObject.dll!UObject::ProcessEvent() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:1334]
[2017.09.05-23.21.19:840][709]LogWindows: Error: UE4Editor-Engine.dll!AActor::ProcessEvent() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\engine\private\actor.cpp:699]
[2017.09.05-23.21.19:840][709]LogWindows: Error: UE4Editor-Engine.dll!TMulticastScriptDelegate<FWeakObjectPtr>::ProcessMulticastDelegate<UObject>() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\core\public\uobject\scriptdelegates.h:465]
[2017.09.05-23.21.19:840][709]LogWindows: Error: UE4Editor-Engine.dll!FComponentBeginOverlapSignature_DelegateWrapper() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\engine\classes\components\primitivecomponent.h:145]
[2017.09.05-23.21.19:840][709]LogWindows: Error: UE4Editor-Engine.dll!UPrimitiveComponent::BeginComponentOverlap() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\engine\private\components\primitivecomponent.cpp:2327]
[2017.09.05-23.21.19:840][709]LogWindows: Error: UE4Editor-Engine.dll!UPrimitiveComponent::UpdateOverlaps() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\engine\private\components\primitivecomponent.cpp:2811]
[2017.09.05-23.21.19:840][709]LogWindows: Error: UE4Editor-Engine.dll!UPrimitiveComponent::UpdateOverlaps() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\engine\private\components\primitivecomponent.cpp:2836]
[2017.09.05-23.21.19:840][709]LogWindows: Error: UE4Editor-Engine.dll!USkeletalMeshComponent::PostBlendPhysics() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\engine\private\physicsengine\physanim.cpp:432]
[2017.09.05-23.21.19:840][709]LogWindows: Error: UE4Editor-Engine.dll!USkeletalMeshComponent::PostAnimEvaluation() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\engine\private\components\skeletalmeshcomponent.cpp:2061]
[2017.09.05-23.21.19:840][709]LogWindows: Error: UE4Editor-Engine.dll!USkeletalMeshComponent::CompleteParallelAnimationEvaluation() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\engine\private\components\skeletalmeshcomponent.cpp:2955]
[2017.09.05-23.21.19:840][709]LogWindows: Error: UE4Editor-Engine.dll!FParallelAnimationCompletionTask::DoTask() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\engine\private\components\skeletalmeshcomponent.cpp:139]
[2017.09.05-23.21.19:840][709]LogWindows: Error: UE4Editor-Engine.dll!TGraphTask<FParallelAnimationCompletionTask>::ExecuteTask() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\core\public\async askgraphinterfaces.h:784]
[2017.09.05-23.21.19:840][709]LogWindows: Error: UE4Editor-Core.dll!FNamedTaskThread::ProcessTasksNamedThread() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\core\private\async askgraph.cpp:650]
[2017.09.05-23.21.19:840][709]LogWindows: Error: UE4Editor-Core.dll!FNamedTaskThread::ProcessTasksUntilQuit() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\core\private\async askgraph.cpp:559]
[2017.09.05-23.21.19:840][709]LogWindows: Error: UE4Editor-Core.dll!FTaskGraphImplementation::WaitUntilTasksComplete() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\core\private\async askgraph.cpp:1327]
[2017.09.05-23.21.19:840][709]LogWindows: Error: UE4Editor-Engine.dll!FTickTaskSequencer::ReleaseTickGroup() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\engine\private icktaskmanager.cpp:538]
[2017.09.05-23.21.19:842][709]LogWindows: Error: UE4Editor-Engine.dll!FTickTaskManager::RunTickGroup() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\engine\private icktaskmanager.cpp:1450]
[2017.09.05-23.21.19:842][709]LogWindows: Error: UE4Editor-Engine.dll!UWorld::RunTickGroup() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\engine\private\leveltick.cpp:758]
[2017.09.05-23.21.19:842][709]LogWindows: Error: UE4Editor-Engine.dll!UWorld::Tick() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\engine\private\leveltick.cpp:1383]
[2017.09.05-23.21.19:842][709]LogWindows: Error: UE4Editor-UnrealEd.dll!UEditorEngine::Tick() [d:\build++ue4+release-4.17+compile\sync\engine\source\editor\unrealed\private\editorengine.cpp:1650]
[2017.09.05-23.21.19:842][709]LogWindows: Error: UE4Editor-UnrealEd.dll!UUnrealEdEngine::Tick() [d:\build++ue4+release-4.17+compile\sync\engine\source\editor\unrealed\private\unrealedengine.cpp:402]
[2017.09.05-23.21.19:842][709]LogWindows: Error: UE4Editor.exe!FEngineLoop::Tick() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\launch\private\launchengineloop.cpp:3215]
[2017.09.05-23.21.19:842][709]LogWindows: Error: UE4Editor.exe!GuardedMain() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\launch\private\launch.cpp:166]
[2017.09.05-23.21.19:842][709]LogWindows: Error: UE4Editor.exe!GuardedMainWrapper() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:134]
[2017.09.05-23.21.19:842][709]LogWindows: Error: UE4Editor.exe!WinMain() [d:\build++ue4+release-4.17+compile\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:210]
[2017.09.05-23.21.19:842][709]LogWindows: Error: UE4Editor.exe!__scrt_common_main_seh() [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:253]
[2017.09.05-23.21.19:842][709]LogWindows: Error: KERNEL32.DLL!0x000000009BB02774
[2017.09.05-23.21.19:842][709]LogWindows: Error: ntdll.dll!0x000000009BEC0D51
[2017.09.05-23.21.19:842][709]LogWindows: Error: ntdll.dll!0x000000009BEC0D51
[2017.09.05-23.21.19:842][709]LogWindows: Error:

Does anybody know what is wrong?

Thanks!