Global Mode manager build error

This error occurs when building:

Assertion failed: !IsRunningCommandlet() [File:D:\build++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\UnrealEdGlobals.cpp] [Line: 51]
The global mode manager should not be created or accessed in a commandlet environment. Check that your mode or module is not accessing the global mode tools or that scriptable features of modes have been moved to subsystems.

This is the main error we are getting but we seem to be unable to pin point the issue and there seems to be nobody else getting the issue either (of course this probably isn’t the case)

Issue was solved by deleting the project and then re-downloading it from github. Not sure why this method solved it, im guessing it reset some dodgy engine files.

I’m having the same error, but my project is not hosted on github. I couldn’t find anything related to this error besides your thread.

Error        LogPlayLevel              LogWindows: Error: begin: stack for UAT
Error        LogPlayLevel              LogWindows: Error: === Critical error: ===
Error        LogPlayLevel              LogWindows: Error:
Error        LogPlayLevel              LogWindows: Error: Assertion failed: !IsRunningCommandlet() [File:D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\UnrealEdGlobals.cpp] [Line: 51]
Error        LogPlayLevel              LogWindows: Error: The global mode manager should not be created or accessed in a commandlet environment. Check that your mode or module is not accessing the global mode tools or that scriptable features of modes have been moved to subsystems.
Error        LogPlayLevel              LogWindows: Error:
Error        LogPlayLevel              LogWindows: Error:
Error        LogPlayLevel              LogWindows: Error: [Callstack] 0x00007ffd1c482845 UnrealEditor-UnrealEd.dll!UnknownFunction []
Error        LogPlayLevel              LogWindows: Error: [Callstack] 0x00007ffd1c479c89 UnrealEditor-UnrealEd.dll!UnknownFunction []
Error        LogPlayLevel              LogWindows: Error: [Callstack] 0x00007ffd101675aa UnrealEditor-GameplayDebugger.dll!UnknownFunction []
Error        LogPlayLevel              LogWindows: Error: [Callstack] 0x00007ffd10172fc0 UnrealEditor-GameplayDebugger.dll!UnknownFunction []
Error        LogPlayLevel              LogWindows: Error: [Callstack] 0x00007ffd10165e31 UnrealEditor-GameplayDebugger.dll!UnknownFunction []
Error        LogPlayLevel              LogWindows: Error: [Callstack] 0x00007ffd10165f76 UnrealEditor-GameplayDebugger.dll!UnknownFunction []
Error        LogPlayLevel              LogWindows: Error: [Callstack] 0x00007ffd10164540 UnrealEditor-GameplayDebugger.dll!UnknownFunction []
Error        LogPlayLevel              LogWindows: Error: [Callstack] 0x00007ffd10170d3a UnrealEditor-GameplayDebugger.dll!UnknownFunction []
Error        LogPlayLevel              LogWindows: Error: [Callstack] 0x00007ffd10160dc6 UnrealEditor-GameplayDebugger.dll!UnknownFunction []
Error        LogPlayLevel              LogWindows: Error: [Callstack] 0x00007ffd1f2a6c0e UnrealEditor-Engine.dll!UnknownFunction []
Error        LogPlayLevel              LogWindows: Error: [Callstack] 0x00007ffd1f2bd07a UnrealEditor-Engine.dll!UnknownFunction []
Error        LogPlayLevel              LogWindows: Error: [Callstack] 0x00007ffd1f2bf191 UnrealEditor-Engine.dll!UnknownFunction []
Error        LogPlayLevel              LogWindows: Error: [Callstack] 0x00007ffd1f2ac998 UnrealEditor-Engine.dll!UnknownFunction []
Error        LogPlayLevel              LogWindows: Error: [Callstack] 0x00007ffd1f15a1f3 UnrealEditor-Engine.dll!UnknownFunction []
Error        LogPlayLevel              LogWindows: Error: [Callstack] 0x00007ffd1bb281ea UnrealEditor-UnrealEd.dll!UnknownFunction []
Error        LogPlayLevel              LogWindows: Error: [Callstack] 0x00007ff685218e46 UnrealEditor-Cmd.exe!UnknownFunction []
Error        LogPlayLevel              LogWindows: Error: [Callstack] 0x00007ff685210bbd UnrealEditor-Cmd.exe!UnknownFunction []
Error        LogPlayLevel              LogWindows: Error: [Callstack] 0x00007ff685210e8a UnrealEditor-Cmd.exe!UnknownFunction []
Error        LogPlayLevel              LogWindows: Error: [Callstack] 0x00007ff685213c4d UnrealEditor-Cmd.exe!UnknownFunction []
Error        LogPlayLevel              LogWindows: Error: [Callstack] 0x00007ff685225564 UnrealEditor-Cmd.exe!UnknownFunction []
Error        LogPlayLevel              LogWindows: Error: [Callstack] 0x00007ff68522788a UnrealEditor-Cmd.exe!UnknownFunction []
Error        LogPlayLevel              LogWindows: Error: [Callstack] 0x00007ffdaeda7034 KERNEL32.DLL!UnknownFunction []
Error        LogPlayLevel              LogWindows: Error: [Callstack] 0x00007ffdb0102651 ntdll.dll!UnknownFunction []
Error        LogPlayLevel              LogWindows: Error:
Error        LogPlayLevel              LogWindows: Error: end: stack for UAT
2 Likes

Hey! I encountered this issue on Friday and managed to resolve it today by simply opening the project again in the 5.3 engine. It was originally created for 5.0. Give it a try, and see if it helps!