Search Issue Tracker
Fixed in 1.1.1
Votes
0
Found in [Package]
2020.3.16f1
2020.3.19f1
Issue ID
1366931
Regression
Yes
[Profiler] IndexOutOfRangeException thrown when using Profiler or selecting Profiler frames in Profile Analyzer
How to reproduce:
1. Create new project
2. Import and open Profiler Analyzer tool
3. Open Profiler
4. Enter Play mode let the Profiler record some amount of frames, exit
5. In Analyzer - Pull data then in Frame Summary click through the frame buttons (End, Max, Median)
6. *Changing Analysis type to Self also helps to reproduce this
7. Observe console (if does not reproduce repeat steps 4-5 for several times, or try profiling standalone builds)
Expected result: Frame is selected and no errors are thrown
Actual result: IndexOutOfRangeException is thrown and also Profiler performance drops significantly due to several hundred errors constantly printed to console
IndexOutOfRangeException: sampleIndex 602 must be in range of 0 to sampleCount
UnityEditorInternal.ProfilerTimelineGUI.CalculateTotalAsyncDuration (System.Int32 selectedSampleIndex, System.Int32 frameIndex, System.Int32 selectedThreadIndex, System.String& selectedThreadName, System.UInt64& totalAsyncDurationNs, System.Int32& totalAsyncFramesCount) (at /Users/bokken/buildslave/unity/build/Modules/ProfilerEditor/ProfilerWindow/ProfilerModules/CPU/ProfilerTimelineGUI.cs:1378)
UnityEditorInternal.ProfilerTimelineGUI.DoSelectionTooltip (System.Int32 frameIndex, UnityEngine.Rect fullRect) (at /Users/bokken/buildslave/unity/build/Modules/ProfilerEditor/ProfilerWindow/ProfilerModules/CPU/ProfilerTimelineGUI.cs:1408)
UnityEditorInternal.ProfilerTimelineGUI.DoGUI (System.Int32 frameIndex, UnityEngine.Rect position, System.Boolean fetchData, System.Boolean& updateViewLive) (at /Users/bokken/buildslave/unity/build/Modules/ProfilerEditor/ProfilerWindow/ProfilerModules/CPU/ProfilerTimelineGUI.cs:2098)
UnityEditorInternal.Profiling.CPUProfilerModule.DrawDetailsView (UnityEngine.Rect position) (at /Users/bokken/buildslave/unity/build/Modules/ProfilerEditor/ProfilerWindow/ProfilerModules/CPU/CPUProfilerModule.cs:46)
UnityEditor.ProfilerWindow.DrawDetailsViewForModule (UnityEditorInternal.Profiling.ProfilerModuleBase module) (at /Users/bokken/buildslave/unity/build/Modules/ProfilerEditor/ProfilerWindow/ProfilerWindow.cs:1315)
UnityEditor.ProfilerWindow.OnGUI () (at /Users/bokken/buildslave/unity/build/Modules/ProfilerEditor/ProfilerWindow/ProfilerWindow.cs:1211)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at /Users/bokken/buildslave/unity/build/Editor/Mono/HostView.cs:403)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at /Users/bokken/buildslave/unity/build/Editor/Mono/GUI/DockArea.cs:382)
UnityEditor.DockArea.OldOnGUI () (at /Users/bokken/buildslave/unity/build/Editor/Mono/GUI/DockArea.cs:372)
Reproduced with: 2020.3.16f1, 2020.3.19f1
Does not reproduce with: 2019.4.30f1, 2020.3.15f2, 2021.1.21f1, 2021.2.0b13, 2022.1.0a10
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment