The editor crashes when the Count parameter passed into the Mid function is < 0.
There is an assertion
check(Count >= 0);
in FString Mid in UnrealString.h, but an error message would be expected rather than an editor crash.
Result: Editor crashes
Expected: Error message would appear in the output log or blueprint compile would fail due to the invalid value.
> UE4Editor-Core.dll!FString::Mid(int Start, int Count) Line 1153 C++ UE4Editor-CodeStuff.dll!AThrowCharacter::BeginPlay() Line 20 C++ UE4Editor-Engine.dll!AWorldSettings::NotifyBeginPlay() Line 175 C++ UE4Editor-Engine.dll!AGameStateBase::HandleBeginPlay() Line 177 C++ UE4Editor-Engine.dll!UWorld::BeginPlay() Line 3358 C++ UE4Editor-Engine.dll!UGameInstance::StartPIEGameInstance(ULocalPlayer * LocalPlayer, bool bInSimulateInEditor, bool bAnyBlueprintErrors, bool bStartInSpectatorMode) Line 282 C++ UE4Editor-UnrealEd.dll!UEditorEngine::CreatePIEGameInstance(int InPIEInstance, bool bInSimulateInEditor, bool bAnyBlueprintErrors, bool bStartInSpectatorMode, bool bRunAsDedicated, float PIEStartTime) Line 3358 C++ UE4Editor-UnrealEd.dll!UEditorEngine::PlayInEditor(UWorld * InWorld, bool bInSimulateInEditor) Line 2462 C++ UE4Editor-UnrealEd.dll!UEditorEngine::StartQueuedPlayMapRequest() Line 1160 C++ UE4Editor-UnrealEd.dll!UEditorEngine::Tick(float DeltaSeconds, bool bIdleMode) Line 1320 C++ UE4Editor-UnrealEd.dll!UUnrealEdEngine::Tick(float DeltaSeconds, bool bIdleMode) Line 371 C++ UE4Editor.exe!FEngineLoop::Tick() Line 2859 C++ UE4Editor.exe!GuardedMain(const wchar_t * CmdLine, HINSTANCE__ * hInInstance, HINSTANCE__ * hPrevInstance, int nCmdShow) Line 152 C++ UE4Editor.exe!WinMain(HINSTANCE__ * hInInstance, HINSTANCE__ * hPrevInstance, char * __formal, int nCmdShow) Line 191 C++ UE4Editor.exe!__scrt_common_main_seh() Line 253 C++
Head over to the existing Questions & Answers thread and let us know what's up.
2 |
Component | UE - Gameplay |
---|---|
Affects Versions | 4.13, 4.14 |
Target Fix | 4.17 |
Fix Commit | 3195953 |
---|
Created | Dec 29, 2016 |
---|---|
Resolved | Jun 15, 2017 |
Updated | Sep 14, 2021 |