wesleywh / InvectorMultiplayerAddOnDocs

Documentation For The Invector Multiplayer Add-On
0 stars 1 forks source link

Getting NullReferenceException When performing test after 6th Step #1

Closed AvinashP closed 3 years ago

AvinashP commented 3 years ago

Setup: Unity 2020.1.15f1 Invector: Third Person 2.5.4 Ad Ons: Mobile Example Scene: Invector_Shooter_Inventory&HipFire

NullReferenceException: Object reference not set to an instance of an object CBGames.Editors.E_TestScene.CORE_PerformPhotonViewTests (System.Int32& passed, System.Int32& failed, System.Collections.Generic.List1[CBGames.Editors.DebugFormat]& failures, System.Collections.Generic.List1[CBGames.Editors.DebugFormat]& warnings) (at Assets/InvectorMultiplayer/Editor/Scripts/Windows/SceneTests/E_CoreTests.cs:2551) CBGames.Editors.E_TestScene+d__58.MoveNext () (at Assets/InvectorMultiplayer/Editor/Scripts/Windows/SceneTests/E_TestScene.cs:203) marijnz.EditorCoroutines.EditorCoroutines.MoveNext (marijnz.EditorCoroutines.EditorCoroutines+EditorCoroutine coroutine) (at Assets/InvectorMultiplayer/Editor/Scripts/CoRoutines/EditorCoroutines.cs:347) marijnz.EditorCoroutines.EditorCoroutines.GoStartCoroutine (marijnz.EditorCoroutines.EditorCoroutines+EditorCoroutine coroutine) (at Assets/InvectorMultiplayer/Editor/Scripts/CoRoutines/EditorCoroutines.cs:290) marijnz.EditorCoroutines.EditorCoroutines.GoStartCoroutine (System.Collections.IEnumerator routine, System.Object thisReference) (at Assets/InvectorMultiplayer/Editor/Scripts/CoRoutines/EditorCoroutines.cs:264) marijnz.EditorCoroutines.EditorCoroutines.StartCoroutine (System.Collections.IEnumerator routine, System.Object thisReference) (at Assets/InvectorMultiplayer/Editor/Scripts/CoRoutines/EditorCoroutines.cs:135) marijnz.EditorCoroutines.EditorCoroutineExtensions.StartCoroutine (UnityEditor.EditorWindow thisRef, System.Collections.IEnumerator coroutine) (at Assets/InvectorMultiplayer/Editor/Scripts/CoRoutines/EditorCoroutineExtensions.cs:10) CBGames.Editors.E_TestScene.OnGUI () (at Assets/InvectorMultiplayer/Editor/Scripts/Windows/SceneTests/E_TestScene.cs:129) UnityEditor.HostView.OldOnGUI () (at /Users/bokken/buildslave/unity/build/Editor/Mono/HostView.cs:238) 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 /Users/bokken/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:316) UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at /Users/bokken/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:620) UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at /Users/bokken/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:592) UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at /Users/bokken/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:585) UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at /Users/bokken/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:551) UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at /Users/bokken/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:540) UnityEngine.UIElements.IMGUIContainer.HandleEvent (UnityEngine.UIElements.EventBase evt) (at /Users/bokken/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:473) UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at /Users/bokken/buildslave/unity/build/Modules/UIElements/Events/EventHandler.cs:77) UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at /Users/bokken/buildslave/unity/build/Modules/UIElements/Events/MouseCaptureDispatchingStrategy.cs:84) UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at /Users/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:318) UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at /Users/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:281) UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at /Users/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:244) UnityEngine.UIElements.EventDispatcher.OpenGate () (at /Users/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:209) UnityEngine.UIElements.EventDispatcherGate.Dispose () (at /Users/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:44) UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at /Users/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:309) UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at /Users/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:161) UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at /Users/bokken/buildslave/unity/build/Modules/UIElements/Panel.cs:278) UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at /Users/bokken/buildslave/unity/build/Modules/UIElements/UIElementsUtility.cs:459) UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at /Users/bokken/buildslave/unity/build/Modules/UIElements/UIElementsUtility.cs:209) UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at /Users/bokken/buildslave/unity/build/Modules/UIElements/UIElementsUtility.cs:74) UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at /Users/bokken/buildslave/unity/build/Modules/UIElements/UIElementsUtility.cs:28) UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)

AvinashP commented 3 years ago

I think it was related to Scene not being compiled properly. It got resolved when I switched focus from editor and did Perform Test again.