Solution for Crash in FGeometryCollectionPhysicsProxy::PullFromPhysicsState

After upgrading from 5.2 to 5.3, Play in Editor was crashing always.
The crash would happen in either of these two places in this function FGeometryCollectionPhysicsProxy::PullFromPhysicsState.

  • Here const int32 NumTransforms = GameThreadCollection.Transform.Num();
  • or bIsCollectionDirty |= PullNonInterpolatableDataFromSinglePhysicsState(PullData, !bNeedInterpolation, NextPullData ? &NextPullData->Results().GetModifiedTransformIndices() : nullptr);

After a day of trial and error, I found that I needed to reconstruct the actors in my level which used the Geometry Collection Component. Recompiling the actor didn’t do it (perhaps because we use One File Per Actor). So If I moved the actor 100 units to the right and then back, now the actors reconstructed, and they no longer cause the crash.