Download

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)

https://forums.unrealengine.com/core/image/gif;base64

是源码Build的引擎吗

是的,4.25.3
我试着找原因,目前有一点进展了,今天没有再发生这种崩溃了
目前的操作是: 从工程源代码里删除了一个没有使用的GameInstance的子类(只是继承,内容为空)