POST BODY:
This breaks bSyncInputsForSimProxy on interpolated simulated proxies. The inputs travel in the sync state inside FMoverInputContainerDataStruct, whose Clone() uses that copy constructor. As a result, the input structs of buffered Network Prediction frames share memory with each other and with the latest received state, which NetSerialize writes into in place. On other clients, GetLastInputCmd() then returns inputs from other frames, often newer ones: values jump ahead and step back.
Location, velocity and orientation are not affected (FMoverDefaultSyncState copies correctly). Only data nested in FMoverInputContainerDataStruct is.
Affects 5.8.4.
In one capture (dedicated server + 2 clients, ~41 fps):
Other input structs in the same container are affected in the same way.
Running "np.Interpolation.Disable 1" on the viewing client hides the problem, because that path uses the received state directly.
1. Public/MoverTypes.h: FMoverDataCollection declares operator= (a deep copy, Private/MoverTypes.cpp) but no copy constructor. The implicit copy constructor copies TArray> DataArray, so both collections point to the same structs.
2. Private/InputContainerStruct.cpp: FMoverInputContainerDataStruct::Clone() is `new FMoverInputContainerDataStruct(*this)`, so the cloned container's InputCollection shares its input structs with the original.
3. Private/MoverTypes.cpp, FMoverDataCollection::operator=: when the two DataArrays differ in size (e.g. an empty frame buffer slot), it falls back to Clone() for each element, which creates that sharing. Later in-place copies (CopyScriptStruct) then write through the shared pointers.
4. Private/MoverTypes.cpp, NetSerializeDataArray: when loading, an existing struct of the same type is reused and serialized into in place, so every new packet overwrites the shared input structs.
Suggested fix: a deep-copying copy constructor that delegates to operator=. DataArray is still empty at that point, so operator= takes its Clone() path for every element.
Public/MoverTypes.h:
```cpp
UE_API FMoverDataCollection();
/* Copy constructor - deep copy, same as operator=. The implicit one would share the data structs between both collections. */
UE_API FMoverDataCollection(const FMoverDataCollection& Other);
```
Private/MoverTypes.cpp:
```cpp
FMoverDataCollection::FMoverDataCollection(const FMoverDataCollection& Other)
{
// DataArray is still empty, so operator= clones every data struct rather than copying into existing ones
*this = Other;
}
```
Since a copy constructor is now user-declared, no move constructor is generated implicitly, so moves fall back to this deep copy. It behaves the same, at the cost of a few extra allocations.
With this change applied on 5.8.4, the same capture gives identical direction reversal counts on the owner, server and proxy (43 / 43 / 43 for yaw, 54 / 54 / 54 for pitch), and the proxy no longer shows values from newer frames.
The root cause analysis and the suggested patch were made with the help of an AI assistant (Claude) and verified in my project.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-410309 in the post.
| 0 |
| Component | UE - QA - Support |
|---|---|
| Affects Versions | 5.8, 5.8.4 |
| Created | Nov 4, 2026 |
|---|---|
| Updated | Dec 4, 2026 |