leinlin / Miku-LuaProfiler

Apache License 2.0
1.88k stars 435 forks source link

3.1.3版本:ArgumentOutOfRangeException: Index was out of range. #33

Closed zhllineme closed 3 years ago

zhllineme commented 3 years ago

选择 Deep Lua,在Editor下启动游戏,然后点 “Record”,点击波线任意地方报错。

环境: unity2019.4.5f1 xlua框架

ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <fb001e01371b4adca20013e0ac763896>:0)
System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <fb001e01371b4adca20013e0ac763896>:0)
System.Collections.Generic.List`1[T].get_Item (System.Int32 index) (at <fb001e01371b4adca20013e0ac763896>:0)
MikuLuaProfiler.LuaProfilerTreeView.GetPreFrame (System.Int32 start, System.Boolean isChange) (at Assets/LuaProfiler/Editor/Window/ProfilerWin/TreeView/LuaProfilerTreeView.cs:934)
MikuLuaProfiler.LuaProfilerWindow.HandleInputForChart (UnityEngine.Rect expandRect) (at Assets/LuaProfiler/Editor/Window/ProfilerWin/TreeView/LuaProfilerWindow.cs:1193)
MikuLuaProfiler.LuaProfilerWindow.DrawChart (UnityEngine.Rect rect) (at Assets/LuaProfiler/Editor/Window/ProfilerWin/TreeView/LuaProfilerWindow.cs:870)
MikuLuaProfiler.LuaProfilerWindow.DoChart () (at Assets/LuaProfiler/Editor/Window/ProfilerWin/TreeView/LuaProfilerWindow.cs:739)
MikuLuaProfiler.LuaProfilerWindow.OnGUI () (at Assets/LuaProfiler/Editor/Window/ProfilerWin/TreeView/LuaProfilerWindow.cs:250)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <fb001e01371b4adca20013e0ac763896>: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 <fb001e01371b4adca20013e0ac763896>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <fb001e01371b4adca20013e0ac763896>:0)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at <7f83bc84aafb4ee094404bddcf0d5495>:0)
UnityEditor.HostView.Invoke (System.String methodName) (at <7f83bc84aafb4ee094404bddcf0d5495>:0)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <7f83bc84aafb4ee094404bddcf0d5495>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <7f83bc84aafb4ee094404bddcf0d5495>:0)
UnityEditor.DockArea.OldOnGUI () (at <7f83bc84aafb4ee094404bddcf0d5495>: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 <34a846d0ed7c4d6db0304c9b82af49f3>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <34a846d0ed7c4d6db0304c9b82af49f3>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <34a846d0ed7c4d6db0304c9b82af49f3>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at <34a846d0ed7c4d6db0304c9b82af49f3>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus) (at <34a846d0ed7c4d6db0304c9b82af49f3>:0)
UnityEngine.UIElements.IMGUIContainer.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <34a846d0ed7c4d6db0304c9b82af49f3>:0)
UnityEngine.UIElements.EventDispatchUtilities.PropagateEvent (UnityEngine.UIElements.EventBase evt) (at <34a846d0ed7c4d6db0304c9b82af49f3>:0)
UnityEngine.UIElements.MouseEventDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <34a846d0ed7c4d6db0304c9b82af49f3>:0)
UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <34a846d0ed7c4d6db0304c9b82af49f3>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <34a846d0ed7c4d6db0304c9b82af49f3>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <34a846d0ed7c4d6db0304c9b82af49f3>:0)
UnityEngine.UIElements.EventDispatcher.OpenGate () (at <34a846d0ed7c4d6db0304c9b82af49f3>:0)
UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <34a846d0ed7c4d6db0304c9b82af49f3>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <34a846d0ed7c4d6db0304c9b82af49f3>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <34a846d0ed7c4d6db0304c9b82af49f3>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <34a846d0ed7c4d6db0304c9b82af49f3>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <34a846d0ed7c4d6db0304c9b82af49f3>:0)
UnityEngine.UIElements.UIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <34a846d0ed7c4d6db0304c9b82af49f3>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <5cac3f765efb4a7198fbbe8126e46e77>:0)
leinlin commented 3 years ago

start record 之后要停止