Search Issue Tracker
Won't Fix
Won't Fix in 0.7.X
Votes
0
Found in [Package]
0.6.0-preview.1
0.7.1-preview.1
Issue ID
PROFB-84
Regression
No
Error "IndexOutOfRangeException: Index was outside the bounds of the array" is thrown when selecting from the "Objects and Allocations" list in Memory Profiler
How to reproduce:
1. Open the project “IN_16812”
2. Press Window → Analysis → Memory Profiler
3. Click on any Snapshot
4. Go to Objects and Allocations
5. Press Type → Match and type “PlayerController”
6. Select different rows
Expected result: no error in the Console
Actual result: error in the Console
Reproducible with: 0.6.0-preview.1, 0.7.1-preview.1 (2020.3.40f1, 2021.3.11f1, 2022.2.0b9)
Not reproducible with: 1.0.0 (2022.2.0b9, 2023.1.0a12) (checked in Player Controller row in “Unity Objects”)
Fixed in: 1.0.0
Reproducible on: Windows 10 Pro
Error first lines:
IndexOutOfRangeException: Index was outside the bounds of the array.
Unity.MemoryProfiler.Editor.UI.ManagedObjectInspector.FindNativeAllocationOrRegion (Unity.MemoryProfiler.Editor.CachedSnapshot cs, System.UInt64 pointer, Unity.MemoryProfiler.Editor.UI.ManagedObjectInspectorItem childItem, System.String value, System.String nativeFieldName, System.String nativeAllocationTypeName) (at Library/PackageCache/com.unity.memoryprofiler@0.7.1-preview.1/Editor/UI/PathsToRoot/ManagedObjectInspector.cs:414)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
Resolution Note:
Fixed in 1.0.0
As a workaround - Open the Snapshot in Unity 2022.2 in an empty project with Memory Profiler 1.0.0
Resolution Note (0.7.X):
Fixed in 1.0.0
As a workaround - Open the Snapshot in Unity 2022.2 in an empty project with Memory Profiler 1.0.0