x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Running tests produced error !IsRunningGame

Hi,

I am running tests from command line with the following command: "C:\Program Files\Epic Games\4.14\Engine\Build\BatchFiles\RunUAT.bat" BuildCookRun -project="C:\xxx\xxx\xxx\xxx.uproject" -run -RunAutomationTest=My.Test.Name -unattended -NOP4 -game I get an error The test starts but during the test I get the following error:

Ensure condition failed: !IsRunningGame() [File:D:\Build++UE4+Release-4.14+Compile\Sync\Engine\Source\Editor\MainFrame\Private\MainFrameModule.cpp] [Line: 597] UE4Editor: [2017.01.18-18.29.02:078][ 0]LogOutputDevice:Error: Ensure condition failed: !IsRunningGame() [File:D:\Build++UE4+Release-4.14+Compile\Sync\Engine\Source\Editor\MainFrame\Private\MainFrameModule.cpp] [Line: 597]

Do I need to use another command to start the tests? The tests run in standalone without loading the editor. So I guess the some part loads the main framework. What is the MainFramework and how can I avoid this? Here is the complete error message.

 [2017.01.18-18.29.02:078][  0]LogOutputDevice:Error: Ensure condition failed: !IsRunningGame() [File:D:\Build\++UE4+Release-4.14+Compile\Sync\Engine\Source\Editor\MainFrame\Private\MainFrameModule.cpp] [Line: 597]
 UE4Editor: [2017.01.18-18.29.02:078][  0]LogOutputDevice:Error: Ensure condition failed: !IsRunningGame() [File:D:\Build\++UE4+Release-4.14+Compile\Sync\Engine\Source\Editor\MainFrame\Private\MainFrameModule.cpp] [Line: 597]
 [2017.01.18-18.29.02:088][  0]LogOutputDevice:Error: The MainFrame module should only be loaded when running the editor.  Code that extends the editor, adds menu items, etc... should not run when running in -game mode or in a non-WITH_EDITOR build
 UE4Editor: [2017.01.18-18.29.02:088][  0]LogOutputDevice:Error: The MainFrame module should only be loaded when running the editor.  Code that extends the editor, adds menu items, etc... should not run when running in -game mode or in a non-WITH_EDITOR build
 [2017.01.18-18.29.02:098][  0]LogOutputDevice:Error: Stack:
 UE4Editor: [2017.01.18-18.29.02:098][  0]LogOutputDevice:Error: Stack:
 [2017.01.18-18.29.02:108][  0]LogOutputDevice:Error: UE4Editor-Core.dll!FWindowsPlatformStackWalk::StackWalkAndDump() [d:\build\++ue4+release-4.14+compile\sync\engine\source\runtime\core\private\windows\windowsplatformstackwalk.cpp:185]
 UE4Editor: [2017.01.18-18.29.02:108][  0]LogOutputDevice:Error: UE4Editor-Core.dll!FWindowsPlatformStackWalk::StackWalkAndDump() [d:\build\++ue4+release-4.14+compile\sync\engine\source\runtime\core\private\windows\windowsplatformstackwalk.cpp:185]
 [2017.01.18-18.29.02:118][  0]LogOutputDevice:Error: UE4Editor-Core.dll!FDebug::EnsureFailed() [d:\build\++ue4+release-4.14+compile\sync\engine\source\runtime\core\private\misc\assertionmacros.cpp:216]
 UE4Editor: [2017.01.18-18.29.02:118][  0]LogOutputDevice:Error: UE4Editor-Core.dll!FDebug::EnsureFailed() [d:\build\++ue4+release-4.14+compile\sync\engine\source\runtime\core\private\misc\assertionmacros.cpp:216]
 [2017.01.18-18.29.02:129][  0]LogOutputDevice:Error: UE4Editor-Core.dll!FDebug::OptionallyLogFormattedEnsureMessageReturningFalse() [d:\build\++ue4+release-4.14+compile\sync\engine\source\runtime\core\private\misc\assertionmacros.cpp:343]
 UE4Editor: [2017.01.18-18.29.02:129][  0]LogOutputDevice:Error: UE4Editor-Core.dll!FDebug::OptionallyLogFormattedEnsureMessageReturningFalse() [d:\build\++ue4+release-4.14+compile\sync\engine\source\runtime\core\private\misc\assertionmacros.cpp:343]
 [2017.01.18-18.29.02:139][  0]LogOutputDevice:Error: UE4Editor-MainFrame.dll!FMainFrameModule::StartupModule() [d:\build\++ue4+release-4.14+compile\sync\engine\source\editor\mainframe\private\mainframemodule.cpp:597]
 UE4Editor: [2017.01.18-18.29.02:139][  0]LogOutputDevice:Error: UE4Editor-MainFrame.dll!FMainFrameModule::StartupModule() [d:\build\++ue4+release-4.14+compile\sync\engine\source\editor\mainframe\private\mainframemodule.cpp:597]
 [2017.01.18-18.29.02:149][  0]LogOutputDevice:Error: UE4Editor-Core.dll!FModuleManager::LoadModuleWithFailureReason() [d:\build\++ue4+release-4.14+compile\sync\engine\source\runtime\core\private\modules\modulemanager.cpp:485]
 UE4Editor: [2017.01.18-18.29.02:149][  0]LogOutputDevice:Error: UE4Editor-Core.dll!FModuleManager::LoadModuleWithFailureReason() [d:\build\++ue4+release-4.14+compile\sync\engine\source\runtime\core\private\modules\modulemanager.cpp:485]
 [2017.01.18-18.29.02:159][  0]LogOutputDevice:Error: UE4Editor-Core.dll!FModuleManager::LoadModule() [d:\build\++ue4+release-4.14+compile\sync\engine\source\runtime\core\private\modules\modulemanager.cpp:327]
 UE4Editor: [2017.01.18-18.29.02:159][  0]LogOutputDevice:Error: UE4Editor-Core.dll!FModuleManager::LoadModule() [d:\build\++ue4+release-4.14+compile\sync\engine\source\runtime\core\private\modules\modulemanager.cpp:327]
 [2017.01.18-18.29.02:169][  0]LogOutputDevice:Error: UE4Editor-LevelEditor.dll!FModuleManager::LoadModuleChecked<IMainFrameModule>() [d:\build\++ue4+release-4.14+compile\sync\engine\source\runtime\core\public\modules\modulemanager.h:288]
 UE4Editor: [2017.01.18-18.29.02:169][  0]LogOutputDevice:Error: UE4Editor-LevelEditor.dll!FModuleManager::LoadModuleChecked<IMainFrameModule>() [d:\build\++ue4+release-4.14+compile\sync\engine\source\runtime\core\public\modules\modulemanager.h:288]
 [2017.01.18-18.29.02:179][  0]LogOutputDevice:Error: UE4Editor-LevelEditor.dll!FLevelEditorModule::StartupModule() [d:\build\++ue4+release-4.14+compile\sync\engine\source\editor\leveleditor\private\leveleditor.cpp:224]
 UE4Editor: [2017.01.18-18.29.02:179][  0]LogOutputDevice:Error: UE4Editor-LevelEditor.dll!FLevelEditorModule::StartupModule() [d:\build\++ue4+release-4.14+compile\sync\engine\source\editor\leveleditor\private\leveleditor.cpp:224]
 [2017.01.18-18.29.02:189][  0]LogOutputDevice:Error: UE4Editor-Core.dll!FModuleManager::LoadModuleWithFailureReason() [d:\build\++ue4+release-4.14+compile\sync\engine\source\runtime\core\private\modules\modulemanager.cpp:485]
 UE4Editor: [2017.01.18-18.29.02:189][  0]LogOutputDevice:Error: UE4Editor-Core.dll!FModuleManager::LoadModuleWithFailureReason() [d:\build\++ue4+release-4.14+compile\sync\engine\source\runtime\core\private\modules\modulemanager.cpp:485]
 [2017.01.18-18.29.02:199][  0]LogOutputDevice:Error: UE4Editor-Core.dll!FModuleManager::LoadModule() [d:\build\++ue4+release-4.14+compile\sync\engine\source\runtime\core\private\modules\modulemanager.cpp:327]
 UE4Editor: [2017.01.18-18.29.02:199][  0]LogOutputDevice:Error: UE4Editor-Core.dll!FModuleManager::LoadModule() [d:\build\++ue4+release-4.14+compile\sync\engine\source\runtime\core\private\modules\modulemanager.cpp:327]
 [2017.01.18-18.29.02:209][  0]LogOutputDevice:Error: UE4Editor-CodeEditor.dll
 UE4Editor: [2017.01.18-18.29.02:209][  0]LogOutputDevice:Error: UE4Editor-CodeEditor.dll
 [2017.01.18-18.29.02:220][  0]LogOutputDevice:Error: UE4Editor-CodeEditor.dll
 UE4Editor: [2017.01.18-18.29.02:220][  0]LogOutputDevice:Error: UE4Editor-CodeEditor.dll
 [2017.01.18-18.29.02:230][  0]LogOutputDevice:Error: UE4Editor-Core.dll!FModuleManager::LoadModuleWithFailureReason() [d:\build\++ue4+release-4.14+compile\sync\engine\source\runtime\core\private\modules\modulemanager.cpp:485]
 UE4Editor: [2017.01.18-18.29.02:230][  0]LogOutputDevice:Error: UE4Editor-Core.dll!FModuleManager::LoadModuleWithFailureReason() [d:\build\++ue4+release-4.14+compile\sync\engine\source\runtime\core\private\modules\modulemanager.cpp:485]
 [2017.01.18-18.29.02:240][  0]LogOutputDevice:Error: UE4Editor-Projects.dll!FModuleDescriptor::LoadModulesForPhase() [d:\build\++ue4+release-4.14+compile\sync\engine\source\runtime\projects\private\moduledescriptor.cpp:409]
 UE4Editor: [2017.01.18-18.29.02:240][  0]LogOutputDevice:Error: UE4Editor-Projects.dll!FModuleDescriptor::LoadModulesForPhase() [d:\build\++ue4+release-4.14+compile\sync\engine\source\runtime\projects\private\moduledescriptor.cpp:409]
 [2017.01.18-18.29.02:250][  0]LogOutputDevice:Error: UE4Editor-Projects.dll!FPluginManager::LoadModulesForEnabledPlugins() [d:\build\++ue4+release-4.14+compile\sync\engine\source\runtime\projects\private\pluginmanager.cpp:592]
 UE4Editor: [2017.01.18-18.29.02:250][  0]LogOutputDevice:Error: UE4Editor-Projects.dll!FPluginManager::LoadModulesForEnabledPlugins() [d:\build\++ue4+release-4.14+compile\sync\engine\source\runtime\projects\private\pluginmanager.cpp:592]
 [2017.01.18-18.29.02:260][  0]LogOutputDevice:Error: UE4Editor.exe!FEngineLoop::LoadStartupModules() [d:\build\++ue4+release-4.14+compile\sync\engine\source\runtime\launch\private\launchengineloop.cpp:2236]
 UE4Editor: [2017.01.18-18.29.02:260][  0]LogOutputDevice:Error: UE4Editor.exe!FEngineLoop::LoadStartupModules() [d:\build\++ue4+release-4.14+compile\sync\engine\source\runtime\launch\private\launchengineloop.cpp:2236]
 [2017.01.18-18.29.02:271][  0]LogOutputDevice:Error: UE4Editor.exe!FEngineLoop::PreInit() [d:\build\++ue4+release-4.14+compile\sync\engine\source\runtime\launch\private\launchengineloop.cpp:1668]
 UE4Editor: [2017.01.18-18.29.02:271][  0]LogOutputDevice:Error: UE4Editor.exe!FEngineLoop::PreInit() [d:\build\++ue4+release-4.14+compile\sync\engine\source\runtime\launch\private\launchengineloop.cpp:1668]
 [2017.01.18-18.29.02:281][  0]LogOutputDevice:Error: UE4Editor.exe!GuardedMain() [d:\build\++ue4+release-4.14+compile\sync\engine\source\runtime\launch\private\launch.cpp:113]
 UE4Editor: [2017.01.18-18.29.02:281][  0]LogOutputDevice:Error: UE4Editor.exe!GuardedMain() [d:\build\++ue4+release-4.14+compile\sync\engine\source\runtime\launch\private\launch.cpp:113]
 [2017.01.18-18.29.02:291][  0]LogOutputDevice:Error: UE4Editor.exe!GuardedMainWrapper() [d:\build\++ue4+release-4.14+compile\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:126]
 UE4Editor: [2017.01.18-18.29.02:291][  0]LogOutputDevice:Error: UE4Editor.exe!GuardedMainWrapper() [d:\build\++ue4+release-4.14+compile\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:126]
 [2017.01.18-18.29.02:301][  0]LogOutputDevice:Error: UE4Editor.exe!WinMain() [d:\build\++ue4+release-4.14+compile\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:202]
 UE4Editor: [2017.01.18-18.29.02:301][  0]LogOutputDevice:Error: UE4Editor.exe!WinMain() [d:\build\++ue4+release-4.14+compile\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:202]
 [2017.01.18-18.29.02:311][  0]LogOutputDevice:Error: UE4Editor.exe!__scrt_common_main_seh() [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:264]
 UE4Editor: [2017.01.18-18.29.02:311][  0]LogOutputDevice:Error: UE4Editor.exe!__scrt_common_main_seh() [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:264]
 [2017.01.18-18.29.02:321][  0]LogOutputDevice:Error: KERNEL32.DLL
 UE4Editor: [2017.01.18-18.29.02:321][  0]LogOutputDevice:Error: KERNEL32.DLL
 [2017.01.18-18.29.02:331][  0]LogOutputDevice:Error: ntdll.dll
 UE4Editor: [2017.01.18-18.29.02:331][  0]LogOutputDevice:Error: ntdll.dll
 [2017.01.18-18.29.02:341][  0]LogOutputDevice:Error:
 UE4Editor: [2017.01.18-18.29.02:341][  0]LogOutputDevice:Error:
 [2017.01.18-18.29.02:351][  0]LogOutputDevice:Error: end: stack for UAT
 [2017.01.18-18.29.02:371][  0]LogStats:                SubmitErrorReport -  0.000 s



Product Version: UE 4.14
Tags:
more ▼

asked Jan 18 '17 at 06:39 PM in C++ Programming

avatar image

meiwen
146 7 12 18

avatar image blade_maxter Jan 21 '17 at 06:43 AM

I have that same problem, do you fix it?

avatar image blade_maxter Jan 21 '17 at 06:43 AM

I have that same problem, do you fix it?

avatar image meiwen Jan 26 '17 at 11:26 AM

Nothing so far. Did you have any success?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question