Description

Using Execute Console Command in a custom Game Instance causes Standalone Game to crash.

Also occurs in 4.6.1: CL-2386410 and 4.7 Preview: CL-2403078

Crash Report:
[Link Removed]

Call Stack:

UE4Editor_Engine! UGameplayStatics::GetPlayerController() + 93 bytes gameplaystatics.cpp:42 
UE4Editor_Engine! UKismetSystemLibrary::ExecuteConsoleCommand() + 24 bytes kismetsystemlibrary.cpp:244 
UE4Editor_Engine! UKismetSystemLibrary::execExecuteConsoleCommand() + 252 bytes kismetsystemlibrary.h:61 
UE4Editor_CoreUObject! UFunction::Invoke() + 180 bytes class.cpp:3676 
UE4Editor_CoreUObject! UObject::CallFunction() + 1113 bytes scriptcore.cpp:395 
UE4Editor_CoreUObject! UObject::ProcessContextOpcode() + 141 bytes scriptcore.cpp:1451 
UE4Editor_CoreUObject! UObject::ProcessInternal() + 1612 bytes scriptcore.cpp:602 
UE4Editor_CoreUObject! UObject::CallFunction() + 2540 bytes scriptcore.cpp:516 
UE4Editor_CoreUObject! UObject::execVirtualFunction() + 116 bytes scriptcore.cpp:1530 
UE4Editor_CoreUObject! UObject::ProcessInternal() + 1612 bytes scriptcore.cpp:602 
UE4Editor_CoreUObject! UFunction::Invoke() + 180 bytes class.cpp:3676 
UE4Editor_CoreUObject! UObject::ProcessEvent() + 2987 bytes scriptcore.cpp:927 
UE4Editor_Engine! UGameEngine::Init() + 837 bytes gameengine.cpp:421 
UE4Editor! FEngineLoop::Init() + 1146 bytes launchengineloop.cpp:1969 
UE4Editor! GuardedMain() + 894 bytes launch.cpp:136 
UE4Editor! GuardedMainWrapper() + 26 bytes launchwindows.cpp:126 
UE4Editor! WinMain() + 249 bytes launchwindows.cpp:202 
UE4Editor! __tmainCRTStartup() + 329 bytes crtexe.c:618
Steps to Reproduce

1. Open any project
2. Create a new Game Instance Blueprint
3. Event Init > Execute Console Command
4. Enter "sg.EffectsQualit 0" in the Command input
5. Compile/Save
6. Project Settings > Maps & Modes
7. Set the Game Instance Class to the new Game Instance
8. Play in Standalone Game

Results:
Standalone Game crashes

Have Comments or More Details?

Head over to the existing AnswerHub thread and let us know what's up.

0
Login to Vote

Cannot Reproduce
ComponentGameplay - Blueprint
Affects Versions4.6.14.74.8
Target Fix4.9
CreatedJan 15, 2015
ResolvedMay 7, 2015
UpdatedApr 27, 2018