首页 > 解决方案 > 加载协作历史记录时出现 Unity ArgumentOutOfRangeException

问题描述

我一直在团结协作一段时间,一切都很顺利。然而今天早上,当我试图从合作历史中加载我的团队的更改时,我得到了这个奇怪的异常。

“ArgumentOutOfRangeException:添加或减去的值导致无法表示的 DateTime。参数名称:t System.DateTime.op_Addition (System.DateTime d, System.TimeSpan t) (at <9577ac7a62ef43179789031239ba8798>:0)”此错误出现在我的一旦我单击 Colab 中的历史记录按钮,控制台窗口就会崩溃,并且没有加载历史记录。有没有人经历过这个?

错误的屏幕截图。

完整日志:ArgumentOutOfRangeException:添加或减去的值会导致无法表示的 DateTime。参数名称:t System.DateTime.op_Addition (System.DateTime d, System.TimeSpan t) (at <9577ac7a62ef43179789031239ba8798>:0) System.DateTimeOffset.op_Addition (System.DateTimeOffset dateTimeOffset, System.TimeSpan timeSpan) (at <9577ac7a62ef4317978>:ba8787 0) Unity.Cloud.Collaborate.Utilities.TimeStamp.GetElapsedTime (System.DateTimeOffset dateTime) (在 Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Utilities/TimeStamp.cs:62) Unity.Cloud .Collaborate.Utilities.TimeStamp.GetTimeStamp (System.DateTimeOffset dateTime) (在 Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Utilities/TimeStamp.cs:33) Unity.Cloud.Collaborate.Views。 HistoryTabPageView.CreateHistoryEntry (Unity.Cloud.Collaborate.Models.Structures.1[T] list) (at Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Views/HistoryTabPageView.cs:95) Unity.Cloud.Collaborate.Presenters.HistoryPresenter.OnHistoryListReceived (System.Collections.Generic.IReadOnlyList1[T] 列表)(在 Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Presenters/HistoryPresenter.cs:123)Unity.Cloud.Collaborate.Models.HistoryModel.OnReceivedHistoryPage (System.Collections. Generic.IReadOnlyList1[T] list) (at Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Models/HistoryModel.cs:98) Unity.Cloud.Collaborate.Models.Providers.Collab.RequestHistoryPage (System.Int32 offset, System.Int32 pageSize, System.Action1[T] 回调)(在 Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Models/Providers/Collab.cs:531)Unity.Cloud.Collaborate.Models.HistoryModel.RequestPageOfRevisions(系统。 Int32 pageSize) (在 Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Models/HistoryModel.cs:126) Unity.Cloud.Collaborate.Presenters.HistoryPresenter.PopulateInitialData () (在 Library/PackageCache/ com.unity.collab-proxy@1.3.9/Editor/Presenters/HistoryPresenter.cs:93) Unity.Cloud.Collaborate.Presenters.HistoryPresenter.Start () (在 Library/PackageCache/com.unity.collab-proxy@1.3 .9/Editor/Presenters/HistoryPresenter.cs:48) Unity.Cloud.Collaborate.Views.HistoryTabPageView.SetActive () (在 Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Views/HistoryTabPageView. cs:222) Unity.Cloud.Collaborate.Components.TabPageComponent.SetActive (System.Boolean active) (在 Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/TabPageComponent.cs:21) Unity.Cloud.Collaborate.Components.TabView.SwitchTabInternal (System.Int32 index) (at Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Components/TabView.cs:138) Unity.Cloud.Collaborate.Components.TabView+<>c__DisplayClass17_0.b__0 () (在 Library/PackageCache/com. unity.collab-proxy@1.3.9/Editor/Components/TabView.cs:87) Unity.Cloud.Collaborate.Components.TextButton.OnClick () (在Library/PackageCache/com.unity.collab-proxy@1.3.9 /Editor/Components/TextButton.cs:32) UnityEngine.UIElements.Clickable.Invoke (UnityEngine.UIElements.EventBase evt) (at :0) UnityEngine.UIElements.Clickable.ProcessUpEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.Vector2 localPosition , System.Int32 pointerId) (at :0) UnityEngine.UIElements。Clickable.OnMouseUp (UnityEngine.UIElements.MouseUpEvent evt) (at :0) UnityEngine.UIElements.EventCallbackFunctor`1[TEventType].Invoke (UnityEngine.UIElements.EventBase evt) (at :0) UnityEngine.UIElements.EventCallbackRegistry.InvokeCallbacks (UnityEngine .UIElements.EventBase evt) (at :0) UnityEngine.UIElements.CallbackEventHandler.HandleEvent (UnityEngine.UIElements.EventBase evt) (at :0) UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at :0 ) UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel 面板) (at :0) UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel 面板, System.Boolean imguiEventIsInitiallyUsed)(在:0) UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel 面板) (at :0) UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at :0) UnityEngine.UIElements.EventDispatcher.OpenGate () (在:0) UnityEngine.UIElements.EventDispatcherGate.Dispose () () (在:0) UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel 面板) (在:0) UnityEngine。 UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at :0) UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements .DispatchMode dispatchMode) (at :0) UnityEngine.UIElements.UIElementsUtility。DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel 面板) (at :0) UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at :0) UnityEngine。 UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at :0) UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at :0 ) UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& 结果) (在 <2500dd078a544a69b6c923861af6cd15>:0)IntPtr nativeEventPtr, System.Boolean& eventHandled) (at :0) UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at :0) UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at :0) UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& 结果) (at <2500dd078a544a69b6c923861af6cd15>:0)IntPtr nativeEventPtr, System.Boolean& eventHandled) (at :0) UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at :0) UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at :0) UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& 结果) (at <2500dd078a544a69b6c923861af6cd15>:0)System.Boolean& 结果)(在 <2500dd078a544a69b6c923861af6cd15>:0)System.Boolean& 结果)(在 <2500dd078a544a69b6c923861af6cd15>:0)

标签: unity3d

解决方案


跟进:我没有从技术上解决问题,但错误停止发生。我基本上编辑了 Assets 目录(没什么花哨的,只是创建了一个新文件夹)并重新加载了 Collaborate 服务。那解决了它。


推荐阅读