Search Issue Tracker
Won't Fix
Won't Fix in 5.4.X, 5.5.X, 5.6.X
Votes
0
Found in
5.3.4p4
Issue ID
800658
Regression
No
Loading specific memory snapshot causes an exception in the memory profiler
Reproduction steps:
1. Download attached "MemorySnapshot3.memsnap" memory snapshot.
2. Download and Open attached "memoryprofiler" project.
3. Go to "Window > MemoryProfiler".
4. Click "Load Snapshot".
5. Select "MemorySnapshot3.memsnap" memory snapshot.
6. Wait for 5-15 minutes.
7. Notice the error in the console window:
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: startIndex
System.BitConverter.PutBytes (System.Byte* dst, System.Byte[] src, Int32 start_index, Int32 count) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/BitConverter.cs:176)
-
Sprarage
Dec 03, 2019 16:40
If bitbucket profiler is no longer supported by 2018.3 then at least this 2019.2 page needs update:
https://docs.unity3d.com/2019.2/Documentation/Manual/BestPracticeUnderstandingPerformanceInUnity2.html -
sirchb
Aug 12, 2016 23:49
I got this error while taking a memory snapshot of my game (not loading from a previously saved file). I managed to get my snapshot to technically work by changing this line:
for (int i = 0; i != arrayLength; i++)
To this:
for (int i = 0; i != arrayLength && cursor.offset < cursor.bytes.Length; i++)
in Crawler.cs
This stops the BytesAndOffset object from reading past the end of its byte array, which was happening when BytesAndOffset.pointerSize was 4.
Not sure if this actually solves the root problem but it let me see the snapshot and nothing noticeable was wrong with it.
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
- Select Preset "None" icon changes after switching tabs
- [Android] Crash when using xxHash3 and targeting the ARMv7 Architecture with IL2CPP Scripting Backend
- GameObject reference in a Script Component becomes missing when unpacking a variant of another Prefab variant
- Project Settings vertical separator position is not synchronized with the mouse position when dragging it horizontally
- Crash on PhysicsDebugDraw::SelectFiltering::Update when entering play mode with Physics Debug window docked and unfocused
Resolution Note:
This case is no longer relevant as it targets the bit-bucket memory profiler which is unsupported. A new memory profiler was introduced in 2018.3.