Platform details:
PlayFab SDK 2.79.201014
Party SDK 1.5.0.1-main.0-10.5.2020-preview
Unity 2019.4.9f1 + add-ons for Scarlett development, GDK QE5
public class PARTY_CREATE_NEW_NETWORK_COMPLETED_STATE_CHANGE : PARTY_STATE_CHANGE { internal PARTY_CREATE_NEW_NETWORK_COMPLETED_STATE_CHANGE( PARTY_STATE_CHANGE_UNION stateChange, IntPtr StateChangeId ) : base(stateChange.stateChange.stateChangeType, StateChangeId) { Interop.PARTY_CREATE_NEW_NETWORK_COMPLETED_STATE_CHANGE stateChangeConverted = stateChange.createNewNetworkCompleted; this.result = stateChangeConverted.result; this.errorDetail = stateChangeConverted.errorDetail; this.localUser = new PARTY_LOCAL_USER_HANDLE(stateChangeConverted.localUser); this.networkConfiguration = new PARTY_NETWORK_CONFIGURATION(stateChangeConverted.networkConfiguration); this.regionCount = stateChangeConverted.regionCount; this.regions = Converters.PtrToClassArray<PARTY_REGION, Interop.PARTY_REGION>( stateChangeConverted.regions, regionCount, (x) => new PARTY_REGION(x));
The exception is thrown on the line
this.regions = Converters.PtrToClassArray<PARTY_REGION, Interop.PARTY_REGION>( stateChangeConverted.regions, regionCount, (x) => new PARTY_REGION(x));
stateChangeConverted.regions is 0x0
and region count is 2189469904
The steps to reproduce are to create and join a network, I believe it happens every time.
Is there a fix for this? Will provide standalone code if possible to help resolve the issue. The problem only happens when running on the XBox device.