Description

The application crashes when adding ".umap" to the launch map at application launch. If not specify ".umap", it will be able to launch application. There appears to be a failure to parse the URL. The URL parameters indicate that it is optional.

https://docs.unrealengine.com/en-US/Programming/Basics/CommandLineArguments/index.html

It's a regression of 4.25 because it works in 4.24.

 

Following code is workaround.

FURL::FURL( FURL* Base, const TCHAR* TextURL, ETravelType Type )
{
    // ...

#if 0
(DotIdx != MapExtIdx || FChar::IsAlnum(URLStr[DotIdx+MapExtLen])) &&
((DotIdx + 1) != SaveExtIdx || FChar::IsAlnum(URLStr[DotIdx+SaveExtLen+1])) &&
((DotIdx + 1) != DemoExtIdx || FChar::IsAlnum(URLStr[DotIdx+4+1]));
#else
(DotIdx != MapExtIdx || FChar::IsAlnum(URLStr[DotIdx + MapExtLen - 1])) &&
((DotIdx + 1) != SaveExtIdx || FChar::IsAlnum(URLStr[DotIdx + SaveExtLen + 1 - 1])) &&
((DotIdx + 1) != DemoExtIdx || FChar::IsAlnum(URLStr[DotIdx + 4 + 1 - 1]));
#endif
}
Steps to Reproduce
  1. Open Third Person Template.
  2. Add new map what named "TestMap" and placed in "/Geme/TestMap.umap" .
  3. Packaging project with Win64.
  4. Create shortcut of .exe file and add launch argument "/Game/TestMap.umap".

Result:

 Crash and show attached popup.

Expected:

 Not crash and open TestMap level.

Callstack
ReportAssert() [G:\UnrealEngine-4.25.3-release\Engine\Source\Runtime\Core\Private\Windows\WindowsPlatformCrashContext.cpp:1541]
FWindowsErrorOutputDevice::Serialize() [G:\UnrealEngine-4.25.3-release\Engine\Source\Runtime\Core\Private\Windows\WindowsErrorOutputDevice.cpp:78]
FOutputDevice::LogfImpl() [G:\UnrealEngine-4.25.3-release\Engine\Source\Runtime\Core\Private\Misc\OutputDevice.cpp:61]
AssertFailedImplV() [G:\UnrealEngine-4.25.3-release\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp:100]
FDebug::CheckVerifyFailedImpl() [G:\UnrealEngine-4.25.3-release\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp:450]
DispatchCheckVerify<void,<lambda_0d1e902b4205814301cca75abd414bf2> >() [G:\UnrealEngine-4.25.3-release\Engine\Source\Runtime\Core\Public\Misc\AssertionMacros.h:162]
FURL::FURL() [G:\UnrealEngine-4.25.3-release\Engine\Source\Runtime\Engine\Private\URL.cpp:389]
ULocalPlayer::SpawnPlayActor() [G:\UnrealEngine-4.25.3-release\Engine\Source\Runtime\Engine\Private\LocalPlayer.cpp:282]
UEngine::LoadMap() [G:\UnrealEngine-4.25.3-release\Engine\Source\Runtime\Engine\Private\UnrealEngine.cpp:12879]
UEngine::Browse() [G:\UnrealEngine-4.25.3-release\Engine\Source\Runtime\Engine\Private\UnrealEngine.cpp:12101]
UGameInstance::StartGameInstance() [G:\UnrealEngine-4.25.3-release\Engine\Source\Runtime\Engine\Private\GameInstance.cpp:579]
FEngineLoop::Init() [G:\UnrealEngine-4.25.3-release\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:4032]
GuardedMain() [G:\UnrealEngine-4.25.3-release\Engine\Source\Runtime\Launch\Private\Launch.cpp:155]
GuardedMainWrapper() [G:\UnrealEngine-4.25.3-release\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:137]
WinMain() [G:\UnrealEngine-4.25.3-release\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:268]
__scrt_common_main_seh() [d:\A01\_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]

Have Comments or More Details?

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

0
Login to Vote

Fixed
ComponentUE - Foundation - Core
Affects Versions4.25
Target Fix4.26
Fix Commit14097364
CreatedAug 6, 2020
ResolvedAug 13, 2020
UpdatedFeb 16, 2021