Description

Crash occurs in the updated Physics Asset Editor if you LeftClick while moving a ragdolled asset during Simulation.

This is a regression from 4.17.2

User Descriptions

  • in the new physics asset editor, if you ctrl+right click drag to move a ragdoll and then while dragging you left click as well, it crashes

Source Context

122       		// If releasing the mouse button, check we are done manipulating
  123       		check(!SharedData->bManipulating);
  124 ***** 		if (SharedData->GetSelectedBody())
  125       		{
  126       			for (int32 i = 0; i<SharedData->SelectedBodies.Num(); ++i)
  127       			{
  128       				SharedData->PhysicsAsset->SkeletalBodySetups[SharedData->SelectedBodies[i].Index]->Modify();
  129       				SharedData->SelectedBodies[i].ManipulateTM = FTransform::Identity;
  130       			}
  131       
  132       			SharedData->bManipulating = true;
  133       		}
Steps to Reproduce
  1. Create a Physics Asset from any Skeletalmesh, or open an existing one.
  2. Open the asset in the Physics Asset Editor
  3. On the toolbar, click "Simulate"
  4. Ctrl+RightMouse to pick up the ragdolled asset
  5. LeftMouse click

Crash

Callstack
Assertion failed: !SharedData->bManipulating [File:D:\Build\++UE4+Release-4.18+Compile\Sync\Engine\Source\Editor\PhysicsAssetEditor\Private\PhysicsAssetEditorEditMode.cpp] [Line: 124]

UE4Editor_PhysicsAssetEditor!FPhysicsAssetEditorEditMode::StartTracking() [physicsasseteditoreditmode.cpp:125]
UE4Editor_UnrealEd!FEditorModeTools::StartTracking() [editormodemanager.cpp:544]
UE4Editor_UnrealEd!FMouseDeltaTracker::StartTracking() [mousedeltatracker.cpp:227]
UE4Editor_UnrealEd!FEditorViewportClient::StartTrackingDueToInput() [editorviewportclient.cpp:2627]
UE4Editor_UnrealEd!FEditorViewportClient::InputKey() [editorviewportclient.cpp:2436]
UE4Editor_Persona!FAnimationViewportClient::InputKey() [animationeditorviewportclient.cpp:1026]
UE4Editor_Engine!FSceneViewport::OnMouseButtonDown() [sceneviewport.cpp:486]
UE4Editor_Slate!SViewport::OnMouseButtonDown() [sviewport.cpp:197]
UE4Editor_Slate!<lambda_ab77c21f1ddff5c8dfa7f5953c2a0e52>::operator() [slateapplication.cpp:5096]
UE4Editor_Slate!FEventRouter::Route<FReply,FEventRouter::FToLeafmostPolicy,FPointerEvent,<lambda_ab77c21f1ddff5c8dfa7f5953c2a0e52> >() [slateapplication.cpp:234]
UE4Editor_Slate!FSlateApplication::ProcessMouseButtonDownEvent() [slateapplication.cpp:5086]
UE4Editor_Slate!FSlateApplication::OnMouseDown() [slateapplication.cpp:5031]
UE4Editor_ApplicationCore!FWindowsApplication::ProcessDeferredMessage() [windowsapplication.cpp:1733]
UE4Editor_ApplicationCore!FWindowsApplication::DeferMessage() [windowsapplication.cpp:2171]
UE4Editor_ApplicationCore!FWindowsApplication::ProcessMessage() [windowsapplication.cpp:888]
UE4Editor_ApplicationCore!FWindowsApplication::AppWndProc() [windowsapplication.cpp:725]
user32!UserCallWinProcCheckWow()
user32!DispatchMessageWorker()
UE4Editor_ApplicationCore!FWindowsPlatformApplicationMisc::PumpMessages() [windowsplatformapplicationmisc.cpp:129]
UE4Editor!FEngineLoop::Tick() [launchengineloop.cpp:3220]
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!BaseThreadInitThunk()
ntdll!RtlUserThreadStart()
Community References

Have Comments or More Details?

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

1
Login to Vote

Fixed
ComponentUE - Simulation - Physics
Affects Versions4.18
Target Fix4.18.1
Fix Commit3720730
CreatedOct 25, 2017
ResolvedOct 26, 2017
UpdatedApr 27, 2018
Pull Requests
4447 - klorberg