4.7 World Composition UpdatePhysicsVolume crash

I am getting another crash when trying to test my game, this time it is occurring in editor, so when I launch new window, or launch in editor (not standalone). The crash occurs in USceneComponent::UpdatePhysicsVolume, and it appears to be related to code that was added there at some point after 4.5 (Where there was no issues). When looking at the VolumeIter, it has a whole heap of STALE entries, and I believe its crashing on accessing one of these STALE objects. I have minimized my game right down to just landscape and physics volumes (Each cell has one physics volume used for water) and I am guaranteed a crash when I try to exit the play.

Adding in the following check seems to resolve the crash:

const APhysicsVolume* Volume = *VolumeIter;
if( Volume && Volume->IsValidLowLevel( ) )
{
   // Do the actual checks
}

Hi ,

Can you post your crash logs here? Additionally, does this occur in a blank project with no additional content? Are the landscapes and/or your physics volumes in a sublevel or are they all in your persistent level.

I will have to roll back my change to obtain a crash log. I have not tested in a blank project, as this looks like it would only occur in World Composition, as if I look at the callstack, its calling UpdatePhysicsVolume when flushing level streaming on exiting a PIE session. So to answer the last question, its landscape in world composition, so I guess they would be sublevels, but the Physics volumes are in the sublevels, the persistent level is essentially blank, except for a player start.

I’m experiencing a similar crash in my game. I, too, have sublevels with physics volumes. Here’s my crash log.

Looks to have been fixed for the next version. The following commit is basically the same fix I applied and its working fine for me now: https://github.com/EpicGames/UnrealEngine/commit/a742c16133eb24228f2234461bad0d50c9ee880a