UE4 crashes when played for about 1 min

Hello! Whenever I start play my map, UE4 crashes after ca 1 min. Any ideas why? :slight_smile:

Here’s the crash report:

MachineId:A9F67DCD421364E5BBE4529BF655D5C5
EpicAccountId:5209c78d43524bf29a8e1ff5dcb54f28

Unknown exception - code 00000001 (first/second chance not available)

"Fatal error: [File:C:\Users\Bolbi\Documents\BannermenEngine\Engine\Source\Runtime\CoreUObject\Private\UObject\GarbageCollection.cpp] [Line: 383]
Invalid object in GC: 0x000007fee496fe94, Refe

UE4Editor_Core!FDebug::AssertFailed() [c:\users\bolbi\documents\bannermenengine\engine\source\runtime\core\private\misc\outputdevice.cpp:374]
UE4Editor_CoreUObject!FArchiveRealtimeGC::ProcessObjectArray() [c:\users\bolbi\documents\bannermenengine\engine\source\runtime\coreuobject\private\uobject\garbagecollection.cpp:789]
UE4Editor_CoreUObject!TGraphTask::ExecuteTask() [c:\users\bolbi\documents\bannermenengine\engine\source\runtime\core\public\async\taskgraphinterfaces.h:779]
UE4Editor_Core!FTaskThread::ProcessTasks() [c:\users\bolbi\documents\bannermenengine\engine\source\runtime\core\private\async\taskgraph.cpp:539]
UE4Editor_Core!FTaskThread::ProcessTasksUntilQuit() [c:\users\bolbi\documents\bannermenengine\engine\source\runtime\core\private\async\taskgraph.cpp:340]
UE4Editor_Core!FTaskThread::Run() [c:\users\bolbi\documents\bannermenengine\engine\source\runtime\core\private\async\taskgraph.cpp:690]
UE4Editor_Core!FRunnableThreadWin::Run() [c:\users\bolbi\documents\bannermenengine\engine\source\runtime\core\private\windows\windowsrunnablethread.cpp:74]

Hello,

Fatal error: [File:C:\Users\Bolbi\Documents\BannermenEngine\Engine\Source\Runtime\CoreUObject\Private\UObject\GarbageCollection.cpp] [Line: 383] Invalid object in GC: 0x000007fee496fe94, ReferencingObject: LobbyGameState /Game/Maps/UEDPIE_0_Lobby.Lobby:PersistentLevel.LobbyGameState_114, ReferencingObjectClass: Class /Script/RTSGame.LobbyGameState, Property Name: playerController, Offset: 40, TokenIndex: 25

Taking a look at the full error message, it appears that you are referencing an object that either doesn’t exist, or is in the process of being garbage collected/deleted. This is something that you will need to investigate on your end to determine why this reference is coming back as invalid.

Have a great day