Steps to Reproduce

prerequisites

  • Have EngineTest project sync and editor built
  • Have AutomationDriverTest plugin enabled (will require rebuild)

repro

  1. Open Test Automation (in Tools menu)
  2. Search for the test:
    System.Automation.Driver.Element.CanFocus.should return false if the element can not be found
  3. Enable the checkbox and run the test

result
The test fails and reports this ensure:

=== Handled ensure: === [D:\views\Release5.1\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp(617)]
 [D:\views\Release5.1\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp(617)]
Ensure condition failed: UserRegistry.RegisterUser(MakeShared<FGenericAccessibleUser>(FGenericAccessibleUserRegistry::GetPrimaryUserIndex()))  [File:D:\views\Release5.1\Engine\Source\Runtime\ApplicationCore\Private\Windows\Accessibility\WindowsUIAManager.cpp] [Line: 94]  [D:\views\Release5.1\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp(617)]
 [D:\views\Release5.1\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp(617)]
Stack:  [D:\views\Release5.1\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp(617)]
0x00007ff9c505def6 UnrealEditor-ApplicationCore.dll!FWindowsUIAManager::OnAccessibleMessageHandlerChanged() [D:\views\Release5.1\Engine\Source\Runtime\ApplicationCore\Private\Windows\Accessibility\WindowsUIAManager.cpp:94] [D:\views\Release5.1\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp(617)]
0x00007ff9c5073336 UnrealEditor-ApplicationCore.dll!FWindowsApplication::SetAccessibleMessageHandler() [D:\views\Release5.1\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:399] [D:\views\Release5.1\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp(617)]
0x00007ff9a4989eaa UnrealEditor-Slate.dll!FSlateApplication::SetPlatformApplication() [D:\views\Release5.1\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:665] [D:\views\Release5.1\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp(617)]
0x00007ff935f91472 UnrealEditor-AutomationDriver.dll!FAutomationDriverModule::Disable() [D:\views\Release5.1\Engine\Source\Developer\AutomationDriver\Private\AutomationDriverModule.cpp:80] [D:\views\Release5.1\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp(617)]
0x00007ff99ee2e548 UnrealEditor-Core.dll!FAutomationSpecBase::FSingleExecuteLatentCommand::Update() [D:\views\Release5.1\Engine\Source\Runtime\Core\Public\Misc\AutomationTest.h:2103] [D:\views\Release5.1\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp(617)]
0x00007ff99f1306f6 UnrealEditor-Core.dll!FAutomationTestFramework::ExecuteLatentCommands() [D:\views\Release5.1\Engine\Source\Runtime\Core\Private\Misc\AutomationTest.cpp:471] [D:\views\Release5.1\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp(617)]
0x00007ff90a5511eb UnrealEditor-AutomationWorker.dll!FAutomationWorkerModule::Tick() [D:\views\Release5.1\Engine\Source\Runtime\AutomationWorker\Private\AutomationWorkerModule.cpp:67] [D:\views\Release5.1\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp(617)]
0x00007ff77166ade7 UnrealEditor.exe!FEngineLoop::Tick() [D:\views\Release5.1\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:5552] [D:\views\Release5.1\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp(617)]
0x00007ff77168348d UnrealEditor.exe!GuardedMain() [D:\views\Release5.1\Engine\Source\Runtime\Launch\Private\Launch.cpp:202] [D:\views\Release5.1\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp(617)]
0x00007ff77168357a UnrealEditor.exe!GuardedMainWrapper() [D:\views\Release5.1\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:107] [D:\views\Release5.1\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp(617)]
0x00007ff771686300 UnrealEditor.exe!LaunchWindowsStartup() [D:\views\Release5.1\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:244] [D:\views\Release5.1\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp(617)]
0x00007ff771697d04 UnrealEditor.exe!WinMain() [D:\views\Release5.1\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:282] [D:\views\Release5.1\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp(617)]
0x00007ff77169b0a6 UnrealEditor.exe!__scrt_common_main_seh() [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288] [D:\views\Release5.1\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp(617)]
0x00007ffa06e574b4 KERNEL32.DLL!UnknownFunction [] [D:\views\Release5.1\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp(617)]
0x00007ffa08e426a1 ntdll.dll!UnknownFunction [] [D:\views\Release5.1\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp(617)]
 [D:\views\Release5.1\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp(617)]

Have Comments or More Details?

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

0
Login to Vote

Fixed
ComponentUE - Automation Test
Affects Versions5.1
Target Fix5.1.1
Fix Commit23468662
Main Commit23475341
Release Commit23468662
CreatedDec 7, 2022
ResolvedDec 9, 2022
UpdatedFeb 4, 2023
View Jira Issue