Crash in PoseSearch in 5.6.0

`Hello,
we are trying to upgrade to UE 5.6.0 from 5.5.1 and we are getting this 100% crash because we are trying to iterate over elements in an empty array. It is empty because calling Reset() emptys the array.
Is there a newer version of UE 5.6 or hot fixes we should use ?
Or maybe this method is deprecated and we should not use anymore ?

FPoseSearchQueryTrajectory::FPoseSearchQueryTrajectory(const FTransformTrajectory& InTrajectory)
{
Samples.Reset(InTrajectory.Samples.Num());

for (int i = 0; i < InTrajectory.Samples.Num(); ++i)
{
Samples[i].Position = InTrajectory.Samples[i].Position;
Samples[i].Facing = InTrajectory.Samples[i].Facing;
Samples[i].AccumulatedSeconds = InTrajectory.Samples[i].TimeInSeconds;
}
}`

I noticed a lot of the API we are already using for Pose Search has been deprecated. And we missed that because the code is wrapped within `PRAGMA_DISABLE_DEPRECATION_WARNINGS’

So what is the alternative to `UPoseSearchTrajectoryLibrary::InitTrajectorySamples` UPoseSearchTrajectoryLibrary::UpdateHistory_TransformHistory` and `FPoseSearchQueryTrajectory`?

Is there a sample project I can use ?

Fixed !

I replaced the group of functions that use FPoseSearchQueryTrajectory with the new ones that use FTransformTrajectory since the former is deprecated.

What got me confused was the fact that deprecated types and functions warnings are suppressed. So they just failed in silence.

Please feel free to close this ticket

The bug in this code is on lines 12,13,14. Samples is an empty array (after Samples.Reset). Instead of calling Reset, line 8 should probably be `Samples.SetNum(…)`

Thanks for reporting the issue! Fixed with CL 43775920. -Sam