4.7.3 Crash after PIE with Object from PIE level still referenced

Hi guys,

My game will have multi levels and even world composition, but logic and data need cross levels and gamemodes. So I create a class to hold the logic and data standalone as a GameSingleton class. But it is dangerous because it’s easy to get “Object from PIE level still referenced” and crash.

I have fixed a crash after PIE with set actor reference variable to None on EndPlay event.

Today I got a similar crash but can not find the reason. It seems crashed by writing too many reference chain logs.

I know UObject objects is managed by GC and belong to world, so I manage the objects carefully on my GameSingleton class, and keep objects in level is not referenced in singleton class on endplay.

If is there any documentation describe how to manage objects in cross level situation will be awesome!

please check the log in attachment.
link text

Cheers
Omega

Hi guys,

I solved this problem by force clear all the object reference from level to my GameSingleton class on EndPlay event.
Last crash with this problem i just fix the references in log file, it works well in 4.7.2, and 4.7.3, but it failed after i add some code yesterday, even i restored changes.

Cheers
Omega