Editor crashing on autosave or exit

Hi, I have been struggling with a bug that is causing editor to crash on exit, and now autosaves. It happened a lot a few weeks ago, always on exit, where GarbageCollection.cpp Line 393 is source of error. Using logs, I found asset that was causing problems and reverted it to an earlier version with git. problem went away. But today, editor crashed on autosave, and asset pointed to in logs is from initial commit. I was able to load up asset in editor without a problem, and it showed no compile errors. Finally, editor is crashing on exit again. Please help!

MachineId:37FB188E4697DE0A76CF69A59E67DC4E
EpicAccountId:986da10f9d234156a68fdff2a402459b

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

"Fatal error: [File:C:\UnrealEngine48\UnrealEngine\Engine\Source\Runtime\CoreUObject\Private\UObject\GarbageCollection.cpp] [Line: 393]
Invalid object in GC: 0x00000074006e0069, Referen

UE4Editor_Core!FDebug::AssertFailed() [c:\unrealengine48\unrealengine\engine\source\runtime\core\private\misc\outputdevice.cpp:355]
UE4Editor_CoreUObject!FGCCollector::HandleObjectReference() [c:\unrealengine48\unrealengine\engine\source\runtime\coreuobject\private\uobject\garbagecollection.cpp:390]
UE4Editor_Engine!FSimpleObjectReferenceCollectorArchive::operator<<() [c:\unrealengine48\unrealengine\engine\source\runtime\coreuobject\public\uobject\garbagecollection.h:461]
UE4Editor_CoreUObject!UObjectProperty::SerializeItem() [c:\unrealengine48\unrealengine\engine\source\runtime\coreuobject\private\uobject\propertyobject.cpp:32]
UE4Editor_CoreUObject!UStruct::SerializeBin() [c:\unrealengine48\unrealengine\engine\source\runtime\coreuobject\private\uobject\class.cpp:760]
UE4Editor_Engine!UBlueprintGeneratedClass::AddReferencedObjectsInUbergraphFrame() [c:\unrealengine48\unrealengine\engine\source\runtime\engine\private\blueprintgeneratedclass.cpp:680]
UE4Editor_CoreUObject!FArchiveRealtimeGC::ProcessObjectArray() [c:\unrealengine48\unrealengine\engine\source\runtime\coreuobject\private\uobject\garbagecollection.cpp:832]
UE4Editor_CoreUObject!TGraphTask::ExecuteTask() [c:\unrealengine48\unrealengine\engine\source\runtime\core\public\async\taskgraphinterfaces.h:771]
UE4Editor_Core!FTaskThread::ProcessTasks() [c:\unrealengine48\unrealengine\engine\source\runtime\core\private\async\taskgraph.cpp:430]
UE4Editor_Core!FTaskThread::ProcessTasksUntilQuit() [c:\unrealengine48\unrealengine\engine\source\runtime\core\private\async\taskgraph.cpp:273]
UE4Editor_Core!FTaskThread::Run() [c:\unrealengine48\unrealengine\engine\source\runtime\core\private\async\taskgraph.cpp:564]
UE4Editor_Core!FRunnableThreadWin::Run() [c:\unrealengine48\unrealengine\engine\source\runtime\core\private\windows\windowsrunnablethread.cpp:73]

Hi AngelWolf,

This looks like a crash that got fixed in 4.9 (UE-15940). Can you create a copy of your project in 4.9 Preview 2 and see if same crash occurs? Thanks!

We kind of need this fixed under 4.8: If crash no longer happens in 4.9, is it fixable in 4.8? Other things may crash in 4.9, you see.

Can’t get a copy of project to open correctly in 4.9 so no dice there.

Hello Warcabbit,

If you are using a source version of engine you could integrate solution from github. I have provided link below. I hope that this helps.

Commit:
https://github.com/EpicGames/UnrealEngine/commit/965cce49c3cb52d4a3309cfc77562d40e121b334

Make it a great day