question

Bob Cowburn avatar image
Bob Cowburn asked

Exception thrown in PARTY_CREATE_NEW_NETWORK_COMPLETED_STATE_CHANGE, Unity SDK

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.

sdks
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Seth Du avatar image
Seth Du answered

In terms of GDK related Party support, please find help from Xbox developer forum. It is also recommended reaching out to your Microsoft Representative for further guidance.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.