Crash after compiling and HotLink

Every time when I modify or add a lot of C++ code (most of them are native C++ and do not inherit UObject), compile, IDE will Hotlink.

At this time, crash in PIE or exit PIE.

After my investigation, as long as the GC is triggered, it crashes.

I modified the source code of UE myself and saved part of the memory before the crash. I learned that it was caused by this FGCObject and UGameInstanceSubSystem

How can I avoid it? My project is basically native C++, using a small amount of UObject (Native C++ uses WeakObjectPtr to save UObject pointers);base64


目前的操作是: 从工程源代码里删除了一个没有使用的GameInstance的子类(只是继承,内容为空)