I’m running into a case where our build ensure, it’s working but i would like to prevent it from happening.
[Image Removed]
This is trigger following down this stack trace
[Image Removed]
I get it’s coming from the changes of the TStrongPtr inside the delegates, but after looking a bit at the code, is it safe for me to assume that the IsInGameThread is missing a condition for the old value as follow ?
I’m curious, is GGameThreadId ever set in your main function? This doesn’t seem to come from static initialization in your case since we can clearly see the main function at the root.
The old value is really meant to be only GGameThreadId, it’s the only old way of identifying the game thread. So a properly placed init of the GGameThreadId at the earliest place possible should fix this.