Description

Editor crashes when attempting to play a recorded demo - Assertion failed: IsGameWorld() && GetCurrentLevel()

This issue occurs when using a template project or QAGame. This does not occur when using ShooterGame. 

Seen in Release-4.21.

Steps to Reproduce
  1. Open QAGame
  2. PIE
  3. Enter demorec QAGameDemo into the console
  4. Wait 10s
  5. Enter demostop into the console
  6. Enter demoplay QAGameDemo into the console

Result: The project crashes.

Callstack
[2018.10.09-18.46.12:739][607]LogWindows: Error: === Critical error: ===
[2018.10.09-18.46.12:739][607]LogWindows: Error: 
[2018.10.09-18.46.12:739][607]LogWindows: Error: Assertion failed: IsGameWorld() && GetCurrentLevel() [File:D:\P4Workspaces\Release\Engine\Source\Runtime\Engine\Private\World.cpp] [Line: 5149] 
[2018.10.09-18.46.12:739][607]LogWindows: Error: 
[2018.10.09-18.46.12:739][607]LogWindows: Error: 
[2018.10.09-18.46.12:739][607]LogWindows: Error: 
[2018.10.09-18.46.12:739][607]LogWindows: Error: [Callstack] 0x00007ffec452a388 KERNELBASE.dll!UnknownFunction []
[2018.10.09-18.46.12:739][607]LogWindows: Error: [Callstack] 0x00007ffe6e901cfa UE4Editor-Core.dll!FWindowsErrorOutputDevice::Serialize() [d:\p4workspaces\release\engine\source\runtime\core\private\windows\windowserroroutputdevice.cpp:63]
[2018.10.09-18.46.12:739][607]LogWindows: Error: [Callstack] 0x00007ffe6e6fafd7 UE4Editor-Core.dll!FOutputDevice::LogfImpl() [d:\p4workspaces\release\engine\source\runtime\core\private\misc\outputdevice.cpp:70]
[2018.10.09-18.46.12:739][607]LogWindows: Error: [Callstack] 0x00007ffe6e6312f5 UE4Editor-Core.dll!FDebug::AssertFailed() [d:\p4workspaces\release\engine\source\runtime\core\private\misc\assertionmacros.cpp:422]
[2018.10.09-18.46.12:739][607]LogWindows: Error: [Callstack] 0x00007ffe61051eee UE4Editor-Engine.dll!UWorld::GetMatineeActors() [d:\p4workspaces\release\engine\source\runtime\engine\private\world.cpp:5151]
[2018.10.09-18.46.12:739][607]LogWindows: Error: [Callstack] 0x00007ffe60ac0a65 UE4Editor-Engine.dll!APlayerController::InitInputSystem() [d:\p4workspaces\release\engine\source\runtime\engine\private\playercontroller.cpp:659]
[2018.10.09-18.46.12:739][607]LogWindows: Error: [Callstack] 0x00007ffe60ad7edf UE4Editor-Engine.dll!APlayerController::SetPlayer() [d:\p4workspaces\release\engine\source\runtime\engine\private\playercontroller.cpp:4309]
[2018.10.09-18.46.12:739][607]LogWindows: Error: [Callstack] 0x00007ffe608234c5 UE4Editor-Engine.dll!UNetConnection::HandleClientPlayer() [d:\p4workspaces\release\engine\source\runtime\engine\private\netconnection.cpp:2443]
[2018.10.09-18.46.12:739][607]LogWindows: Error: [Callstack] 0x00007ffe603235ad UE4Editor-Engine.dll!UDemoNetConnection::HandleClientPlayer() [d:\p4workspaces\release\engine\source\runtime\engine\private\demonetdriver.cpp:4766]
[2018.10.09-18.46.12:739][607]LogWindows: Error: [Callstack] 0x00007ffe60ac6bd5 UE4Editor-Engine.dll!APlayerController::OnActorChannelOpen() [d:\p4workspaces\release\engine\source\runtime\engine\private\playercontroller.cpp:1283]
[2018.10.09-18.46.12:739][607]LogWindows: Error: [Callstack] 0x00007ffe6029ec33 UE4Editor-Engine.dll!UActorChannel::NotifyActorChannelOpen() [d:\p4workspaces\release\engine\source\runtime\engine\private\datachannel.cpp:2070]
[2018.10.09-18.46.12:740][607]LogWindows: Error: [Callstack] 0x00007ffe602a2dbe UE4Editor-Engine.dll!UActorChannel::ProcessBunch() [d:\p4workspaces\release\engine\source\runtime\engine\private\datachannel.cpp:2412]
[2018.10.09-18.46.12:740][607]LogWindows: Error: [Callstack] 0x00007ffe602b22eb UE4Editor-Engine.dll!UActorChannel::ReceivedBunch() [d:\p4workspaces\release\engine\source\runtime\engine\private\datachannel.cpp:2347]
[2018.10.09-18.46.12:740][607]LogWindows: Error: [Callstack] 0x00007ffe602b753c UE4Editor-Engine.dll!UChannel::ReceivedSequencedBunch() [d:\p4workspaces\release\engine\source\runtime\engine\private\datachannel.cpp:323]
[2018.10.09-18.46.12:740][607]LogWindows: Error: [Callstack] 0x00007ffe602b5949 UE4Editor-Engine.dll!UChannel::ReceivedNextBunch() [d:\p4workspaces\release\engine\source\runtime\engine\private\datachannel.cpp:730]
[2018.10.09-18.46.12:740][607]LogWindows: Error: [Callstack] 0x00007ffe602b7177 UE4Editor-Engine.dll!UChannel::ReceivedRawBunch() [d:\p4workspaces\release\engine\source\runtime\engine\private\datachannel.cpp:415]
[2018.10.09-18.46.12:740][607]LogWindows: Error: [Callstack] 0x00007ffe6083c2b9 UE4Editor-Engine.dll!UNetConnection::ReceivedPacket() [d:\p4workspaces\release\engine\source\runtime\engine\private\netconnection.cpp:1731]
[2018.10.09-18.46.12:740][607]LogWindows: Error: [Callstack] 0x00007ffe6083d4c7 UE4Editor-Engine.dll!UNetConnection::ReceivedRawPacket() [d:\p4workspaces\release\engine\source\runtime\engine\private\netconnection.cpp:1017]
[2018.10.09-18.46.12:740][607]LogWindows: Error: [Callstack] 0x00007ffe6033e2fa UE4Editor-Engine.dll!UDemoNetDriver::ProcessPacket() [d:\p4workspaces\release\engine\source\runtime\engine\private\demonetdriver.cpp:2980]
[2018.10.09-18.46.12:740][607]LogWindows: Error: [Callstack] 0x00007ffe5fce8db8 UE4Editor-Engine.dll!UDemoNetDriver::ProcessPacket() [d:\p4workspaces\release\engine\source\runtime\engine\classes\engine\demonetdriver.h:583]
[2018.10.09-18.46.12:740][607]LogWindows: Error: [Callstack] 0x00007ffe60304589 UE4Editor-Engine.dll!UDemoNetDriver::ConditionallyProcessPlaybackPackets() [d:\p4workspaces\release\engine\source\runtime\engine\private\demonetdriver.cpp:2955]
[2018.10.09-18.46.12:740][607]LogWindows: Error: [Callstack] 0x00007ffe6035cf90 UE4Editor-Engine.dll!UDemoNetDriver::TickDemoPlayback() [d:\p4workspaces\release\engine\source\runtime\engine\private\demonetdriver.cpp:3300]
[2018.10.09-18.46.12:740][607]LogWindows: Error: [Callstack] 0x00007ffe6035fa8c UE4Editor-Engine.dll!UDemoNetDriver::TickDispatch() [d:\p4workspaces\release\engine\source\runtime\engine\private\demonetdriver.cpp:1421]
[2018.10.09-18.46.12:740][607]LogWindows: Error: [Callstack] 0x00007ffe6080e29f UE4Editor-Engine.dll!TBaseUObjectMethodDelegateInstance<0,UNetDriver,void __cdecl(float)>::ExecuteIfSafe() [d:\p4workspaces\release\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:679]
[2018.10.09-18.46.12:740][607]LogWindows: Error: [Callstack] 0x00007ffe5fbf0281 UE4Editor-Engine.dll!TBaseMulticastDelegate<void,float>::Broadcast() [d:\p4workspaces\release\engine\source\runtime\core\public\delegates\delegatesignatureimpl.inl:974]
[2018.10.09-18.46.12:740][607]LogWindows: Error: [Callstack] 0x00007ffe60672758 UE4Editor-Engine.dll!UWorld::Tick() [d:\p4workspaces\release\engine\source\runtime\engine\private\leveltick.cpp:1349]
[2018.10.09-18.46.12:740][607]LogWindows: Error: [Callstack] 0x00007ffe5e7ad48f UE4Editor-UnrealEd.dll!UEditorEngine::Tick() [d:\p4workspaces\release\engine\source\editor\unrealed\private\editorengine.cpp:1714]
[2018.10.09-18.46.12:740][607]LogWindows: Error: [Callstack] 0x00007ffe5f08d286 UE4Editor-UnrealEd.dll!UUnrealEdEngine::Tick() [d:\p4workspaces\release\engine\source\editor\unrealed\private\unrealedengine.cpp:403]
[2018.10.09-18.46.12:740][607]LogWindows: Error: [Callstack] 0x00007ff7710861e5 UE4Editor.exe!FEngineLoop::Tick() [d:\p4workspaces\release\engine\source\runtime\launch\private\launchengineloop.cpp:3694]
[2018.10.09-18.46.12:740][607]LogWindows: Error: [Callstack] 0x00007ff771096ca0 UE4Editor.exe!GuardedMain() [d:\p4workspaces\release\engine\source\runtime\launch\private\launch.cpp:174]
[2018.10.09-18.46.12:740][607]LogWindows: Error: [Callstack] 0x00007ff771096d1a UE4Editor.exe!GuardedMainWrapper() [d:\p4workspaces\release\engine\source\runtime\launch\private\windows\launchwindows.cpp:145]
[2018.10.09-18.46.12:740][607]LogWindows: Error: [Callstack] 0x00007ff7710a46e5 UE4Editor.exe!WinMain() [d:\p4workspaces\release\engine\source\runtime\launch\private\windows\launchwindows.cpp:276]
[2018.10.09-18.46.12:740][607]LogWindows: Error: [Callstack] 0x00007ff7710a6107 UE4Editor.exe!__scrt_common_main_seh() [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:253]
[2018.10.09-18.46.12:740][607]LogWindows: Error: [Callstack] 0x00007ffec5253034 KERNEL32.DLL!UnknownFunction []
[2018.10.09-18.46.12:740][607]LogWindows: Error: [Callstack] 0x00007ffec7801431 ntdll.dll!UnknownFunction []
[2018.10.09-18.46.12:740][607]LogWindows: Error:

Have Comments or More Details?

There's no existing public thread on this issue, so head over toAnswerHub just mention UE-64999 in the post.

0
Login to Vote

Fixed
ComponentNetworking - Replay
Affects Versions4.21
Target Fix4.21
Fix Commit4448407
Main Commit4450599
Release Commit4448407
CreatedOct 9, 2018
ResolvedOct 10, 2018
UpdatedJan 31, 2019