question

scottadams avatar image
scottadams asked

PlayFab Unity upgrade fails from 2.110.210628 to 2.111.210802

IndexOutOfRangeException: Index was outside the bounds of the array. PlayFab.PlayFabSettings.GetSharedSettingsObjectPrivate () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:60) PlayFab.PlayFabSettings.get_PlayFabSharedPrivate () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:35) PlayFab.PlayFabSettings+<>c.<.cctor>b__0_0 () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:40) PlayFab.PlayFabSettingsRedirect.get_TitleId () (at Assets/PlayFabSDK/Shared/Public/PlayFabApiSettings.cs:66) PlayFab.PlayFabSettings.get_TitleId () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:86) System.Reflection.MonoProperty.StaticGetterAdapterFrame[R] (System.Reflection.MonoProperty+StaticGetter`1[R] getter, System.Object obj) (at <eae584ce26bc40229c1b1aa476bfa589>:0) System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index) (at <eae584ce26bc40229c1b1aa476bfa589>:0) Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index) (at <eae584ce26bc40229c1b1aa476bfa589>:0) PlayFab.PfEditor.PlayFabEditorDataService+PlayFab_SharedSettingsProxy.Get[T] (System.String name) (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorDataService.cs:56) PlayFab.PfEditor.PlayFabEditorDataService+PlayFab_SharedSettingsProxy.get_TitleId () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorDataService.cs:19) PlayFab.PfEditor.PlayFabEditorSDKTools.ShowSdkInstalledMenu () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Panels/PlayFabEditorSDKTools.cs:163) PlayFab.PfEditor.PlayFabEditorSDKTools.DrawSdkPanel () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Panels/PlayFabEditorSDKTools.cs:42) PlayFab.PfEditor.PlayFabEditor.OnGuiInternal () (at Assets/PlayFabEditorExtensions/Editor/PlayFabEditor.cs:125) PlayFab.PfEditor.PlayFabEditor.HideRepaintErrors (System.Action action) (at Assets/PlayFabEditorExtensions/Editor/PlayFabEditor.cs:177) PlayFab.PfEditor.PlayFabEditor.OnGUI () (at Assets/PlayFabEditorExtensions/Editor/PlayFabEditor.cs:104) System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <eae584ce26bc40229c1b1aa476bfa589>:0) Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <eae584ce26bc40229c1b1aa476bfa589>:0) System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <eae584ce26bc40229c1b1aa476bfa589>:0) UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at <3d9f46ac475f4fa9a3b71bacf80244a8>:0) UnityEditor.HostView.Invoke (System.String methodName) (at <3d9f46ac475f4fa9a3b71bacf80244a8>:0) UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <3d9f46ac475f4fa9a3b71bacf80244a8>:0) UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <3d9f46ac475f4fa9a3b71bacf80244a8>:0) UnityEditor.DockArea.OldOnGUI () (at <3d9f46ac475f4fa9a3b71bacf80244a8>:0) UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <aea3cceceb0c44ea9855b62119e9be3b>:0) UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <aea3cceceb0c44ea9855b62119e9be3b>:0) UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at <aea3cceceb0c44ea9855b62119e9be3b>:0) UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Boolean straightY, System.Single pixelsPerPoint, System.Exception& immediateException) (at <aea3cceceb0c44ea9855b62119e9be3b>:0) Rethrow as ImmediateModeException UnityEngine.UIElements.UIR.RenderChain.Render (UnityEngine.Rect viewport, UnityEngine.Matrix4x4 projection, UnityEngine.UIElements.PanelClearFlags clearFlags) (at <aea3cceceb0c44ea9855b62119e9be3b>:0) UnityEngine.UIElements.UIRRepaintUpdater.DrawChain (UnityEngine.Rect viewport, UnityEngine.Matrix4x4 projection) (at <aea3cceceb0c44ea9855b62119e9be3b>:0) UnityEngine.UIElements.UIRRepaintUpdater.Update () (at <aea3cceceb0c44ea9855b62119e9be3b>:0) UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at <aea3cceceb0c44ea9855b62119e9be3b>:0) UnityEngine.UIElements.Panel.UpdateForRepaint () (at <aea3cceceb0c44ea9855b62119e9be3b>:0) UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at <aea3cceceb0c44ea9855b62119e9be3b>:0) UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <aea3cceceb0c44ea9855b62119e9be3b>:0) UnityEngine.UIElements.UIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <aea3cceceb0c44ea9855b62119e9be3b>:0) UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <023156577e4f4156adf0f4b3a3fedf85>:0)

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

·
scottadams avatar image
scottadams answered

I got around the error by

1) set SDK settings back from the new OVERRIDE and logging myself back into the Unity SDK extension

2)Replacing the directory \Assets\PlayFabSDK\MultiplayerAgent\ from SVN

3) replacing directory \Assets\PlayFabSDK\Shared\Ionic.Zlib\ from SVN

It then showed the correct version of Playfab SDK was installed

I next had to upgrade the PlayFab extension for Unity. PlayFab Extension Issue

1 comment
10 |1200

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

scottadams avatar image scottadams commented ·

redacted and added to answer

0 Likes 0 ·

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.