Search Issue Tracker
Fixed in 1.0.0-pre.1, 0.7.1-preview.1
Votes
0
Found in [Package]
0.7.0-preview.2
Issue ID
1426543
Regression
No
[Memory Profiler] crash in DynamicArray.ResizeInternalBuffer when opening a capture
How to reproduce:
This bug is a bit hard to repro consistently outside of a strict test harness, but it would usually reproduce (inconsistently) when open a snapshot with the memory profiler. Depending on the memory state of the Memory Profiler, as well as the snapshot (some may be more prone to triggering this bug), opening a snapshot will crash the Editor.
The resulting Editor.log file will contain lines like:
Managed Stacktrace:
=================================================================
at <unknown> <0xffffffff>
at Unity.Collections.LowLevel.Unsafe.UnsafeUtility:MemCpy <0x000d6>
at Unity.MemoryProfiler.Editor.Containers.DynamicArray`1:ResizeInternalBuffer <0x0026a>
at Unity.MemoryProfiler.Editor.Containers.DynamicArray`1:Resize <0x00172>
Repro via the test harness:
1. Grab the git repro state of the Memory Profiler at changeset 3fff8117ce
2. Drop it into the Packages folder of an empty Unity Project
3. In the manifest.json:
-- add "nuget.moq": "1.0.0" to the list of dependencies
-- after the closing } "dependencies" add:
,
"testables": [
"com.unity.memoryprofiler"
]
4. Open that project and in it, open Window > General > Test Runner
5. filter for NoMemoryCorruptionOnResize and run that test
Expected results: The test passes.
Actual results: The Editor crashes.
Reproducible with: 2022.2.a16 Package version 0.7.0-preview.2
Unity base version should be irrelevant, earlier package versions also have the bug but not the test to repro it.
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