The ensure is firing because bPSOPrecacheCalled is false in the case where the the LandscapeComponent has unregistered. CL 48140040 by Kenzo Terelst changed UPrimitiveComponent::OnUnregister to call PSOPrecacheComponentData.Reset() which sets bPSOPrecacheCalled to false. ULandscapeComponent::PostLoad is what currently calls PrecachePSOs(), but that does not happen again if the component is reused.
Some snippets from the log with verbose logging on WP/Levelstreaming showing this happening:
[2026.10.20-16.03.54:106][311]LogWorldPartition: Verbose: UWorldPartitionStreamingPolicy::SetCellStateToActivated 953526PM872XO5Q2A3GR5YU2I
[2026.10.20-16.03.54:106][311]LogLevelStreaming: Verbose: UWorldPartitionLevelStreamingDynamic::Activating /Game/Maps/MainWorld/MainWorld/_Generated_/953526PM872XO5Q2A3GR5YU2I[2026.10.20-16.05.05:638][448]LogWorldPartition: Verbose: UWorldPartitionStreamingPolicy::UnloadCells 953526PM872XO5Q2A3GR5YU2I
[2026.10.20-16.05.05:638][448]LogLevelStreaming: Verbose: UWorldPartitionLevelStreamingDynamic::Unloading /Game/Maps/MainWorld/MainWorld/_Generated_/953526PM872XO5Q2A3GR5YU2I
<NO GC in between here>
[2026.10.20-16.05.28:306][808]LogWorldPartition: Verbose: UWorldPartitionStreamingPolicy::SetCellStateToActivated 953526PM872XO5Q2A3GR5YU2I
[2026.10.20-16.05.28:306][808]LogLevelStreaming: Verbose: UWorldPartitionLevelStreamingDynamic::Activating /Game/Maps/MainWorld/MainWorld/_Generated_/953526PM872XO5Q2A3GR5YU2I
[2026.10.20-16.05.28:353][810]LogOutputDevice: Warning: <ensure shown above>
I didn’t see any fixes in current code where I thought to look. A possible fix seems to be to mimic what StaticMeshComponent::OnRegister does and precache the psos there (ULandscapeComponent::OnRegister doesn’t currently have any pso precaching code). I did this for now, and it seems to work ok. Or, could go back a bit more to how it was so that bPSOPrecacheCalled is not cleared on an unregister.
[Attachment Removed]