Why does adding a UCameraComponent to Pawn causes crash in World Partition

Hi, I have a pawn where the only thing I have done is add some components as UPROPERTIES (three to be exact) and then used CreateDefaultSubobject to instantiate them. The last of the components is a UCameraComponent and when added to the Pawn will cause a crash when selected in the editor.

The error message is: Ensure condition failed: EditorHash [File:D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\WorldPartition\WorldPartition.cpp] [Line: 2438] in the UWorldPatition class. Which I haven’t touched nor have I changed the settings of the WorldPartition object in the default level. The Ensure condition failed it’s referring to is the ensure(EditorHash) that is found in the GetEditorWorldBounds() function

Also if I debug the Editor and just press continue it seems to work as normal, letting me select the Pawn without issue.

The final thing I checked was the basic level without WorldPartition and that also works without issue, so it does definitely seem to be linked to WorldParition in some way.

Any idea what is happening?

I see this specifically when clicking on an actor that contains a CameraComponent in the Outliner while PIE is running in a level with WorldPartition. Clicking an actor like this causes the small camera Preview window to appear.

Definitely seems to be an engine bug. A workaround that worked for me was disabling “Preview Selected Cameras” in Editor Preferences.

Note: I’m on UE5.7.1