Description

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

An assertion is thrown when changing Animation Mode to any other mode while a Control Rig is selected.

Steps to Reproduce
  1. Create a Third Person template Project
  2. Place CR_Mannequin_Body into the level
  3. Ensure the editor is in Animation Mode
  4. Select one of the controls on the Control Rig
  5. Change modes to Landscape mode

Expected Results:
The editor changes to Landscape mode.

Actual Results:
Editor crashes with an Assertion:

Assertion failed: PendingDeactivateModes.Num() == 0 [File:D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\EditorModeManager.cpp] [Line: 641]
Callstack

Crash Reporter:

Assertion failed: PendingDeactivateModes.Num() == 0 [File:D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\EditorModeManager.cpp] [Line: 641]

UnrealEditor_UnrealEd!FEditorModeTools::ExitAllModesPendingDeactivate() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\EditorModeManager.cpp:641]
UnrealEditor_UnrealEd!FEditorModeTools::Tick() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\EditorModeManager.cpp:1216]
UnrealEditor_UnrealEd!FLevelEditorViewportClient::Tick() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\LevelEditorViewport.cpp:2303]
UnrealEditor_UnrealEd!UEditorEngine::Tick() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\EditorEngine.cpp:1873]
UnrealEditor_UnrealEd!UUnrealEdEngine::Tick() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\UnrealEdEngine.cpp:474]
UnrealEditor!FEngineLoop::Tick() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:5215]
UnrealEditor!GuardedMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:183]
UnrealEditor!GuardedMainWrapper() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:147]
UnrealEditor!LaunchWindowsStartup() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:283]
UnrealEditor!WinMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:330]
UnrealEditor!__scrt_common_main_seh() [d:\a01\_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
kernel32
ntdll

Log:

Error: === Critical error: ===
Error: 
Error: Fatal error!
Error: 
Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000010
Error: 
Error: [Callstack] 0x00007ff8e3e81b7b UnrealEditor-ControlRigEditor.dll!FControlRigBaseDockableView::`vcall'{16}'() []
Error: [Callstack] 0x00007ff8e3ed966e UnrealEditor-ControlRigEditor.dll!TBaseRawMethodDelegateInstance<0,FControlRigBaseDockableView,void __cdecl(UControlRig *,bool),FDefaultDelegateUserPolicy>::ExecuteIfSafe() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:470]
Error: [Callstack] 0x00007ff8e3e924a5 UnrealEditor-ControlRigEditor.dll!TMulticastDelegate<void __cdecl(UControlRig *,bool),FDefaultDelegateUserPolicy>::Broadcast() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Public\Delegates\DelegateSignatureImpl.inl:967]
Error: [Callstack] 0x00007ff8e3f61c4f UnrealEditor-ControlRigEditor.dll!FControlRigEditMode::RemoveControlRig() [D:\build\++UE5\Sync\Engine\Plugins\Animation\ControlRig\Source\ControlRigEditor\Private\EditMode\ControlRigEditMode.cpp:3210]
Error: [Callstack] 0x00007ff8e3f78e0e UnrealEditor-ControlRigEditor.dll!FControlRigEditMode::SetObjects() [D:\build\++UE5\Sync\Engine\Plugins\Animation\ControlRig\Source\ControlRigEditor\Private\EditMode\ControlRigEditMode.cpp:188]
Error: [Callstack] 0x00007ff8e419b030 UnrealEditor-ControlRigEditor.dll!FControlRigParameterTrackEditor::SetUpEditModeIfNeeded() [D:\build\++UE5\Sync\Engine\Plugins\Animation\ControlRig\Source\ControlRigEditor\Private\Sequencer\ControlRigParameterTrackEditor.cpp:2254]
Error: [Callstack] 0x00007ff8e417eff7 UnrealEditor-ControlRigEditor.dll!FControlRigParameterTrackEditor::HandleControlSelected() [D:\build\++UE5\Sync\Engine\Plugins\Animation\ControlRig\Source\ControlRigEditor\Private\Sequencer\ControlRigParameterTrackEditor.cpp:2348]
Error: [Callstack] 0x00007ff8e4167d04 UnrealEditor-ControlRigEditor.dll!TBaseRawMethodDelegateInstance<0,FControlRigParameterTrackEditor,void __cdecl(UControlRig *,FRigControlElement *,bool),FDefaultDelegateUserPolicy>::ExecuteIfSafe() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:470]
Error: [Callstack] 0x00007ff8eb97bc7d UnrealEditor-ControlRig.dll!UControlRig::HandleHierarchyModified() [D:\build\++UE5\Sync\Engine\Plugins\Animation\ControlRig\Source\ControlRig\Private\ControlRig.cpp:1675]
Error: [Callstack] 0x00007ff8eb95b57e UnrealEditor-ControlRig.dll!TBaseUObjectMethodDelegateInstance<0,UControlRig,void __cdecl(enum ERigHierarchyNotification,URigHierarchy *,FRigBaseElement const *),FDefaultDelegateUserPolicy>::ExecuteIfSafe() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:611]
Error: [Callstack] 0x00007ff8eb985f8d UnrealEditor-ControlRig.dll!URigHierarchy::Notify() [D:\build\++UE5\Sync\Engine\Plugins\Animation\ControlRig\Source\ControlRig\Private\Rigs\RigHierarchy.cpp:2049]
Error: [Callstack] 0x00007ff8eba3304a UnrealEditor-ControlRig.dll!URigHierarchyController::Notify() [D:\build\++UE5\Sync\Engine\Plugins\Animation\ControlRig\Source\ControlRig\Private\Rigs\RigHierarchyController.cpp:1561]
Error: [Callstack] 0x00007ff8eba4fc0f UnrealEditor-ControlRig.dll!URigHierarchyController::SelectElement() [D:\build\++UE5\Sync\Engine\Plugins\Animation\ControlRig\Source\ControlRig\Private\Rigs\RigHierarchyController.cpp:97]
Error: [Callstack] 0x00007ff8eba5596b UnrealEditor-ControlRig.dll!URigHierarchyController::SetSelection() [D:\build\++UE5\Sync\Engine\Plugins\Animation\ControlRig\Source\ControlRig\Private\Rigs\RigHierarchyController.cpp:126]
Error: [Callstack] 0x00007ff8eb93af89 UnrealEditor-ControlRig.dll!UControlRig::ClearControlSelection() [D:\build\++UE5\Sync\Engine\Plugins\Animation\ControlRig\Source\ControlRig\Private\ControlRig.cpp:1631]
Error: [Callstack] 0x00007ff8e3ee5dcf UnrealEditor-ControlRigEditor.dll!FControlRigEditMode::Exit() [D:\build\++UE5\Sync\Engine\Plugins\Animation\ControlRig\Source\ControlRigEditor\Private\EditMode\ControlRigEditMode.cpp:422]
Error: [Callstack] 0x00007ff912acb880 UnrealEditor-UnrealEd.dll!FEditorModeTools::ExitAllModesPendingDeactivate() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\EditorModeManager.cpp:638]
Error: [Callstack] 0x00007ff912afa47d UnrealEditor-UnrealEd.dll!FEditorModeTools::Tick() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\EditorModeManager.cpp:1216]
Error: [Callstack] 0x00007ff912f9d795 UnrealEditor-UnrealEd.dll!FLevelEditorViewportClient::Tick() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\LevelEditorViewport.cpp:2303]
Error: [Callstack] 0x00007ff912a9e636 UnrealEditor-UnrealEd.dll!UEditorEngine::Tick() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\EditorEngine.cpp:1873]
Error: [Callstack] 0x00007ff913429f56 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-152763 in the post.

3
Login to Vote

Duplicate
ComponentUE - Anim - Rigging - Control Rig
Affects Versions5.0.1
Target Fix5.0.2
CreatedMay 17, 2022
ResolvedMay 19, 2022
UpdatedMay 19, 2022
View Jira Issue