Description

Running with the -networkprofiler command line argument can crash the server on the first engine tick in FNetworkProfiler::TrackFrameBegin because the file writer archive hasn't been created yet.

Steps to Reproduce
  1. Open ShooterGame with editor commands
    • -server -networkprofiler=tag -log
  2. Editor does not open
  3. Open ShooterGame with editor commands again but specifying a map
    • -server -networkprofiler=tag -log Sancuary

Result: Crash occurs and no map is loaded
Expected: Sancuary map opens

Callstack
[2020.09.09-17.41.11:662][  0]LogInit: First time updating LLM stats...
[2020.09.09-17.41.14:155][  0]LogWindows: Error: === Critical error: ===
[2020.09.09-17.41.14:156][  0]LogWindows: Error: 
[2020.09.09-17.41.14:156][  0]LogWindows: Error: Fatal error!
[2020.09.09-17.41.14:157][  0]LogWindows: Error: 
[2020.09.09-17.41.14:157][  0]LogWindows: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x00000000
[2020.09.09-17.41.14:157][  0]LogWindows: Error: 
[2020.09.09-17.41.14:158][  0]LogWindows: Error: [Callstack] 0x00007fff9a326353 UE4Editor-Engine.dll!FNetworkProfiler::TrackFrameBegin() [D:\Work\P4Workspaces\Main\Engine\Source\Runtime\Engine\Private\NetworkProfiler.cpp:238]
[2020.09.09-17.41.14:158][  0]LogWindows: Error: [Callstack] 0x00007fff99e96aac UE4Editor-Engine.dll!UGameEngine::Tick() [D:\Work\P4Workspaces\Main\Engine\Source\Runtime\Engine\Private\GameEngine.cpp:1647]
[2020.09.09-17.41.14:159][  0]LogWindows: Error: [Callstack] 0x00007ff7baac8f0a UE4Editor.exe!FEngineLoop::Tick() [D:\Work\P4Workspaces\Main\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:4834]
[2020.09.09-17.41.14:159][  0]LogWindows: Error: [Callstack] 0x00007ff7baadf0fc UE4Editor.exe!GuardedMain() [D:\Work\P4Workspaces\Main\Engine\Source\Runtime\Launch\Private\Launch.cpp:169]
[2020.09.09-17.41.14:159][  0]LogWindows: Error: [Callstack] 0x00007ff7baadf1da UE4Editor.exe!GuardedMainWrapper() [D:\Work\P4Workspaces\Main\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:137]
[2020.09.09-17.41.14:160][  0]LogWindows: Error: [Callstack] 0x00007ff7baaf27dd UE4Editor.exe!WinMain() [D:\Work\P4Workspaces\Main\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:268]
[2020.09.09-17.41.14:160][  0]LogWindows: Error: [Callstack] 0x00007ff7baaf54fa UE4Editor.exe!__scrt_common_main_seh() [d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
[2020.09.09-17.41.14:161][  0]LogWindows: Error: [Callstack] 0x00007ff823f56fd4 KERNEL32.DLL!UnknownFunction []
[2020.09.09-17.41.14:161][  0]LogWindows: Error: [Callstack] 0x00007ff824a5cec1 ntdll.dll!UnknownFunction []
[2020.09.09-17.41.14:161][  0]LogWindows: Error: 
[2020.09.09-17.41.14:164][  0]LogExit: Executing StaticShutdownAfterError
[2020.09.09-17.41.14:165][  0]LogWindows: FPlatformMisc::RequestExit(1)
[2020.09.09-17.41.14:166][  0]LogCore: Engine exit requested (reason: Win RequestExit)
[2020.09.09-17.41.14:175][  0]Log file closed, 09/09/20 13:41:14

Have Comments or More Details?

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

1
Login to Vote

Fixed
ComponentUE - Networking
Affects Versions4.244.25
Target Fix4.26
Fix Commit14331951
Release Commit14331951
CreatedAug 6, 2020
ResolvedSep 16, 2020
UpdatedApr 28, 2021
View Jira Issue